Skip to content

Commit

Permalink
br2-external: source external-defconfig
Browse files Browse the repository at this point in the history
As reported by Patrick Williams, there is not way to source an external
Makefile from BR2_EXTERNAL when BR2_HAVE_DOT_CONFIG is not set.

This is a problem for the support of merged defconfigs which should be
handled outside of Buildroot.

Add a new required file in BR2_EXTERNAL named external-defconfig.mk.
If BR2_EXTERNAL is not set, source a dummy external-defconfig.mk.

[1] http://lists.busybox.net/pipermail/buildroot/2016-July/166955.html
[2] http://patchwork.ozlabs.org/patch/641838/

Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
TODO: add some Documentation
  • Loading branch information
RomainNaour committed Jul 6, 2016
1 parent d438427 commit 396744b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Expand Up @@ -868,6 +868,8 @@ savedefconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
$(CONFIG_CONFIG_IN)
@$(SED) '/BR2_DEFCONFIG=/d' $(if $(DEFCONFIG),$(DEFCONFIG),$(CONFIG_DIR)/defconfig)

include $(BR2_EXTERNAL)/external-defconfig.mk

.PHONY: defconfig savedefconfig

################################################################################
Expand Down
Empty file.

0 comments on commit 396744b

Please sign in to comment.