Staging
v0.5.1
https://github.com/torvalds/linux
Raw File
Tip revision: cc016448b0bf0764928275d034e367753bde8162 authored by Linus Torvalds on 14 December 2006, 01:14:23 UTC
Linux v2.6.20-rc1
Tip revision: cc01644
mkuboot.sh
#!/bin/bash

#
# Build U-Boot image when `mkimage' tool is available.
#

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

# Call "mkimage" to create U-Boot image
${MKIMAGE} "$@"
back to top