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