diff options
| -rwxr-xr-x | script/roms | 7 | 
1 files changed, 3 insertions, 4 deletions
| diff --git a/script/roms b/script/roms index 48c1f52b..06f58724 100755 --- a/script/roms +++ b/script/roms @@ -139,10 +139,9 @@ add_payloads()  	[ "$payload_uboot" = "y" ] || return 0  	# add u-boot payload -	x_ ./update trees -b u-boot $board -	ubdir="elf/u-boot/$board/$uboot_config" -	ubootelf="$ubdir/u-boot.elf" && [ ! -f "$ubootelf" ] && \ -	    ubootelf="$ubdir/u-boot" +	ubdir="elf/u-boot/$board/$uboot_config"; ubootelf="$ubdir/u-boot.elf" \ +	    && [ ! -f "$ubootelf" ] && ubootelf="$ubdir/u-boot" +	[ -f "$ubootelf" ] || x_ ./update trees -b u-boot $board  	[ -f "$ubootelf" ] || $err "$board: Can't find u-boot"  	cbfs "$tmprom" "$ubootelf" "fallback/payload" | 
