From 9a5e941f3b4e511853218e86c75a67bd43a142d9 Mon Sep 17 00:00:00 2001 From: Piotr Szczepanik Date: Sat, 7 Dec 2019 09:20:30 +0100 Subject: [PATCH] Fixed usage of unknown vars in nand-sata-install (#1662) --- config/sources/families/rk3399.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/sources/families/rk3399.conf b/config/sources/families/rk3399.conf index 8b9f4fa32..fd15f21fe 100644 --- a/config/sources/families/rk3399.conf +++ b/config/sources/families/rk3399.conf @@ -68,12 +68,12 @@ fi write_uboot_platform() { - if [[ $BOOT_USE_MAINLINE_ATF == yes || $BOOT_USE_TPL_SPL_BLOB == yes ]]; then + if [[ -f $1/u-boot.itb ]]; then # $BOOT_USE_MAINLINE_ATF == yes || $BOOT_USE_TPL_SPL_BLOB == yes dd if=$1/idbloader.img of=$2 seek=64 conv=notrunc status=none >/dev/null 2>&1 dd if=$1/u-boot.itb of=$2 seek=16384 conv=notrunc status=none >/dev/null 2>&1 - elif [[ $BOOT_USE_BLOBS == yes ]] ; then + elif [[ -f $1/uboot.img ]]; then # $BOOT_USE_BLOBS == yes dd if=$1/idbloader.bin of=$2 seek=64 conv=notrunc status=none >/dev/null 2>&1 dd if=$1/uboot.img of=$2 seek=16384 conv=notrunc status=none >/dev/null 2>&1