https://jxself.org/git/linux-libre.git
Raw File
Tip revision: ced9b8ad9cf6ad62c7df3bd8e38dfa7377dc8f73 authored by Jason Self on 06 January 2012, 22:15:53 UTC
Linux-libre 3.0.16-gnu1
Tip revision: ced9b8a
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