https://github.com/torvalds/linux
Raw File
Tip revision: 7e27d6e778cd87b6f2415515d7127eba53fe5d02 authored by Linus Torvalds on 12 June 2010, 02:14:04 UTC
Linux 2.6.35-rc3
Tip revision: 7e27d6e
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