summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-25 09:54:22 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-25 09:54:22 +0100
commit1ab9189cbd3592f009140e03097cf75dd67504c3 (patch)
tree4a5d7d38eb7619f7de157a66a9fb9a5b0207322f
parent2b4c6ee5ca77652ba6080dc76acd665f626f346d (diff)
roms: build coreboot *after* checking variables
otherwise, release=n is ignored and an image is built in the elf/ directory, even if it's still skipped for bin/ avoid doing unnecessary work per-release by checking the variables before building coreboot via script/trees Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xscript/roms3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/roms b/script/roms
index d5eedd6a..72cb4fc2 100755
--- a/script/roms
+++ b/script/roms
@@ -93,12 +93,13 @@ configure_target()
# Override the above defaults using target.cfg
eval `setcfg "$targetdir/target.cfg"`
- x_ ./update trees -b coreboot $board
[ -z "$tree" ] && $err "$board: tree not defined"
[ "$XBMK_RELEASE" = "y" ] && [ "$release" = "n" ] && return 1
[ "$board" = "$tree" ] && return 1
+ x_ ./update trees -b coreboot $board
+
cbdir="src/coreboot/$tree"
cbfstool="elf/cbfstool/$tree/cbfstool"
[ -f "$cbfstool" ] || x_ ./update trees -b coreboot utils $tree