Revision cfb89f2e7505c6823020a18bbdc5410284305234 authored by Mark Brown on 24 August 2016, 18:05:25 UTC, committed by Mark Brown on 24 August 2016, 18:05:25 UTC
7 parent s e8f0f8a + 209c721 + 06746c6 + a871967 + 1bc610e + 1f85e11 + fa54aad
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