https://github.com/torvalds/linux
Raw File
Tip revision: 436b0f76f2cee6617f27a649637766628909dd5d authored by Linus Torvalds on 04 December 2005, 05:10:42 UTC
Linux v2.6.15-rc5
Tip revision: 436b0f7
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