cbmk/config/coreboot
Leah Rowe dec9ae9b43 lib.sh: more unified config handling
replace it with logic that simply uses "." to load
files directly.

config/git files are now directories, also containing
pkg.cfg files each with the same variables as before,
such as repository link and commit hash

this change results in a noticeable reduction in code
complexity within the build system.

unified reading of config files: new function setcfg()
added to lib.sh

setcfg checks if a config exists. if a 2nd argument is
passed, it is used as a return value for eval, otherwise
a string calling err is passed. setcfg output is passed
through eval, to set strings based on config; eval must
be used, so that the variables are set within the same
scope, otherwise they'd be set within setcfg which could
lead to some whacky results.

there's still a bit more more to do, but this single change
results in a substantial reduction in code complexity.

Signed-off-by: Leah Rowe <leah@libreboot.org>
2024-06-22 13:50:43 +01:00
..
d510mo coreboot: only run GRUB as a secondary payload 2024-05-27 14:59:38 +01:00
d510mo_16mb remove all status checks. only handle release. 2024-05-13 02:07:22 +01:00
d945gclf_8mb coreboot: only run GRUB as a secondary payload 2024-05-27 14:59:38 +01:00
d945gclf_512kb coreboot: only run GRUB as a secondary payload 2024-05-27 14:59:38 +01:00
default rename nukeblobs to a more generic name 2024-05-26 09:33:27 +01:00
dell rename nukeblobs to a more generic name 2024-05-26 09:33:27 +01:00
e6400_4mb lib.sh: more unified config handling 2024-06-22 13:50:43 +01:00
fam15h_rdimm rename nukeblobs to a more generic name 2024-05-26 09:33:27 +01:00
fam15h_udimm rename nukeblobs to a more generic name 2024-05-26 09:33:27 +01:00
g43t_am3 roms: don't insert timeout.cfg 2024-06-19 14:34:19 +01:00
g43t_am3_16mb roms: don't insert timeout.cfg 2024-06-19 14:34:19 +01:00
ga_g41m_es2l roms: don't insert timeout.cfg 2024-06-19 14:34:19 +01:00
gru_bob remove all status checks. only handle release. 2024-05-13 02:07:22 +01:00
gru_kevin remove all status checks. only handle release. 2024-05-13 02:07:22 +01:00
i945 rename nukeblobs to a more generic name 2024-05-26 09:33:27 +01:00
kcma_d8-udimm_16mb grub: only enable nvme if needed on a board 2024-06-12 09:17:27 +01:00
kcma_d8_rdimm_2mb grub: only enable nvme if needed on a board 2024-06-12 09:17:27 +01:00
kcma_d8_rdimm_16mb roms: don't insert timeout.cfg 2024-06-19 14:34:19 +01:00
kcma_d8_udimm_2mb roms: don't insert timeout.cfg 2024-06-19 14:34:19 +01:00
kfsn4_dre_1mb roms: don't insert timeout.cfg 2024-06-19 14:34:19 +01:00
kfsn4_dre_2mb roms: don't insert timeout.cfg 2024-06-19 14:34:19 +01:00
kgpe_d16_rdimm_2mb roms: don't insert timeout.cfg 2024-06-19 14:34:19 +01:00
kgpe_d16_rdimm_16mb roms: don't insert timeout.cfg 2024-06-19 14:34:19 +01:00
kgpe_d16_udimm_2mb roms: don't insert timeout.cfg 2024-06-19 14:34:19 +01:00
kgpe_d16_udimm_16mb roms: don't insert timeout.cfg 2024-06-19 14:34:19 +01:00
macbook11 re-configure grub_scan_disk on various targets 2024-05-27 23:36:10 +01:00
macbook11_16mb re-configure grub_scan_disk on various targets 2024-05-27 23:36:10 +01:00
macbook21 re-configure grub_scan_disk on various targets 2024-05-27 23:36:10 +01:00
macbook21_16mb re-configure grub_scan_disk on various targets 2024-05-27 23:36:10 +01:00
qemu_arm64_12mb remove all status checks. only handle release. 2024-05-13 02:07:22 +01:00
qemu_x86_12mb remove grub_scan_disk in all target.cfg files 2024-05-27 23:35:18 +01:00
r400_4mb re-configure grub_scan_disk on various targets 2024-05-27 23:36:10 +01:00
r400_8mb remove grub_scan_disk in all target.cfg files 2024-05-27 23:35:18 +01:00
r400_16mb re-configure grub_scan_disk on various targets 2024-05-27 23:36:10 +01:00
r500_4mb re-configure grub_scan_disk on various targets 2024-05-27 23:36:10 +01:00
t60_16mb_intelgpu grub: insert background in memdisk instead 2024-06-15 23:18:51 +01:00
t60_intelgpu grub: insert background in memdisk instead 2024-06-15 23:18:51 +01:00
t400_4mb re-configure grub_scan_disk on various targets 2024-05-27 23:36:10 +01:00
t400_8mb re-configure grub_scan_disk on various targets 2024-05-27 23:36:10 +01:00
t400_16mb re-configure grub_scan_disk on various targets 2024-05-27 23:36:10 +01:00
t500_4mb re-configure grub_scan_disk on various targets 2024-05-27 23:36:10 +01:00
t500_8mb re-configure grub_scan_disk on various targets 2024-05-27 23:36:10 +01:00
t500_16mb re-configure grub_scan_disk on various targets 2024-05-27 23:36:10 +01:00
w500_4mb re-configure grub_scan_disk on various targets 2024-05-27 23:36:10 +01:00
w500_8mb re-configure grub_scan_disk on various targets 2024-05-27 23:36:10 +01:00
w500_16mb re-configure grub_scan_disk on various targets 2024-05-27 23:36:10 +01:00
x60 grub: insert background in memdisk instead 2024-06-15 23:18:51 +01:00
x60_16mb grub: insert background in memdisk instead 2024-06-15 23:18:51 +01:00
x200_4mb re-configure grub_scan_disk on various targets 2024-05-27 23:36:10 +01:00
x200_8mb re-configure grub_scan_disk on various targets 2024-05-27 23:36:10 +01:00
x200_16mb re-configure grub_scan_disk on various targets 2024-05-27 23:36:10 +01:00
x301_4mb re-configure grub_scan_disk on various targets 2024-05-27 23:36:10 +01:00
x301_8mb re-configure grub_scan_disk on various targets 2024-05-27 23:36:10 +01:00
x301_16mb re-configure grub_scan_disk on various targets 2024-05-27 23:36:10 +01:00