scripts/mkimage: use helper function

This commit is contained in:
MilhouseVH 2018-02-01 05:21:36 +00:00
parent 964e1c3755
commit 7793bea2e9

View File

@ -249,10 +249,8 @@ EOF
mcopy -s "$LE_TMP"/extlinux :: mcopy -s "$LE_TMP"/extlinux ::
fi fi
if [ -f $PROJECT_DIR/$PROJECT/devices/$DEVICE/bootloader/mkimage ]; then if find_file_path bootloader/mkimage; then
. $PROJECT_DIR/$PROJECT/devices/$DEVICE/bootloader/mkimage . ${FOUND_PATH}
elif [ -f $PROJECT_DIR/$PROJECT/bootloader/mkimage ]; then
. $PROJECT_DIR/$PROJECT/bootloader/mkimage
else else
echo "No specific mkimage script found. u-boot will not be written" echo "No specific mkimage script found. u-boot will not be written"
fi fi