[Buildroot] [PATCHv3 2/5] core: allow external Config.in/makefile code to be integrated
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Wed Nov 27 22:31:45 UTC 2013
This commit allows the BR2_EXTERNAL directory to contain additional
Buildroot packages:
- Buildroot automatically includes the
$BR2_EXTERNAL/package/Config.in in the "Target packages"
configuration sub-menu.
- Buildroot automatically includes the BR2_EXTERNAL/package/*/*.mk
files in the build 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 <thomas.petazzoni at free-electrons.com>
---
Makefile | 4 ++++
package/Config.in | 2 ++
support/dummy-external/package/Config.in | 0
3 files changed, 6 insertions(+)
create mode 100644 support/dummy-external/package/Config.in
diff --git a/Makefile b/Makefile
index a46418e..013b646 100644
--- a/Makefile
+++ b/Makefile
@@ -368,6 +368,10 @@ include boot/common.mk
include linux/linux.mk
include system/system.mk
+ifeq ($(BR2_EXTERNAL_USED),y)
+include $(sort $(wildcard $(BR2_EXTERNAL)/package/*/*.mk))
+endif
+
TARGETS+=target-finalize
ifeq ($(BR2_ENABLE_LOCALE_PURGE),y)
diff --git a/package/Config.in b/package/Config.in
index 311cc6c..fafaa2b 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -997,4 +997,6 @@ source "package/vim/Config.in"
endif
endmenu
+source "$BR2_EXTERNAL/package/Config.in"
+
endmenu
diff --git a/support/dummy-external/package/Config.in b/support/dummy-external/package/Config.in
new file mode 100644
index 0000000..e69de29
--
1.8.1.2
More information about the buildroot
mailing list