Revision e225f446a0808ce38b124df489d0568c05c3057a authored by Ben Skeggs on 21 November 2012, 04:40:21 UTC, committed by Ben Skeggs on 28 November 2012, 23:57:58 UTC
1 parent 4f6029d
Raw File
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