Re: [PATCH] kbuild: save ARCH & CROSS_COMPILE when building a kernel

From: Mike Frysinger
Date: Mon Jul 20 2009 - 17:05:41 EST


On Mon, Jul 20, 2009 at 16:05, Sam Ravnborg wrote:
> --- a/arch/blackfin/Makefile
> +++ b/arch/blackfin/Makefile
> @@ -155,7 +155,7 @@ define archhelp
>  echo Â'* vmImage.gz   Â- Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.gz)'
>  echo Â' ÂvmImage.lzma  Â- Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.lzma)'
>  echo Â' Âinstall     - Install kernel using'
> - Âecho Â' Â Â Â Â Â Â Â Â Â Â (your) ~/bin/$(CROSS_COMPILE)installkernel or'
> - Âecho Â' Â Â Â Â Â Â Â Â Â Â (distribution) PATH: $(CROSS_COMPILE)installkernel or'
> + Âecho Â' Â Â Â Â Â Â Â Â Â Â (your) ~/bin/$(INSTALLKERNEL) or'
> + Âecho Â' Â Â Â Â Â Â Â Â Â Â (distribution) PATH: $(INSTALLKERNEL) or'
> Â echo Â' Â Â Â Â Â Â Â Â Â Â install to $$(INSTALL_PATH)'
> Âendef
> diff --git a/arch/blackfin/boot/install.sh b/arch/blackfin/boot/install.sh
> index 9560a6b..e2c6e40 100644
> --- a/arch/blackfin/boot/install.sh
> +++ b/arch/blackfin/boot/install.sh
> @@ -36,9 +36,9 @@ verify "$3"
>
> Â# User may have a custom install script
>
> -if [ -x ~/bin/${CROSS_COMPILE}installkernel ]; then exec ~/bin/${CROSS_COMPILE}installkernel "$@"; fi
> -if which ${CROSS_COMPILE}installkernel >/dev/null 2>&1; then
> - Â Â Â exec ${CROSS_COMPILE}installkernel "$@"
> +if [ -x ~/bin/${INSTALLKERNEL} ]; then exec ~/bin/${INSTALLKERNEL} "$@"; fi
> +if which ${INSTALLKERNEL} >/dev/null 2>&1; then
> + Â Â Â exec ${INSTALLKERNEL} "$@"
> Âfi
>
> Â# Default install - same as make zlilo

np with this, Acked-by-me
-mike
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/