[Buildroot] [git commit] Makefile: generate wrapper makefile when running make without a .config

Peter Korsgaard peter at korsgaard.com
Mon Jul 3 13:02:10 UTC 2017


commit: https://git.buildroot.net/buildroot/commit/?id=51825df3a184cad0f5bccb6a18b9d6197855cab6
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

The recent change to error out instead of running menuconfig when no .config
is available broke an existing use case:

make O=output-foo; cd output-foo; br-init-conf (or similar to get a sensible .config); make

As there is no wrapper makefile in output-foo.

Fix it by ensuring the wrapper gets created if needed.

Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 36231fa..bfe6fa3 100644
--- a/Makefile
+++ b/Makefile
@@ -816,7 +816,7 @@ else # ifeq ($(BR2_HAVE_DOT_CONFIG),y)
 # rule for it.
 # Also for 'all' we error out and ask the user to configure first.
 .PHONY: linux toolchain
-linux toolchain all:
+linux toolchain all: outputmakefile
 	$(error Please configure Buildroot first (e.g. "make menuconfig"))
 	@exit 1
 


More information about the buildroot mailing list