https://github.com/torvalds/linux
Raw File
Tip revision: d8c3291c73b958243b33f8509d4507e76dafd055 authored by Linus Torvalds on 11 May 2006, 23:31:53 UTC
Linux v2.6.17-rc4
Tip revision: d8c3291
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