summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-16 12:46:03 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-16 12:46:03 +0100
commit92aa83a23696cd5706770af78d49858ef2d0c28d (patch)
tree2784dee33cc4f35bb72f243577c32289cf7b5d0f
parentd3e78864505af1834605234a3aa38d70c169d553 (diff)
roms: simplify build_roms()
cbcfg is already a global variable, so there's no reason to set it again at the start of this function. remove the check for whether the given coreboot config exists, to the calling function instead of build_roms(). Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xscript/roms5
1 files changed, 1 insertions, 4 deletions
diff --git a/script/roms b/script/roms
index 99f53e00..ea2f4b26 100755
--- a/script/roms
+++ b/script/roms
@@ -184,16 +184,13 @@ build_board()
[ "$displaymode" != "txtmode" ] && continue
cbcfg="$targetdir/config/${initmode}_$displaymode"
[ "$initmode" = "normal" ] && cbcfg="${cbcfg%_*}"
- build_roms "$cbcfg"; x_ rm -f "$cbrom"
+ e "$cbcfg" f not || build_roms; x_ rm -f "$cbrom"
done
done
}
build_roms()
{
- cbcfg="$1"
- e "$cbcfg" f not && return 0
-
x_ ./update trees -b coreboot $board
_cbrom="elf/coreboot_nopayload_DO_NOT_FLASH"