https://github.com/torvalds/linux
Raw File
Tip revision: d4e4ab86bcba5a72779c43dc1459f71fea3d89c8 authored by Linus Torvalds on 12 August 2013, 01:04:20 UTC
Linux 3.11-rc5
Tip revision: d4e4ab8
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