https://github.com/torvalds/linux
Raw File
Tip revision: 1860e379875dfe7271c649058aeddffe5afd9d0d authored by Linus Torvalds on 08 June 2014, 18:19:54 UTC
Linux 3.15
Tip revision: 1860e37
mkuboot.sh
#!/bin/bash

#
# Build U-Boot image when `mkimage' tool is available.
#

MKIMAGE=$(type -path "${CROSS_COMPILE}mkimage")

if [ -z "${MKIMAGE}" ]; then
	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 1;
	fi
fi

# Call "mkimage" to create U-Boot image
${MKIMAGE} "$@"
back to top