https://github.com/torvalds/linux
Raw File
Tip revision: b6ff50833ad43a8ebd9b16bf53c334f7aaf33c41 authored by Linus Torvalds on 30 July 2006, 06:15:36 UTC
Linux v2.6.18-rc3
Tip revision: b6ff508
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