https://github.com/torvalds/linux
Raw File
Tip revision: a2755a80f40e5794ddc20e00f781af9d6320fafb authored by Linus Torvalds on 20 April 2005, 23:24:21 UTC
Linux v2.6.12-rc3
Tip revision: a2755a8
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