aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mkuboot.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/scripts/mkuboot.sh b/scripts/mkuboot.sh
index 52a17ab97eb0..4b06c5eea728 100755
--- a/scripts/mkuboot.sh
+++ b/scripts/mkuboot.sh
@@ -4,12 +4,15 @@
4# Build U-Boot image when `mkimage' tool is available. 4# Build U-Boot image when `mkimage' tool is available.
5# 5#
6 6
7MKIMAGE=$(type -path mkimage) 7MKIMAGE=$(type -path ${CROSS_COMPILE}mkimage)
8 8
9if [ -z "${MKIMAGE}" ]; then 9if [ -z "${MKIMAGE}" ]; then
10 # Doesn't exist 10 MKIMAGE=$(type -path mkimage)
11 echo '"mkimage" command not found - U-Boot images will not be built' >&2 11 if [ -z "${MKIMAGE}" ]; then
12 exit 0; 12 # Doesn't exist
13 echo '"mkimage" command not found - U-Boot images will not be built' >&2
14 exit 0;
15 fi
13fi 16fi
14 17
15# Call "mkimage" to create U-Boot image 18# Call "mkimage" to create U-Boot image