swh:1:snp:c3bf2749e3476071fa748f67b0ffa2fdc5fe49d9
Raw File
Tip revision: 93918e9afc76717176e9e114e79cdbb602a45ae8 authored by Linus Torvalds on 20 October 2005, 06:23:05 UTC
Linux v2.6.14-rc5
Tip revision: 93918e9
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