PageRenderTime 8ms CodeModel.GetById 2ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/scripts/mkuboot.sh

http://github.com/mirrors/linux
Shell | 20 lines | 9 code | 4 blank | 7 comment | 2 complexity | 2fe2c831bf3c0f591f8219e6d080ae1e MD5 | raw file
 1#!/bin/bash
 2# SPDX-License-Identifier: GPL-2.0
 3
 4#
 5# Build U-Boot image when `mkimage' tool is available.
 6#
 7
 8MKIMAGE=$(type -path "${CROSS_COMPILE}mkimage")
 9
10if [ -z "${MKIMAGE}" ]; then
11	MKIMAGE=$(type -path mkimage)
12	if [ -z "${MKIMAGE}" ]; then
13		# Doesn't exist
14		echo '"mkimage" command not found - U-Boot images will not be built' >&2
15		exit 1;
16	fi
17fi
18
19# Call "mkimage" to create U-Boot image
20${MKIMAGE} "$@"