mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-22 09:22:37 +00:00
8c7e4498ad
Check to see if `${CROSS_COMPILE}mkimage` exists and if not, fall back to the standard `mkimage` The Blackfin toolchain includes mkimage, but we dont want to namespace collide with any of the user's system setup, so we prefix it with our toolchain name. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Cc: Sam Ravnborg <sam@ravnborg.org> Cc: Oleg Verych <olecom@flower.upol.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
20 lines
377 B
Bash
Executable File
20 lines
377 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} "$@"
|