Skip to content

Commit

Permalink
[PATCH] search a little harder for mkimage
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Mike Frysinger authored and Linus Torvalds committed Feb 14, 2007
1 parent b7de8e7 commit 8c7e449
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions scripts/mkuboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@
# Build U-Boot image when `mkimage' tool is available.
#

MKIMAGE=$(type -path mkimage)
MKIMAGE=$(type -path ${CROSS_COMPILE}mkimage)

if [ -z "${MKIMAGE}" ]; then
# Doesn't exist
echo '"mkimage" command not found - U-Boot images will not be built' >&2
exit 0;
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
Expand Down

0 comments on commit 8c7e449

Please sign in to comment.