https://github.com/torvalds/linux
Raw File
Tip revision: dc47ce90c3a822cd7c9e9339fe4d5f61dcb26b50 authored by Linus Torvalds on 09 December 2011, 23:09:32 UTC
Linux 3.2-rc5
Tip revision: dc47ce9
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