patch-2.4.23 linux-2.4.23/scripts/mkuboot.sh

Next file: linux-2.4.23/CREDITS
Previous file: linux-2.4.23/net/sunrpc/xprt.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/scripts/mkuboot.sh linux-2.4.23/scripts/mkuboot.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+#
+# Build U-Boot image when `mkimage' tool is available.
+#
+
+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
+
+# Call "mkimage" to create U-Boot image
+${MKIMAGE} "$@"


FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)