https://github.com/torvalds/linux
Raw File
Tip revision: 6246b6128bbe34d0752f119cf7c5111c85fe481d authored by Linus Torvalds on 03 April 2006, 03:22:10 UTC
Linux v2.6.17-rc1
Tip revision: 6246b61
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