From c661eca6b9e84c7ba036434e84461dd05727e832 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 24 Jun 2024 18:30:48 +0100 Subject: roms: optimise u-boot elf check because we use crossgcc here, blindly running trees -f means needlessly re-running buildgcc, which then checks for gcc binaries, even though we already know that the u-boot binary exists. skip this check if u-boot exists. Signed-off-by: Leah Rowe --- script/roms | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'script/roms') 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" -- cgit v1.2.1