https://github.com/torvalds/linux
Raw File
Tip revision: 88d7bd8cb9eb8d64bf7997600b0d64f7834047c5 authored by Linus Torvalds on 07 May 2005, 05:20:31 UTC
Linux v2.6.12-rc4
Tip revision: 88d7bd8
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