mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-22 09:22:37 +00:00
f03e1666d6
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>
20 lines
379 B
Bash
Executable File
20 lines
379 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#
|
|
# Build U-Boot image when `mkimage' tool is available.
|
|
#
|
|
|
|
MKIMAGE=$(type -path "${CROSS_COMPILE}mkimage")
|
|
|
|
if [ -z "${MKIMAGE}" ]; then
|
|
MKIMAGE=$(type -path mkimage)
|
|
if [ -z "${MKIMAGE}" ]; then
|
|
# Doesn't exist
|
|
echo '"mkimage" command not found - U-Boot images will not be built' >&2
|
|
exit 0;
|
|
fi
|
|
fi
|
|
|
|
# Call "mkimage" to create U-Boot image
|
|
${MKIMAGE} "$@"
|