https://github.com/torvalds/linux
Raw File
Tip revision: 1c9426e8a59461688bb451e006456987b198e4c0 authored by Linus Torvalds on 30 September 2005, 21:17:35 UTC
Linux v2.6.14-rc3
Tip revision: 1c9426e
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