https://github.com/torvalds/linux
Raw File
Tip revision: 907a42617970a159361f17ef9a63f04d276995ab authored by Linus Torvalds on 11 October 2005, 01:19:19 UTC
Linux v2.6.14-rc4
Tip revision: 907a426
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