mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-04 01:35:25 -05:00
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 <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Cc: Oleg Verych <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
19 lines
377 B
Shell
Executable file
19 lines
377 B
Shell
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} "$@"
|