Skip to content

Commit

Permalink
kbuild/mkuboot.sh: allow spaces in CROSS_COMPILE
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Uwe kleine-König authored and Sam Ravnborg committed May 2, 2007
1 parent e711db3 commit f03e166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/mkuboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f03e166

Please sign in to comment.