https://github.com/torvalds/linux
Raw File
Tip revision: bf81b46482c0fa8ea638e409d39768ea92a6b0f0 authored by Linus Torvalds on 07 January 2007, 05:45:51 UTC
Linux 2.6.20-rc4
Tip revision: bf81b46
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