@@ -286,4 +286,10 @@ menu "Target Images"
it will be mounted by PARTUUID which makes the kernel find the
appropriate disk automatically.
+ config TARGET_ROOTFS_INCLUDE_FOLDER
+ string "RootFS include folder"
+ default "files"
+ help
+ Override the folder that is included into the RootFS by default.
+
endmenu
@@ -32,6 +32,10 @@ ifneq ($(IGNORE_ERRORS),)
$(curdir)/builddirs-ignore-host-compile := $(package-ignore-subdirs)
endif
+ifeq ($(CONFIG_TARGET_ROOTFS_INCLUDE_FOLDER),"")
+CONFIG_TARGET_ROOTFS_INCLUDE_FOLDER:=files
+endif
+
PACKAGE_INSTALL_FILES:= \
$(foreach pkg,$(sort $(package-y)), \
$(foreach variant, \
@@ -75,8 +79,7 @@ $(curdir)/install: $(TMP_DIR)/.build $(curdir)/merge $(if $(CONFIG_TARGET_PER_DE
done || true
$(CP) $(TARGET_DIR) $(TARGET_DIR_ORIG)
-
- $(call prepare_rootfs,$(TARGET_DIR),$(TOPDIR)/files)
+ $(call prepare_rootfs,$(TARGET_DIR),$(TOPDIR)/$(call qstrip, $(CONFIG_TARGET_ROOTFS_INCLUDE_FOLDER)))
$(curdir)/index: FORCE
@echo Generating package index...
This allows managing several different folder for varying env profiles. Signed-off-by: John Crispin <john@phrozen.org> --- config/Config-images.in | 6 ++++++ package/Makefile | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-)