[Buildroot] [PATCH 2/2] linux: fix linux-% shortcut targets

Peter Korsgaard jacmet at uclibc.org
Sun Dec 19 20:15:40 UTC 2010


>>>>> "Bjørn" == Bjørn Forsman <bjorn.forsman at gmail.com> writes:

Hi,

 Bjørn> linux-% shortcut targets (short for linux26-%) ignores the ouput
 Bjørn> dir $(O) so that 'make O=output.arm linux-menuconfig' is
 Bjørn> actually run in the default $(O) directory output/ and not in
 Bjørn> output.arm/. Fix by passing on $(O).

This is still not correct. You should only pass O= if it was given on
the command line, otherwise BR will look in output/.config for the
configuration for non-out-of-tree-builds. I've added EXTRAMAKEARGS in
the toplevel makefile a while ago to handle it.

Committed with that change.

 Bjørn> Signed-off-by: Bjørn Forsman <bjorn.forsman at gmail.com>
 Bjørn> ---
 Bjørn>  linux/linux.mk |    2 +-
 Bjørn>  1 files changed, 1 insertions(+), 1 deletions(-)

 Bjørn> diff --git a/linux/linux.mk b/linux/linux.mk
 Bjørn> index 6636a35..68d2d6d 100644
 Bjørn> --- a/linux/linux.mk
 Bjørn> +++ b/linux/linux.mk
 Bjørn> @@ -200,4 +200,4 @@ endif
 Bjørn>  endif
 
 Bjørn>  linux-%:
 Bjørn> -	$(MAKE) $(subst linux-,linux26-,$@)
 Bjørn> +	$(MAKE) O=$(O) $(subst linux-,linux26-,$@)
 Bjørn> -- 
 Bjørn> 1.7.1

 Bjørn> _______________________________________________
 Bjørn> buildroot mailing list
 Bjørn> buildroot at busybox.net
 Bjørn> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list