X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=scripts%2Fmkuboot.sh;h=2e3d3cd916b88be452585478ac71b771999903b1;hb=bc749ca4c405d507e6ec6e3f3e5475e9a09faf0a;hp=52a17ab97eb0c371070b4e310fb3822936ed79a1;hpb=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2;p=safe%2Fjmp%2Flinux-2.6 diff --git a/scripts/mkuboot.sh b/scripts/mkuboot.sh index 52a17ab..2e3d3cd 100755 --- a/scripts/mkuboot.sh +++ b/scripts/mkuboot.sh @@ -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