Back to home page

LXR

 
 

    


0001 #!/bin/bash
0002 
0003 #
0004 # Build U-Boot image when `mkimage' tool is available.
0005 #
0006 
0007 MKIMAGE=$(type -path "${CROSS_COMPILE}mkimage")
0008 
0009 if [ -z "${MKIMAGE}" ]; then
0010         MKIMAGE=$(type -path mkimage)
0011         if [ -z "${MKIMAGE}" ]; then
0012                 # Doesn't exist
0013                 echo '"mkimage" command not found - U-Boot images will not be built' >&2
0014                 exit 1;
0015         fi
0016 fi
0017 
0018 # Call "mkimage" to create U-Boot image
0019 ${MKIMAGE} "$@"