Makefile: generate wrapper makefile when running make without a .config
PATCH 1/1 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.
--- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
@@ -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
Signature · 1 line
2.11.0
PATCH 1/1 Makefile: generate wrapper makefile when running make without a .config
Quoted 10 lines · Peter Korsgaard
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 <[email protected]>
However, the br-init-conf script doesn't exist in utils/. Perhaps someone
should add it? :-P
Regards,
Arnout
Quoted 18 lines
--- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Makefile +1
-1@@ -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
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
PATCH 1/1 Makefile: generate wrapper makefile when running make without a .config
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Arnout" == Arnout Vandecappelle <[email protected]> writes:
Quoted 5 lines · Peter Korsgaard
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
Quoted 7 lines
Quoted 5 lines
As there is no wrapper makefile in output-foo.
Fix it by ensuring the wrapper gets created if needed.
Signed-off-by Peter Korsgaard <[email protected]>
Committed, thanks.
Quoted 2 lines
However, the br-init-conf script doesn't exist in utils/. Perhaps someone
should add it? :-P
True. Thomas wrote the script, but it very much depends on the autobuilder toolchains, so probably it needs to be updated with the changes we're doing now.
Signature · 1 line
Bye, Peter Korsgaard