cbmk/config
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
..
coreboot lib.sh: more unified config handling 2024-06-22 13:50:43 +01:00
data grub: only enable nvme if needed on a board 2024-06-12 09:17:27 +01:00
dependencies Add dependency scripts for Fedora 40 and Ubuntu 24.04 2024-06-09 07:44:45 +01:00
flashprog/patches flashprog: bump to 5b4fdd1 from 2 May 2024 2024-05-26 20:39:31 +01:00
git lib.sh: more unified config handling 2024-06-22 13:50:43 +01:00
grub roms: don't insert timeout.cfg 2024-06-19 14:34:19 +01:00
ifd/ich9m rebase cbmk 9429287 per lbmk c4d90087..f5b04fa5 2024-01-02 11:55:45 +00:00
memtest86plus/patches Canoeboot 20231026 release 2023-10-27 08:21:04 +01:00
pico-sdk rename nukeblobs to a more generic name 2024-05-26 09:33:27 +01:00
seabios/default handle build.list from config/data/, not config/ 2024-06-07 17:27:45 +01:00
stm32-vserprog/patches Canoeboot 20231026 release 2023-10-27 08:21:04 +01:00
submodule Canoeboot 20240612 release 2024-06-12 10:38:51 +01:00
u-boot minor code cleanup in the build system 2024-06-09 19:18:41 +01:00