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 ::
fi
if [ -f $PROJECT_DIR/$PROJECT/devices/$DEVICE/bootloader/mkimage ]; then
. $PROJECT_DIR/$PROJECT/devices/$DEVICE/bootloader/mkimage
elif [ -f $PROJECT_DIR/$PROJECT/bootloader/mkimage ]; then
. $PROJECT_DIR/$PROJECT/bootloader/mkimage
if find_file_path bootloader/mkimage; then
. ${FOUND_PATH}
else
echo "No specific mkimage script found. u-boot will not be written"
fi