https://github.com/torvalds/linux
Raw File
Tip revision: c65b99f046843d2455aa231747b5a07a999a9f3d authored by Linus Torvalds on 01 June 2015, 02:01:07 UTC
Linux 4.1-rc6
Tip revision: c65b99f
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