From 3f540e756596580a6f003d3ce375e4e64bfab9d4 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 28 Jun 2024 14:52:08 +0100 Subject: roms: build u-boot *before* checking ubootelf the current check is flawed, because if u-boot doesn't exist, but a given build would be the file verified by the first check, the check would still fail even after then building u-boot. building it first will make this check pass, under such a condition. Signed-off-by: Leah Rowe --- script/roms | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/roms b/script/roms index 98a9a854..7e032ed0 100755 --- a/script/roms +++ b/script/roms @@ -141,9 +141,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" - x_ ./update trees -b u-boot $board [ -f "$ubootelf" ] || $err "$board: Can't find u-boot" cbfs "$tmprom" "$ubootelf" "fallback/payload" -- cgit v1.2.1