https://github.com/torvalds/linux
Raw File
Tip revision: cd52d1ee9a92587b242d946a2300a3245d3b885a authored by Linus Torvalds on 12 November 2005, 01:43:36 UTC
Linux v2.6.15-rc1
Tip revision: cd52d1e
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