@@ -18,6 +18,10 @@ config BR2_EXTERNAL
string
option env="BR2_EXTERNAL"
+config BR2_BASE_DIR
+ string
+ option env="BASE_DIR"
+
# Hidden boolean selected by packages in need of Java in order to build
# (example: xbmc)
config BR2_NEEDS_HOST_JAVA
@@ -693,7 +693,7 @@ endif # ifeq ($(BR2_HAVE_DOT_CONFIG),y)
HOSTCFLAGS = $(CFLAGS_FOR_BUILD)
export HOSTCFLAGS
-prepare-kconfig: outputmakefile
+prepare-kconfig: outputmakefile $(BASE_DIR)/build/.services.in
$(BUILD_DIR)/buildroot-config/%onf:
mkdir -p $(@D)/lxdialog
@@ -827,6 +827,10 @@ ifeq ($(NEED_WRAPPER),y)
$(Q)$(TOPDIR)/support/scripts/mkmakefile $(TOPDIR) $(O)
endif
+.PHONY: $(BASE_DIR)/build/.services.in
+$(BASE_DIR)/build/.services.in:
+ @touch $(@)
+
# printvars prints all the variables currently defined in our Makefiles
printvars:
@$(foreach V, \
@@ -1359,4 +1359,6 @@ if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
endif
endmenu
+source "$BR2_BASE_DIR/build/.services.in"
+
endmenu
Add the infrastructure for adding one (and only one) generated kconfig snippet in the "Target packages" sub-menu. This kconfig snippet will ultimately be generated, to contain the list of services enabled packages will install, so the user may decide to enable or disable each service. The new file is a PHONY target, sicne we do want to regenrate it on every run (in case the list of services a package defines changes). We can not have it depend on all the .mk files, because we do not have this list. For now, the kconfig snippet is generated empty, the recipe for filling it in will be introduced in sub-sequent patches. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> --- Config.in | 4 ++++ Makefile | 6 +++++- package/Config.in | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-)