summaryrefslogtreecommitdiff
path: root/script/roms
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-24 17:28:25 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-24 17:28:25 +0100
commit6753222d0ec038d4c201f99cc75d0440457044e3 (patch)
treef74612342ce1b324fc69e4a5b4848797b6b533c1 /script/roms
parent19e7c1eabb3f1f00b8329c3832f239c75041b05d (diff)
roms: build coreboot early to avoid duplicate work
we're building it per coreboot configuration file, rather than per-target; the latter is more appropriate, and saves on compilation time. do it per-target.cfg, not per coreboot configuration. this works because the trees script compiles all images per target, for each given coreboot configuration within that target, e.g. libgfxinit _corebootfb and _txtmode. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/roms')
-rwxr-xr-xscript/roms3
1 files changed, 1 insertions, 2 deletions
diff --git a/script/roms b/script/roms
index 6ea6a1e1..1e3fcbc6 100755
--- a/script/roms
+++ b/script/roms
@@ -91,6 +91,7 @@ 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
@@ -135,8 +136,6 @@ build_board()
build_roms()
{
- x_ ./update trees -b coreboot $board
-
cbuild="$cbelfdir/$board/${initmode}_$displaymode"
[ "$initmode" = "normal" ] && cbuild="${cbuild%"_$displaymode"}"
x_ cp "$cbuild/coreboot.rom" "$tmprom"