path: root/arch/arm/boot/
diff options
authorSam Ravnborg <>2009-07-20 21:37:11 +0200
committerSam Ravnborg <>2009-09-20 12:18:14 +0200
commitcaa27b66bd7188fd063769eaf4b33533ef0709e6 (patch)
tree57d9f96ad40712f690763fb205006938885bbc1a /arch/arm/boot/
parent78f28b7c555359c67c2a0d23f7436e915329421e (diff)
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 Z. for this hint] This patch undos what Ian did in commit: 0f8e2d62fa04441cd12c08ce521e84e5bd3f8a46 ("use ${CROSS_COMPILE}installkernel in arch/*/boot/") The patch has been lightly tested on x86 only - but all changes looks obvious. Acked-by: Peter Zijlstra <> Acked-by: Mike Frysinger <> [blackfin] Acked-by: Russell King <> [arm] Acked-by: Paul Mundt <> [sh] Acked-by: "H. Peter Anvin" <> [x86] Cc: Ian Campbell <> Cc: Tony Luck <> [ia64] Cc: Fenghua Yu <> [ia64] Cc: Hirokazu Takata <> [m32r] Cc: Geert Uytterhoeven <> [m68k] Cc: Kyle McMartin <> [parisc] Cc: Benjamin Herrenschmidt <> [powerpc] Cc: Martin Schwidefsky <> [s390] Cc: Thomas Gleixner <> [x86] Cc: Ingo Molnar <> [x86] Signed-off-by: Sam Ravnborg <>
Diffstat (limited to 'arch/arm/boot/')
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/boot/ b/arch/arm/boot/
index 9f9bed207345..06ea7d42ce8e 100644
--- a/arch/arm/boot/
+++ b/arch/arm/boot/
@@ -21,8 +21,8 @@
# User may have a custom install script
-if [ -x ~/bin/${CROSS_COMPILE}installkernel ]; then exec ~/bin/${CROSS_COMPILE}installkernel "$@"; fi
-if [ -x /sbin/${CROSS_COMPILE}installkernel ]; then exec /sbin/${CROSS_COMPILE}installkernel "$@"; fi
+if [ -x ~/bin/${INSTALLKERNEL} ]; then exec ~/bin/${INSTALLKERNEL} "$@"; fi
+if [ -x /sbin/${INSTALLKERNEL} ]; then exec /sbin/${INSTALLKERNEL} "$@"; fi
if [ "$(basename $2)" = "zImage" ]; then
# Compressed install