From: Jo-Philipp Wich Date: Mon, 14 Sep 2015 16:57:03 +0000 (+0000) Subject: imagebuilder: store package lists in cache directory X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fb3fb9b6c125ea8a4ce31d61b9e3f124d8d618eb;p=openwrt%2Fstaging%2Fldir.git imagebuilder: store package lists in cache directory Force opkg to store the downloaded repository indizes into the cache directory as well, this way the IB can be used in an offline setting once all required files have been cached. Signed-off-by: Jo-Philipp Wich SVN-Revision: 46912 --- diff --git a/target/imagebuilder/files/Makefile b/target/imagebuilder/files/Makefile index 479fa0e850..f612ea9abc 100644 --- a/target/imagebuilder/files/Makefile +++ b/target/imagebuilder/files/Makefile @@ -53,6 +53,7 @@ help: FORCE # override variables from rules.mk PACKAGE_DIR:=$(TOPDIR)/packages +LISTS_DIR:=$(subst $(space),/,$(patsubst %,..,$(subst /,$(space),$(TARGET_DIR))))$(DL_DIR) OPKG:= \ IPKG_NO_SCRIPT=1 \ IPKG_TMP="$(TMP_DIR)/ipkgtmp" \ @@ -65,6 +66,7 @@ OPKG:= \ --force-overwrite \ --force-postinstall \ --cache $(DL_DIR) \ + --lists-dir $(LISTS_DIR) \ --offline-root $(TARGET_DIR) \ --add-dest root:/ \ --add-arch all:100 \