Merge pull request #3730 from fritsch/mkimage

Mkimage: Add forgotten -f to check for file available
This commit is contained in:
Stefan Saraev 2014-12-29 21:01:08 +02:00
commit 3175f2f5b3

View File

@ -233,9 +233,9 @@ elif [ "$BOOTLOADER" = "u-boot" ]; then
fi
echo "image: installing u-boot bootloader..."
if [ "$RELEASE_DIR/3rdparty/bootloader/SPL" ]; then
if [ -f "$RELEASE_DIR/3rdparty/bootloader/SPL" ]; then
dd if="$RELEASE_DIR/3rdparty/bootloader/SPL" of="$DISK" bs=512 seek=2 conv=notrunc
elif [ "$RELEASE_DIR/3rdparty/bootloader/u-boot.imx" ]; then
elif [ -f "$RELEASE_DIR/3rdparty/bootloader/u-boot.imx" ]; then
dd if="$RELEASE_DIR/3rdparty/bootloader/u-boot.imx" of="$DISK" bs=512 seek=2 conv=notrunc
fi