summaryrefslogtreecommitdiffstats
path: root/scripts/mkuboot.sh
diff options
context:
space:
mode:
authorRoland Stigge <stigge@antcom.de>2010-12-17 17:19:17 +0100
committerMichal Marek <mmarek@suse.cz>2011-01-07 14:31:01 +0100
commitbc91c9f313309915f6ec767f56f78dcd0305b20f (patch)
tree63cf72c9d606c567ad5730037f8d2da0d7f309a0 /scripts/mkuboot.sh
parenta3c888fcda911fcb6e3c071aecf49ccb6effe79d (diff)
downloadlinux-stable-bc91c9f313309915f6ec767f56f78dcd0305b20f.tar.gz
linux-stable-bc91c9f313309915f6ec767f56f78dcd0305b20f.tar.bz2
linux-stable-bc91c9f313309915f6ec767f56f78dcd0305b20f.zip
mkuboot.sh: Fail if mkimage is missing
on building an uImage, I get: $ make uImage CHK include/linux/version.h CHK include/generated/utsrelease.h make[1]: `include/generated/mach-types.h' is up to date. CALL scripts/checksyscalls.sh CHK include/generated/compile.h Kernel: arch/arm/boot/Image is ready SHIPPED arch/arm/boot/compressed/lib1funcs.S AS arch/arm/boot/compressed/lib1funcs.o LD arch/arm/boot/compressed/vmlinux OBJCOPY arch/arm/boot/zImage Kernel: arch/arm/boot/zImage is ready UIMAGE arch/arm/boot/uImage "mkimage" command not found - U-Boot images will not be built Image arch/arm/boot/uImage is ready $ I.e. it says: "uImage is ready" even though the uImage file doesn't exist because mkimage is missing. I propose the attached patch. Signed-off-by: Roland Stigge <stigge@antcom.de> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/mkuboot.sh')
-rwxr-xr-xscripts/mkuboot.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mkuboot.sh b/scripts/mkuboot.sh
index 2e3d3cd916b8..446739c7843a 100755
--- a/scripts/mkuboot.sh
+++ b/scripts/mkuboot.sh
@@ -11,7 +11,7 @@ if [ -z "${MKIMAGE}" ]; then
if [ -z "${MKIMAGE}" ]; then
# Doesn't exist
echo '"mkimage" command not found - U-Boot images will not be built' >&2
- exit 0;
+ exit 1;
fi
fi