Merge pull request #2478 from MilhouseVH/le90_rm_if_then_boiler_plate_fix

Revert "scripts/mkimage: use helper function"
This commit is contained in:
CvH 2018-02-04 19:41:15 +01:00 committed by GitHub
commit 0ea19c3fe5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -249,8 +249,10 @@ EOF
mcopy -s "$LE_TMP"/extlinux ::
fi
if find_file_path bootloader/mkimage; then
. ${FOUND_PATH}
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
else
echo "No specific mkimage script found. u-boot will not be written"
fi