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
- Lines: 18
- Date:
2003-11-28 10:26:21.000000000 -0800
- Orig file:
linux-2.4.22/scripts/mkuboot.sh
- Orig date:
1969-12-31 16:00:00.000000000 -0800
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)