rk: scripts/mkimg: Fix search mkimage

type will return an exit status of false when the name is not found.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ia5f719550c5e6eab3373f6d45c63f5f77d29b688
This commit is contained in:
Tao Huang 2022-01-11 11:16:26 +08:00
parent 859368fca9
commit 19e5202131

View File

@ -113,7 +113,7 @@ repack_boot_img()
check_mkimage()
{
MKIMAGE=$(type -path ${MKIMAGE})
MKIMAGE=$(type -p ${MKIMAGE} || true)
if [ -z "${MKIMAGE}" ]; then
# Doesn't exist
echo '"mkimage" command not found - U-Boot images will not be built' >&2