Makefile: generate wrapper makefile when running make without a .config
authorPeter Korsgaard <peter@korsgaard.com>
Mon, 3 Jul 2017 10:24:05 +0000 (12:24 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 3 Jul 2017 13:02:10 +0000 (15:02 +0200)
commit51825df3a184cad0f5bccb6a18b9d6197855cab6
treecab2b488c35349506a3214513d057603e283eaaf
parent56ed4a1ef20aea9bbf46c8c17cb275e3173d5acf
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>
Makefile