patch-2.4.19 linux-2.4.19/arch/ppc/boot/utils/mkimage.wrapper

Next file: linux-2.4.19/arch/ppc/boot/utils/mkirimg
Previous file: linux-2.4.19/arch/ppc/boot/utils/mkevimg
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/arch/ppc/boot/utils/mkimage.wrapper linux-2.4.19/arch/ppc/boot/utils/mkimage.wrapper
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+#
+# Build PPCBoot image when `mkimage' tool is available.
+#
+
+MKIMAGE=$(type -path mkimage)
+
+if [ -z "${MKIMAGE}" ]; then
+	# Doesn't exist
+	echo '"mkimage" command not found - PPCBoot images will not be built' >&2
+	exit 0;
+fi
+
+# Call "mkimage" to create PPCBoot image
+${MKIMAGE} "$@"

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