https://github.com/torvalds/linux
Raw File
Tip revision: e478bec0ba0a83a48a0f6982934b6de079e7e6b3 authored by Linus Torvalds on 20 September 2006, 03:42:06 UTC
Linux v2.6.18. Arrr!
Tip revision: e478bec
mkuboot.sh
#!/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} "$@"
back to top