* [PATCH] Fix scripts/mkuboot.sh to return status
@ 2005-03-03 21:16 George G. Davis
2005-03-13 8:57 ` Sam Ravnborg
0 siblings, 1 reply; 2+ messages in thread
From: George G. Davis @ 2005-03-03 21:16 UTC (permalink / raw)
To: sam, linux-kernel
Sam,
If `mkimage` is either not found in search path or returns non-zero status,
`make uImage` succeeds when it should fail. This changes scripts/mkuboot.sh
to return status so build succeeds or fails as appropriate.
Source: MontaVista Software, Inc.
MR: 10761
Type: Defect Fix
Disposition: submitted to linux-kernel@vger.kernel.org
Keywords:
Description:
Fix scripts/mkuboot.sh to return non-zero status to indicate
build failure when uImage target is not created.
Signed-off-by: George G. Davis <gdavis@mvista.com>
Index: linux-2.6.11-bk/scripts/mkuboot.sh
===================================================================
--- linux-2.6.11-bk.orig/scripts/mkuboot.sh
+++ linux-2.6.11-bk/scripts/mkuboot.sh
@@ -9,8 +9,10 @@
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
# Call "mkimage" to create U-Boot image
${MKIMAGE} "$@"
+
+exit $?
--
Regards,
George
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-13 8:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-03 21:16 [PATCH] Fix scripts/mkuboot.sh to return status George G. Davis
2005-03-13 8:57 ` Sam Ravnborg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®