[Buildroot] [PATCH] Makefile: generate wrapper makefile when running make without a .config
Arnout Vandecappelle
arnout at mind.be
Mon Jul 3 12:25:11 UTC 2017
On 03-07-17 12:24, Peter Korsgaard wrote:
> 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>
However, the br-init-conf script doesn't exist in utils/. Perhaps someone
should add it? :-P
Regards,
Arnout
> ---
> Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Makefile b/Makefile
> index 36231fa9d6..bfe6fa3e07 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
>
>
--
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
More information about the buildroot
mailing list