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

From: Peter Zijlstra
Date: Mon Jul 20 2009 - 16:13:26 EST


On Mon, 2009-07-20 at 22:05 +0200, Sam Ravnborg wrote:

> From 27d34661aed0cd3fbf469b8efb24accaf83c1987 Mon Sep 17 00:00:00 2001
> From: Sam Ravnborg <sam@xxxxxxxxxxxx>
> Date: Mon, 20 Jul 2009 21:37:11 +0200
> Subject: [PATCH] kbuild: Use INSTALLKERNEL to select customized installkernel script
>
> Replace the use of CROSS_COMPILE to select a customized
> installkernel script with the possibility to set INSTALLKERNEL
> to select a custom installkernel script when running make:
>
> make INSTALLKERNEL=arm-installkernel install
>
> With this patch we are now more consistent across
> different architectures - they did not all support use
> of CROSS_COMPILE.
>
> The use of CROSS_COMPILE was a hack as this really belongs
> to gcc/binutils and the installkernel script does not change
> just because we change toolchain.
>
> The use of CROSS_COMPILE caused troubles with an upcoming patch
> that saves CROSS_COMPILE when a kernel is built -
> it would no longer be installable.
> [Thanks to Peter for this hint]
>
> This patch undos what Ian did in commit:
>
> 0f8e2d62fa04441cd12c08ce521e84e5bd3f8a46
> ("use ${CROSS_COMPILE}installkernel in arch/*/boot/install.sh")
>
> The patch has been lightly tested on x86 - but all changes
> looks obvious.

Acked-by: Peter Zijlstra <peterz@xxxxxxxxxxxxx>

Looks good to me, thanks sam!

--
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/