X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=scripts%2Fmkuboot.sh;h=2e3d3cd916b88be452585478ac71b771999903b1;hb=1fa4db7d308da04f6644c5cb8eed244c200d4ed5;hp=52a17ab97eb0c371070b4e310fb3822936ed79a1;hpb=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2;p=mv-sheeva.git diff --git a/scripts/mkuboot.sh b/scripts/mkuboot.sh index 52a17ab97eb..2e3d3cd916b 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