Revision db15f3626df80cebd69b69494c90528aae483caf authored by Ralf Baechle on 22 August 2007, 21:48:08 UTC, committed by Ralf Baechle on 27 August 2007, 01:16:59 UTC
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 1bfa771
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 0;
	fi
fi

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