summaryrefslogtreecommitdiff
path: root/script/roms
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-24 17:35:44 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-24 17:35:44 +0100
commit2b7df7ab2c96a5e7f4e19b14843ede54b145d81f (patch)
tree67948d1571a63cb6f09c23e8b2ada9503dc4336e /script/roms
parent6753222d0ec038d4c201f99cc75d0440457044e3 (diff)
roms: rename functions for extra clarity
the names of these functions do not match their true intent. fix that by renaming them appropriately. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/roms')
-rwxr-xr-xscript/roms13
1 files changed, 7 insertions, 6 deletions
diff --git a/script/roms b/script/roms
index 1e3fcbc6..43925c3b 100755
--- a/script/roms
+++ b/script/roms
@@ -55,7 +55,7 @@ main()
for x in $boards; do
[ -n "$ser" ] && mkserprogfw "$ser" "$x"
[ -z "$ser" ] && [ -d "config/coreboot/$x/config" ] && \
- configure_target "$x" && build_board && \
+ configure_target "$x" && build_roms && \
[ -d "bin/$board" ] && targets="$targets, $x"; continue
done
@@ -116,7 +116,7 @@ configure_target()
[ "$(uname -m)" = "x86_64" ] || payload_memtest="n"; return 0
}
-build_board()
+build_roms()
{
x_ rm -Rf "$romdir"
@@ -129,20 +129,21 @@ build_board()
[ "$displaymode" != "txtmode" ] && continue
cbcfg="$targetdir/config/${initmode}_$displaymode"
[ "$initmode" = "normal" ] && cbcfg="${cbcfg%_*}"
- e "$cbcfg" f not || build_roms; x_ rm -f "$tmprom"
+ e "$cbcfg" f not || add_payloads; x_ rm -f "$tmprom"
done
done
}
-build_roms()
+add_payloads()
{
cbuild="$cbelfdir/$board/${initmode}_$displaymode"
[ "$initmode" = "normal" ] && cbuild="${cbuild%"_$displaymode"}"
x_ cp "$cbuild/coreboot.rom" "$tmprom"
- [ "$payload_seabios" = "y" ] && build_seabios_roms
+ [ "$payload_seabios" = "y" ] && add_seabios_payload
[ "$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" ] && \
@@ -153,7 +154,7 @@ build_roms()
cprom "$romdir/uboot_payload_${board}_${initmode}_$displaymode.rom"
}
-build_seabios_roms()
+add_seabios_payload()
{
_seabioself="elf/seabios/default/$initmode/bios.bin.elf"
x_ ./update trees -b seabios