From: Thomas Petazzoni Date: Thu, 5 Dec 2013 19:11:11 +0000 (+0100) Subject: core: allow external Config.in/makefile code to be integrated X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8eb8aaf904170ed25778b72f2e05dd5b9be059a4;p=buildroot.git core: allow external Config.in/makefile code to be integrated This commit allows the BR2_EXTERNAL directory to contain Config.in and Makefile code, which gets integrated into the Buildroot build logic: - Buildroot automatically includes the $BR2_EXTERNAL/Config.in in the top-level configuration menu. - Buildroot automatically includes the BR2_EXTERNAL/external.mk in the build logic, so it can for example be used to include other .mk files that define package recipes. This is typically intended to be used to create target packages in the BR2_EXTERNAL directory, but can also be used for bootloaders, host packages, or other custom make logic. We also add a dummy Config.in file in support/dummy-external/ to ensure that the source "$BR2_EXTERNAL/Config.in" line will point to an existing file even when BR2_EXTERNAL is not used by the user. Signed-off-by: Thomas Petazzoni Reviewed-by: "Yann E. MORIN" Tested-by: "Yann E. MORIN" Acked-by: Ryan Barnett Tested-by: "Samuel Martin" Acked-by: "Samuel Martin" Signed-off-by: Peter Korsgaard --- diff --git a/Config.in b/Config.in index ea060bc39a..12d36b5c83 100644 --- a/Config.in +++ b/Config.in @@ -492,3 +492,5 @@ source "boot/Config.in" source "package/Config.in.host" source "Config.in.legacy" + +source "$BR2_EXTERNAL/Config.in" diff --git a/Makefile b/Makefile index f92fd9b2c3..09bc83adda 100644 --- a/Makefile +++ b/Makefile @@ -364,6 +364,8 @@ include boot/common.mk include linux/linux.mk include system/system.mk +include $(BR2_EXTERNAL)/external.mk + TARGETS+=target-finalize ifeq ($(BR2_ENABLE_LOCALE_PURGE),y) diff --git a/support/dummy-external/Config.in b/support/dummy-external/Config.in new file mode 100644 index 0000000000..e69de29bb2 diff --git a/support/dummy-external/external.mk b/support/dummy-external/external.mk new file mode 100644 index 0000000000..e69de29bb2