Back to home page

OSCL-LXR

 
 

    


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