Revision 21ca543efc12674fddb22ddf4ea4906427f4e982 authored by Ilya Dryomov on 04 November 2011, 13:41:02 UTC, committed by Chris Mason on 06 November 2011, 08:11:21 UTC
Signed-off-by: Chris Mason <chris.mason@oracle.com>
1 parent 9510dc4
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} "$@"
Computing file changes ...