Revision 6330c27817186caf38fc80e467cf858d9dd167fd authored by popcornmix on 01 February 2016, 13:42:12 UTC, committed by popcornmix on 01 February 2016, 13:42:12 UTC
2 parent s db37370 + 2d5f6b0
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