Makefile: generate wrapper makefile when running make without a .config

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@korsgaard.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Peter Korsgaard 2017-07-03 12:24:05 +02:00
parent 56ed4a1ef2
commit 51825df3a1

View File

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