lbmk/config
Leah Rowe fc7ae3e590 lib.sh: more unified config handling
replace it with logic that simply uses "." to load
files directly. for this, "vcfg" is added as a variable
in coreboot target.cfg files, referring to a directory
in config/vendor/ containing a file named pkg.cfg, and
this file then contains the same variables as the
erstwhile config/vendor/sources

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:44:27 +01:00
..
coreboot lib.sh: more unified config handling 2024-06-22 13:44:27 +01:00
data grub: only enable nvme if needed on a board 2024-06-12 00:58:22 +01:00
dependencies Add dependency scripts for Fedora 40 and Ubuntu 24.04 2024-06-07 13:02:40 -05:00
flashprog/patches flashprog: bump to 5b4fdd1 from 2 May 2024 2024-05-26 20:30:45 +01:00
git lib.sh: more unified config handling 2024-06-22 13:44:27 +01:00
grub roms: don't insert timeout.cfg 2024-06-19 14:32:42 +01:00
ifd config/ifd/dell_ivybridge: Add ifd_nogbe 2024-02-20 17:04:39 -07:00
memtest86plus/patches disable 32-bit memtest86plus, only build 64-bit 2023-10-09 06:06:20 +01:00
seabios/default handle build.list from config/data/, not config/ 2024-06-06 02:35:36 +01:00
submodule Libreboot 20240612 release 2024-06-12 08:43:33 +01:00
u-boot handle build.list from config/data/, not config/ 2024-06-06 02:35:36 +01:00
uefitool update/trees: generic cmake handling 2023-12-30 19:03:03 +00:00
vendor lib.sh: more unified config handling 2024-06-22 13:44:27 +01:00