summaryrefslogtreecommitdiff
path: root/script/build/roms
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-04-24 05:27:27 +0100
committerLeah Rowe <leah@libreboot.org>2024-04-24 05:27:27 +0100
commited0678ae2e9b58b3eb9a7606816e21ad8798192e (patch)
treecabc86c3c013a547178526edf36b04e5704ff08c /script/build/roms
parentf5035e327a3a2b7ac1550dd0882b66c8834fe1d8 (diff)
haswell: only provide NRI-based ROMs in releases
release="n" is set in target.cfg on haswell build targets that use mrc.bin script/update/release exports LBMK_RELEASE="y" script/build/roms skips building a given target if release="n" in target.cfg *and* LBMK_RELEASE="y" you could also do the export yourself before running ./build roms, for example: export LBMK_RELEASE="y" ./build roms all This would skip these ROM images. The native haswell raminit is now stable enough in my testing, that I wish to delete the MRC-based targets. This is in line with Libreboot's Binary Blob Reduction Policy, which states: if a blob can be avoided, it should be avoided. The problem is that users often run the inject script in *lbmk* from Git, instead of from the src release archive. I forsee some users running this on modern lbmk with older release images. If the mrc-based target isn't there, the user may use an NRI-based target name, and think it works; they will insert without MRC. I foresaw this ages ago, which is why Caleb and I ensured that the script checks hashes, and hashes are included in releases. Therefore: for the time being, keep the MRC-based configs in lbmk but do not include images for them in releases. This can be done indefinitely, but I'll probably remove those configs entirely at some point. On the following boards, Libreboot now will *only* provide NRI-based ROM images for the following machines: * Dell OptiPlex 9020 SFF * Dell OptiPlex 9020 MT * Lenovo ThinkPad T440p * Lenovo ThinkPad W541/W540 I now recommend exclusive use of NRI-based images, on Haswell hardware. It's stable enough in my testing, and now supports S3. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/build/roms')
-rwxr-xr-xscript/build/roms9
1 files changed, 8 insertions, 1 deletions
diff --git a/script/build/roms b/script/build/roms
index a90e1daa..2510b1fd 100755
--- a/script/build/roms
+++ b/script/build/roms
@@ -20,7 +20,7 @@ cfgsdir="config/coreboot"
# target.cfg files have to specifically enable [a] payload(s)
pv="payload_grub payload_grub_withseabios payload_seabios payload_memtest t"
pv="${pv} payload_seabios_withgrub payload_seabios_grubonly payload_uboot memtest_bin"
-v="romdir cbrom initmode displaymode cbcfg targetdir tree keymaps"
+v="romdir cbrom initmode displaymode cbcfg targetdir tree keymaps release"
v="${v} grub_timeout ubdir board grub_scan_disk uboot_config"
eval "$(setvars "n" ${pv})"
eval "$(setvars "" ${v} boards _displaymode _payload _keyboard all targets)"
@@ -56,6 +56,13 @@ main()
grub_background="background1280x800.png"
board="${x}"
configure_target
+
+ # exclude certain targets from the release
+ if [ "$release" = "n" ] && [ "$lbmk_release" = "y" ]; then
+ printf "Skipping target: %s\n" "$x"
+ continue
+ fi
+
build_payloads
build_target_mainboard
[ -d "bin/${board}" ] || continue