From f44b99c808ed834dceea1109c34a2f587bb46a06 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 23 Dec 2023 06:54:56 +0000 Subject: don't delete microcode updates in rom images at present, lbmk can remove microcode updates on images for a given target, if the target specifies microcode_required="n" in target.cfg lbmk then provides images with microcode, and images without, in a given release. although the user can also remove them manually, this just makes it a bit more convenient, for those users who do wish to run without the updates. this functionality is provided only on those platforms where no-microcode is tested. well, this behaviour implements a compromise on libreboot policy, which is to always include microcode updates by default. see: Binary Blob Reduction Policy the *canoeboot* project now exists, developed in parallel with libreboot, and it ships without microcode updates, on the same targets where lbmk also handled this. running without microcode updates is foolish, and should not be encouraged. clean up lbmk by not providing this kludge. the libreboot documentation will be updated, telling such users to try canoeboot instead, or to remove the update from a given libreboot rom - this is still possible, and mitigations such as PECI disablement on GM45 are still in place (and will be kept), so that this continues to work well. Signed-off-by: Leah Rowe --- config/coreboot/d510mo/target.cfg | 2 -- config/coreboot/d510mo_16mb/target.cfg | 2 -- config/coreboot/d945gclf_512kb/target.cfg | 2 -- config/coreboot/d945gclf_8mb/target.cfg | 2 -- config/coreboot/e6400_4mb/target.cfg | 1 - config/coreboot/e6430_12mb/target.cfg | 1 - config/coreboot/e6530_12mb/target.cfg | 1 - config/coreboot/g43t-am3/target.cfg | 2 -- config/coreboot/g43t-am3_16mb/target.cfg | 2 -- config/coreboot/ga-g41m-es2l/target.cfg | 2 -- config/coreboot/gru_bob/target.cfg | 2 -- config/coreboot/gru_kevin/target.cfg | 2 -- config/coreboot/kcma-d8-rdimm_16mb/target.cfg | 1 - config/coreboot/kcma-d8-rdimm_2mb/target.cfg | 1 - config/coreboot/kcma-d8-udimm_16mb/target.cfg | 1 - config/coreboot/kcma-d8-udimm_2mb/target.cfg | 1 - config/coreboot/kfsn4-dre_1mb/target.cfg | 1 - config/coreboot/kfsn4-dre_2mb/target.cfg | 1 - config/coreboot/kgpe-d16-rdimm_16mb/target.cfg | 1 - config/coreboot/kgpe-d16-rdimm_2mb/target.cfg | 1 - config/coreboot/kgpe-d16-udimm_16mb/target.cfg | 1 - config/coreboot/kgpe-d16-udimm_2mb/target.cfg | 1 - config/coreboot/macbook11/target.cfg | 2 -- config/coreboot/macbook11_16mb/target.cfg | 2 -- config/coreboot/macbook21/target.cfg | 2 -- config/coreboot/macbook21_16mb/target.cfg | 2 -- config/coreboot/qemu_arm64_12mb/target.cfg | 2 -- config/coreboot/qemu_x86_12mb/target.cfg | 2 -- config/coreboot/r400_16mb/target.cfg | 2 -- config/coreboot/r400_4mb/target.cfg | 2 -- config/coreboot/r400_8mb/target.cfg | 2 -- config/coreboot/r500_4mb/target.cfg | 2 -- config/coreboot/t400_16mb/target.cfg | 2 -- config/coreboot/t400_4mb/target.cfg | 2 -- config/coreboot/t400_8mb/target.cfg | 2 -- config/coreboot/t500_16mb/target.cfg | 2 -- config/coreboot/t500_4mb/target.cfg | 2 -- config/coreboot/t500_8mb/target.cfg | 2 -- config/coreboot/t60_16mb_intelgpu/target.cfg | 2 -- config/coreboot/t60_intelgpu/target.cfg | 2 -- config/coreboot/w500_16mb/target.cfg | 2 -- config/coreboot/w500_4mb/target.cfg | 2 -- config/coreboot/w500_8mb/target.cfg | 2 -- config/coreboot/x200_16mb/target.cfg | 2 -- config/coreboot/x200_4mb/target.cfg | 2 -- config/coreboot/x200_8mb/target.cfg | 2 -- config/coreboot/x301_16mb/target.cfg | 2 -- config/coreboot/x301_4mb/target.cfg | 2 -- config/coreboot/x301_8mb/target.cfg | 2 -- config/coreboot/x60/target.cfg | 2 -- config/coreboot/x60_16mb/target.cfg | 2 -- script/build/roms | 19 +++++----------- script/update/release | 31 +------------------------- script/vendor/inject | 18 --------------- 54 files changed, 7 insertions(+), 150 deletions(-) diff --git a/config/coreboot/d510mo/target.cfg b/config/coreboot/d510mo/target.cfg index ca09f0b9..251cae5b 100644 --- a/config/coreboot/d510mo/target.cfg +++ b/config/coreboot/d510mo/target.cfg @@ -4,5 +4,3 @@ payload_grub="n" payload_grub_withseabios="n" payload_seabios="y" payload_memtest="y" -microcode_required="n" -vendorfiles="n" diff --git a/config/coreboot/d510mo_16mb/target.cfg b/config/coreboot/d510mo_16mb/target.cfg index 38e21a33..3958f90b 100644 --- a/config/coreboot/d510mo_16mb/target.cfg +++ b/config/coreboot/d510mo_16mb/target.cfg @@ -3,5 +3,3 @@ arch="i386-elf" payload_seabios="y" payload_seabios_withgrub="y" payload_memtest="y" -microcode_required="n" -vendorfiles="n" diff --git a/config/coreboot/d945gclf_512kb/target.cfg b/config/coreboot/d945gclf_512kb/target.cfg index 8e8e0428..4c1ed0b6 100644 --- a/config/coreboot/d945gclf_512kb/target.cfg +++ b/config/coreboot/d945gclf_512kb/target.cfg @@ -4,5 +4,3 @@ payload_grub="n" payload_grub_withseabios="n" payload_seabios="y" payload_memtest="n" -vendorfiles="n" -microcode_required="n" diff --git a/config/coreboot/d945gclf_8mb/target.cfg b/config/coreboot/d945gclf_8mb/target.cfg index 8e8e0428..4c1ed0b6 100644 --- a/config/coreboot/d945gclf_8mb/target.cfg +++ b/config/coreboot/d945gclf_8mb/target.cfg @@ -4,5 +4,3 @@ payload_grub="n" payload_grub_withseabios="n" payload_seabios="y" payload_memtest="n" -vendorfiles="n" -microcode_required="n" diff --git a/config/coreboot/e6400_4mb/target.cfg b/config/coreboot/e6400_4mb/target.cfg index a8f122bd..46a3425e 100644 --- a/config/coreboot/e6400_4mb/target.cfg +++ b/config/coreboot/e6400_4mb/target.cfg @@ -7,4 +7,3 @@ payload_memtest="y" payload_seabios_withgrub="y" payload_seabios_grubonly="y" grub_scan_disk="ahci" -microcode_required="n" diff --git a/config/coreboot/e6430_12mb/target.cfg b/config/coreboot/e6430_12mb/target.cfg index 4f3dc92a..ddcf32d4 100644 --- a/config/coreboot/e6430_12mb/target.cfg +++ b/config/coreboot/e6430_12mb/target.cfg @@ -7,4 +7,3 @@ payload_memtest="y" payload_seabios_withgrub="y" payload_seabios_grubonly="y" grub_scan_disk="ahci" -microcode_required="n" diff --git a/config/coreboot/e6530_12mb/target.cfg b/config/coreboot/e6530_12mb/target.cfg index 4f3dc92a..ddcf32d4 100644 --- a/config/coreboot/e6530_12mb/target.cfg +++ b/config/coreboot/e6530_12mb/target.cfg @@ -7,4 +7,3 @@ payload_memtest="y" payload_seabios_withgrub="y" payload_seabios_grubonly="y" grub_scan_disk="ahci" -microcode_required="n" diff --git a/config/coreboot/g43t-am3/target.cfg b/config/coreboot/g43t-am3/target.cfg index 1aa5ccc8..db5a46d9 100644 --- a/config/coreboot/g43t-am3/target.cfg +++ b/config/coreboot/g43t-am3/target.cfg @@ -2,6 +2,4 @@ tree="default" arch="i386-elf" payload_seabios="y" payload_memtest="y" -microcode_required="n" -vendorfiles="n" grub_timeout=10 diff --git a/config/coreboot/g43t-am3_16mb/target.cfg b/config/coreboot/g43t-am3_16mb/target.cfg index 1aa5ccc8..db5a46d9 100644 --- a/config/coreboot/g43t-am3_16mb/target.cfg +++ b/config/coreboot/g43t-am3_16mb/target.cfg @@ -2,6 +2,4 @@ tree="default" arch="i386-elf" payload_seabios="y" payload_memtest="y" -microcode_required="n" -vendorfiles="n" grub_timeout=10 diff --git a/config/coreboot/ga-g41m-es2l/target.cfg b/config/coreboot/ga-g41m-es2l/target.cfg index 3672e404..755d23a9 100644 --- a/config/coreboot/ga-g41m-es2l/target.cfg +++ b/config/coreboot/ga-g41m-es2l/target.cfg @@ -3,6 +3,4 @@ arch="i386-elf" payload_seabios="y" payload_memtest="y" grub_scan_disk="ata" -microcode_required="n" -vendorfiles="n" grub_timeout=10 diff --git a/config/coreboot/gru_bob/target.cfg b/config/coreboot/gru_bob/target.cfg index 2b7b0387..10c4285c 100644 --- a/config/coreboot/gru_bob/target.cfg +++ b/config/coreboot/gru_bob/target.cfg @@ -1,5 +1,3 @@ tree="default" arch="aarch64-elf" payload_uboot="y" -vendorfiles="n" -microcode_required="n" diff --git a/config/coreboot/gru_kevin/target.cfg b/config/coreboot/gru_kevin/target.cfg index 2b7b0387..10c4285c 100644 --- a/config/coreboot/gru_kevin/target.cfg +++ b/config/coreboot/gru_kevin/target.cfg @@ -1,5 +1,3 @@ tree="default" arch="aarch64-elf" payload_uboot="y" -vendorfiles="n" -microcode_required="n" diff --git a/config/coreboot/kcma-d8-rdimm_16mb/target.cfg b/config/coreboot/kcma-d8-rdimm_16mb/target.cfg index 7c913bdc..1a177eaf 100644 --- a/config/coreboot/kcma-d8-rdimm_16mb/target.cfg +++ b/config/coreboot/kcma-d8-rdimm_16mb/target.cfg @@ -5,4 +5,3 @@ payload_grub_withseabios="y" payload_seabios="y" payload_memtest="y" crossgcc_ada="n" -vendorfiles="n" diff --git a/config/coreboot/kcma-d8-rdimm_2mb/target.cfg b/config/coreboot/kcma-d8-rdimm_2mb/target.cfg index 7c913bdc..1a177eaf 100644 --- a/config/coreboot/kcma-d8-rdimm_2mb/target.cfg +++ b/config/coreboot/kcma-d8-rdimm_2mb/target.cfg @@ -5,4 +5,3 @@ payload_grub_withseabios="y" payload_seabios="y" payload_memtest="y" crossgcc_ada="n" -vendorfiles="n" diff --git a/config/coreboot/kcma-d8-udimm_16mb/target.cfg b/config/coreboot/kcma-d8-udimm_16mb/target.cfg index 1bb78ad5..869798fa 100644 --- a/config/coreboot/kcma-d8-udimm_16mb/target.cfg +++ b/config/coreboot/kcma-d8-udimm_16mb/target.cfg @@ -5,4 +5,3 @@ payload_grub_withseabios="y" payload_seabios="y" payload_memtest="y" crossgcc_ada="n" -vendorfiles="n" diff --git a/config/coreboot/kcma-d8-udimm_2mb/target.cfg b/config/coreboot/kcma-d8-udimm_2mb/target.cfg index 1bb78ad5..869798fa 100644 --- a/config/coreboot/kcma-d8-udimm_2mb/target.cfg +++ b/config/coreboot/kcma-d8-udimm_2mb/target.cfg @@ -5,4 +5,3 @@ payload_grub_withseabios="y" payload_seabios="y" payload_memtest="y" crossgcc_ada="n" -vendorfiles="n" diff --git a/config/coreboot/kfsn4-dre_1mb/target.cfg b/config/coreboot/kfsn4-dre_1mb/target.cfg index 41b63823..375b5894 100644 --- a/config/coreboot/kfsn4-dre_1mb/target.cfg +++ b/config/coreboot/kfsn4-dre_1mb/target.cfg @@ -3,5 +3,4 @@ arch="i386-elf" payload_seabios="y" payload_memtest="y" crossgcc_ada="n" -vendorfiles="n" grub_timeout=10 diff --git a/config/coreboot/kfsn4-dre_2mb/target.cfg b/config/coreboot/kfsn4-dre_2mb/target.cfg index 64c45daa..f972c863 100644 --- a/config/coreboot/kfsn4-dre_2mb/target.cfg +++ b/config/coreboot/kfsn4-dre_2mb/target.cfg @@ -4,5 +4,4 @@ payload_seabios="y" payload_seabios_withgrub="y" payload_memtest="y" crossgcc_ada="n" -vendorfiles="n" grub_timeout=10 diff --git a/config/coreboot/kgpe-d16-rdimm_16mb/target.cfg b/config/coreboot/kgpe-d16-rdimm_16mb/target.cfg index d3ab97d1..f444f22e 100644 --- a/config/coreboot/kgpe-d16-rdimm_16mb/target.cfg +++ b/config/coreboot/kgpe-d16-rdimm_16mb/target.cfg @@ -4,5 +4,4 @@ payload_seabios="y" payload_seabios_withgrub="y" payload_memtest="y" crossgcc_ada="n" -vendorfiles="n" grub_timeout=10 diff --git a/config/coreboot/kgpe-d16-rdimm_2mb/target.cfg b/config/coreboot/kgpe-d16-rdimm_2mb/target.cfg index d3ab97d1..f444f22e 100644 --- a/config/coreboot/kgpe-d16-rdimm_2mb/target.cfg +++ b/config/coreboot/kgpe-d16-rdimm_2mb/target.cfg @@ -4,5 +4,4 @@ payload_seabios="y" payload_seabios_withgrub="y" payload_memtest="y" crossgcc_ada="n" -vendorfiles="n" grub_timeout=10 diff --git a/config/coreboot/kgpe-d16-udimm_16mb/target.cfg b/config/coreboot/kgpe-d16-udimm_16mb/target.cfg index 64c45daa..f972c863 100644 --- a/config/coreboot/kgpe-d16-udimm_16mb/target.cfg +++ b/config/coreboot/kgpe-d16-udimm_16mb/target.cfg @@ -4,5 +4,4 @@ payload_seabios="y" payload_seabios_withgrub="y" payload_memtest="y" crossgcc_ada="n" -vendorfiles="n" grub_timeout=10 diff --git a/config/coreboot/kgpe-d16-udimm_2mb/target.cfg b/config/coreboot/kgpe-d16-udimm_2mb/target.cfg index 64c45daa..f972c863 100644 --- a/config/coreboot/kgpe-d16-udimm_2mb/target.cfg +++ b/config/coreboot/kgpe-d16-udimm_2mb/target.cfg @@ -4,5 +4,4 @@ payload_seabios="y" payload_seabios_withgrub="y" payload_memtest="y" crossgcc_ada="n" -vendorfiles="n" grub_timeout=10 diff --git a/config/coreboot/macbook11/target.cfg b/config/coreboot/macbook11/target.cfg index c883642f..78bb05d0 100644 --- a/config/coreboot/macbook11/target.cfg +++ b/config/coreboot/macbook11/target.cfg @@ -4,5 +4,3 @@ payload_grub="y" payload_grub_withseabios="y" payload_seabios="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" diff --git a/config/coreboot/macbook11_16mb/target.cfg b/config/coreboot/macbook11_16mb/target.cfg index c883642f..78bb05d0 100644 --- a/config/coreboot/macbook11_16mb/target.cfg +++ b/config/coreboot/macbook11_16mb/target.cfg @@ -4,5 +4,3 @@ payload_grub="y" payload_grub_withseabios="y" payload_seabios="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" diff --git a/config/coreboot/macbook21/target.cfg b/config/coreboot/macbook21/target.cfg index 8d1bf5b8..981435d4 100644 --- a/config/coreboot/macbook21/target.cfg +++ b/config/coreboot/macbook21/target.cfg @@ -5,5 +5,3 @@ payload_grub_withseabios="y" payload_seabios="y" payload_memtest="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" diff --git a/config/coreboot/macbook21_16mb/target.cfg b/config/coreboot/macbook21_16mb/target.cfg index 8d1bf5b8..981435d4 100644 --- a/config/coreboot/macbook21_16mb/target.cfg +++ b/config/coreboot/macbook21_16mb/target.cfg @@ -5,5 +5,3 @@ payload_grub_withseabios="y" payload_seabios="y" payload_memtest="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" diff --git a/config/coreboot/qemu_arm64_12mb/target.cfg b/config/coreboot/qemu_arm64_12mb/target.cfg index 2b7b0387..10c4285c 100644 --- a/config/coreboot/qemu_arm64_12mb/target.cfg +++ b/config/coreboot/qemu_arm64_12mb/target.cfg @@ -1,5 +1,3 @@ tree="default" arch="aarch64-elf" payload_uboot="y" -vendorfiles="n" -microcode_required="n" diff --git a/config/coreboot/qemu_x86_12mb/target.cfg b/config/coreboot/qemu_x86_12mb/target.cfg index bc2c6f55..ceda8dd3 100644 --- a/config/coreboot/qemu_x86_12mb/target.cfg +++ b/config/coreboot/qemu_x86_12mb/target.cfg @@ -6,5 +6,3 @@ payload_seabios="y" payload_memtest="y" payload_uboot="y" grub_scan_disk="both" -vendorfiles="n" -microcode_required="n" diff --git a/config/coreboot/r400_16mb/target.cfg b/config/coreboot/r400_16mb/target.cfg index 8d1bf5b8..981435d4 100644 --- a/config/coreboot/r400_16mb/target.cfg +++ b/config/coreboot/r400_16mb/target.cfg @@ -5,5 +5,3 @@ payload_grub_withseabios="y" payload_seabios="y" payload_memtest="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" diff --git a/config/coreboot/r400_4mb/target.cfg b/config/coreboot/r400_4mb/target.cfg index 8d1bf5b8..981435d4 100644 --- a/config/coreboot/r400_4mb/target.cfg +++ b/config/coreboot/r400_4mb/target.cfg @@ -5,5 +5,3 @@ payload_grub_withseabios="y" payload_seabios="y" payload_memtest="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" diff --git a/config/coreboot/r400_8mb/target.cfg b/config/coreboot/r400_8mb/target.cfg index 8d1bf5b8..981435d4 100644 --- a/config/coreboot/r400_8mb/target.cfg +++ b/config/coreboot/r400_8mb/target.cfg @@ -5,5 +5,3 @@ payload_grub_withseabios="y" payload_seabios="y" payload_memtest="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" diff --git a/config/coreboot/r500_4mb/target.cfg b/config/coreboot/r500_4mb/target.cfg index 8d1bf5b8..981435d4 100644 --- a/config/coreboot/r500_4mb/target.cfg +++ b/config/coreboot/r500_4mb/target.cfg @@ -5,5 +5,3 @@ payload_grub_withseabios="y" payload_seabios="y" payload_memtest="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" diff --git a/config/coreboot/t400_16mb/target.cfg b/config/coreboot/t400_16mb/target.cfg index 8d1bf5b8..981435d4 100644 --- a/config/coreboot/t400_16mb/target.cfg +++ b/config/coreboot/t400_16mb/target.cfg @@ -5,5 +5,3 @@ payload_grub_withseabios="y" payload_seabios="y" payload_memtest="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" diff --git a/config/coreboot/t400_4mb/target.cfg b/config/coreboot/t400_4mb/target.cfg index 8d1bf5b8..981435d4 100644 --- a/config/coreboot/t400_4mb/target.cfg +++ b/config/coreboot/t400_4mb/target.cfg @@ -5,5 +5,3 @@ payload_grub_withseabios="y" payload_seabios="y" payload_memtest="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" diff --git a/config/coreboot/t400_8mb/target.cfg b/config/coreboot/t400_8mb/target.cfg index 8d1bf5b8..981435d4 100644 --- a/config/coreboot/t400_8mb/target.cfg +++ b/config/coreboot/t400_8mb/target.cfg @@ -5,5 +5,3 @@ payload_grub_withseabios="y" payload_seabios="y" payload_memtest="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" diff --git a/config/coreboot/t500_16mb/target.cfg b/config/coreboot/t500_16mb/target.cfg index 8d1bf5b8..981435d4 100644 --- a/config/coreboot/t500_16mb/target.cfg +++ b/config/coreboot/t500_16mb/target.cfg @@ -5,5 +5,3 @@ payload_grub_withseabios="y" payload_seabios="y" payload_memtest="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" diff --git a/config/coreboot/t500_4mb/target.cfg b/config/coreboot/t500_4mb/target.cfg index 8d1bf5b8..981435d4 100644 --- a/config/coreboot/t500_4mb/target.cfg +++ b/config/coreboot/t500_4mb/target.cfg @@ -5,5 +5,3 @@ payload_grub_withseabios="y" payload_seabios="y" payload_memtest="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" diff --git a/config/coreboot/t500_8mb/target.cfg b/config/coreboot/t500_8mb/target.cfg index 8d1bf5b8..981435d4 100644 --- a/config/coreboot/t500_8mb/target.cfg +++ b/config/coreboot/t500_8mb/target.cfg @@ -5,5 +5,3 @@ payload_grub_withseabios="y" payload_seabios="y" payload_memtest="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" diff --git a/config/coreboot/t60_16mb_intelgpu/target.cfg b/config/coreboot/t60_16mb_intelgpu/target.cfg index 0b6bb18c..91aa5f9b 100644 --- a/config/coreboot/t60_16mb_intelgpu/target.cfg +++ b/config/coreboot/t60_16mb_intelgpu/target.cfg @@ -4,6 +4,4 @@ payload_grub="y" payload_grub_withseabios="y" payload_seabios="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" grub_background="background1024x768.png" diff --git a/config/coreboot/t60_intelgpu/target.cfg b/config/coreboot/t60_intelgpu/target.cfg index 0b6bb18c..91aa5f9b 100644 --- a/config/coreboot/t60_intelgpu/target.cfg +++ b/config/coreboot/t60_intelgpu/target.cfg @@ -4,6 +4,4 @@ payload_grub="y" payload_grub_withseabios="y" payload_seabios="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" grub_background="background1024x768.png" diff --git a/config/coreboot/w500_16mb/target.cfg b/config/coreboot/w500_16mb/target.cfg index 8d1bf5b8..981435d4 100644 --- a/config/coreboot/w500_16mb/target.cfg +++ b/config/coreboot/w500_16mb/target.cfg @@ -5,5 +5,3 @@ payload_grub_withseabios="y" payload_seabios="y" payload_memtest="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" diff --git a/config/coreboot/w500_4mb/target.cfg b/config/coreboot/w500_4mb/target.cfg index 8d1bf5b8..981435d4 100644 --- a/config/coreboot/w500_4mb/target.cfg +++ b/config/coreboot/w500_4mb/target.cfg @@ -5,5 +5,3 @@ payload_grub_withseabios="y" payload_seabios="y" payload_memtest="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" diff --git a/config/coreboot/w500_8mb/target.cfg b/config/coreboot/w500_8mb/target.cfg index 8d1bf5b8..981435d4 100644 --- a/config/coreboot/w500_8mb/target.cfg +++ b/config/coreboot/w500_8mb/target.cfg @@ -5,5 +5,3 @@ payload_grub_withseabios="y" payload_seabios="y" payload_memtest="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" diff --git a/config/coreboot/x200_16mb/target.cfg b/config/coreboot/x200_16mb/target.cfg index 8d1bf5b8..981435d4 100644 --- a/config/coreboot/x200_16mb/target.cfg +++ b/config/coreboot/x200_16mb/target.cfg @@ -5,5 +5,3 @@ payload_grub_withseabios="y" payload_seabios="y" payload_memtest="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" diff --git a/config/coreboot/x200_4mb/target.cfg b/config/coreboot/x200_4mb/target.cfg index 8d1bf5b8..981435d4 100644 --- a/config/coreboot/x200_4mb/target.cfg +++ b/config/coreboot/x200_4mb/target.cfg @@ -5,5 +5,3 @@ payload_grub_withseabios="y" payload_seabios="y" payload_memtest="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" diff --git a/config/coreboot/x200_8mb/target.cfg b/config/coreboot/x200_8mb/target.cfg index 8d1bf5b8..981435d4 100644 --- a/config/coreboot/x200_8mb/target.cfg +++ b/config/coreboot/x200_8mb/target.cfg @@ -5,5 +5,3 @@ payload_grub_withseabios="y" payload_seabios="y" payload_memtest="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" diff --git a/config/coreboot/x301_16mb/target.cfg b/config/coreboot/x301_16mb/target.cfg index 8d1bf5b8..981435d4 100644 --- a/config/coreboot/x301_16mb/target.cfg +++ b/config/coreboot/x301_16mb/target.cfg @@ -5,5 +5,3 @@ payload_grub_withseabios="y" payload_seabios="y" payload_memtest="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" diff --git a/config/coreboot/x301_4mb/target.cfg b/config/coreboot/x301_4mb/target.cfg index 8d1bf5b8..981435d4 100644 --- a/config/coreboot/x301_4mb/target.cfg +++ b/config/coreboot/x301_4mb/target.cfg @@ -5,5 +5,3 @@ payload_grub_withseabios="y" payload_seabios="y" payload_memtest="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" diff --git a/config/coreboot/x301_8mb/target.cfg b/config/coreboot/x301_8mb/target.cfg index 8d1bf5b8..981435d4 100644 --- a/config/coreboot/x301_8mb/target.cfg +++ b/config/coreboot/x301_8mb/target.cfg @@ -5,5 +5,3 @@ payload_grub_withseabios="y" payload_seabios="y" payload_memtest="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" diff --git a/config/coreboot/x60/target.cfg b/config/coreboot/x60/target.cfg index 0b6bb18c..91aa5f9b 100644 --- a/config/coreboot/x60/target.cfg +++ b/config/coreboot/x60/target.cfg @@ -4,6 +4,4 @@ payload_grub="y" payload_grub_withseabios="y" payload_seabios="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" grub_background="background1024x768.png" diff --git a/config/coreboot/x60_16mb/target.cfg b/config/coreboot/x60_16mb/target.cfg index 0b6bb18c..91aa5f9b 100644 --- a/config/coreboot/x60_16mb/target.cfg +++ b/config/coreboot/x60_16mb/target.cfg @@ -4,6 +4,4 @@ payload_grub="y" payload_grub_withseabios="y" payload_seabios="y" grub_scan_disk="ahci" -microcode_required="n" -vendorfiles="n" grub_background="background1024x768.png" diff --git a/script/build/roms b/script/build/roms index 2926f297..f72b66b6 100755 --- a/script/build/roms +++ b/script/build/roms @@ -22,7 +22,7 @@ kmapdir="config/grub/keymap" 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 arch" -v="${v} grub_timeout ubdir vendorfiles board grub_scan_disk uboot_config" +v="${v} grub_timeout ubdir board grub_scan_disk uboot_config" eval "$(setvars "n" ${pv})" eval "$(setvars "" ${v} boards _displaymode _payload _keyboard all targets)" @@ -107,8 +107,6 @@ check_target() payload_uboot="n" [ "${payload_uboot}" = "y" ] && [ -z "${uboot_config}" ] && \ uboot_config="default" - [ "${vendorfiles}" != "n" ] && [ "${vendorfiles}" != "y" ] && \ - vendorfiles="y" # Override all payload directives with cmdline args [ -z "${_payload}" ] && return 0 @@ -401,17 +399,12 @@ mkUbootRom() { printf "%s\n" "${tmprom}" } -# it is assumed that no other work will be done on the ROM -# after calling this function. therefore this function is "final" -moverom() { - rompath="${1}" - newrom="${2}" - - [ "${vendorfiles}" = "n" ] && newrom="${newrom%.rom}_noblobs.rom" - printf "Creating target image: %s\n" "${newrom}" +moverom() +{ + printf "Creating target image: %s\n" "$2" - x_ mkdir -p "${newrom%/*}" - x_ cp "${rompath}" "${newrom}" + x_ mkdir -p "${2%/*}" + x_ cp "$1" "$2" } usage() diff --git a/script/update/release b/script/update/release index b9128328..76de4ede 100755 --- a/script/update/release +++ b/script/update/release @@ -7,8 +7,7 @@ set -u -e . "include/err.sh" . "include/option.sh" -eval "$(setvars "" vdir relname src_dirname srcdir _xm target romdir \ - microcode_required mode)" +eval "$(setvars "" vdir relname src_dirname srcdir _xm target romdir mode)" main() { @@ -133,21 +132,7 @@ handle_rom_archive() nukerom() { - microcode_required="y" . "config/coreboot/${target}/target.cfg" - if [ "${microcode_required}" != "y" ] && \ - [ "${microcode_required}" != "n" ]; then microcode_required="y"; fi - if [ "${microcode_required}" = "n" ]; then - for romfile in "${romdir}"/*.rom; do - [ -f "${romfile}" ] || continue - strip_ucode "${romfile}" - done - for romfile in "${romdir}"/*.tmprom; do - [ -f "${romfile}" ] || continue - mv "${romfile}" "${romfile%.tmprom}.rom" || \ - err "!mv romfile, nukerom" - done - fi # Hash the images before removing vendor files # which "./vendor inject" uses for verification @@ -165,20 +150,6 @@ nukerom() done } -strip_ucode() -{ - romfile=${1} - _newrom_b="${romfile%.rom}_nomicrocode.tmprom" - cp "${romfile}" "${_newrom_b}" || err "!cp romfile ${romfile}, strip_u" - microcode_present="y" - "${cbfstool}" "${_newrom_b}" remove -n \ - cpu_microcode_blob.bin 2>/dev/null || microcode_present="n" - [ "${microcode_present}" = "n" ] || return 0 - printf "REMARK: '%s' already lacks microcode\n" "${romfile}" 1>&2 - printf "Renaming default ROM file instead.\n" 1>&2 - mv "${romfile}" "${_newrom_b}" || err "!mv romfile ${romfile}, strip_u" -} - insert_copying_files() { remkdir "${1}/licenses" diff --git a/script/vendor/inject b/script/vendor/inject index b4b74bb7..1f1d0209 100755 --- a/script/vendor/inject +++ b/script/vendor/inject @@ -122,14 +122,6 @@ patch_release_roms() printf "patching rom: %s\n" "$x" patch_rom "${x}" done - for x in "${_tmpdir}"/bin/*/*_nomicrocode.rom ; do - [ -f "${x}" ] || continue - [ -f "${x%_nomicrocode.rom}.rom" ] || continue - - cp "${x%_nomicrocode.rom}.rom" "${x}" || \ - err "patch_r: !cp \"${x%_nomicrocode.rom}.rom\" \"${x}\"" - x_ "${cbfstool}" "${x}" remove -n cpu_microcode_blob.bin - done ( x_ cd "${_tmpdir}/bin/"* # TODO: very dodgy, re-write accordingly @@ -159,16 +151,6 @@ patch_rom() { rom="${1}" - # we don't process no-microcode roms; these are - # instead re-created at the end, after re-inserting - # on roms with microcode, by copying and then removing, - # so that the hashes will match (otherwise, cbfstool - # may sometimes insert certain vendor files at the wrong offset) - # (unless nomicrocode is the only config provided) - [ "${rom}" != "${rom%_nomicrocode.rom}.rom" ] && \ - [ -f "${rom%_nomicrocode.rom}.rom" ] && \ - [ "${release}" = "y" ] && return 0 - check_defconfig "$boarddir" && err "patch_rom $boarddir: no configs" set -- "${boarddir}/config/"* -- cgit v1.2.1