]> err.no Git - linux-2.6/commitdiff
kbuild/mkuboot.sh: allow spaces in CROSS_COMPILE
authorUwe kleine-König <ukleinek@informatik.uni-freiburg.de>
Wed, 28 Mar 2007 14:55:55 +0000 (16:55 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Wed, 2 May 2007 18:58:10 +0000 (20:58 +0200)
I'm currently using CROSS_COMPILE="ccache arm-linux-".  With that the bash
builtin command "type" searches for ccache and arm-linux-mkimage and so sets
MKIMAGE="/path/to/ccache" as I don't have arm-linux-mkimage.  Then the script
dies with an error, that ccache doesn't support the argument -A.

This patch adds some quoting such that it works again for me.

Please note that this patch doesn't help you if you use ${CROSSCOMPILE}-mkimage
and ccache as mkuboot.sh now searches for the command
"ccache arm-linux-mkimage".

Signed-off-by: Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/mkuboot.sh

index 4b06c5eea7283a94524c149f598cfef66872eaaa..2e3d3cd916b88be452585478ac71b771999903b1 100755 (executable)
@@ -4,7 +4,7 @@
 # Build U-Boot image when `mkimage' tool is available.
 #
 
-MKIMAGE=$(type -path ${CROSS_COMPILE}mkimage)
+MKIMAGE=$(type -path "${CROSS_COMPILE}mkimage")
 
 if [ -z "${MKIMAGE}" ]; then
        MKIMAGE=$(type -path mkimage)