Mkimage: Add forgotten -f to check for file available

This commit is contained in:
fritsch 2014-12-29 19:56:34 +01:00
parent 98b89faf72
commit dae7b19e83

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