diff options
author | Leah Rowe <leah@libreboot.org> | 2024-07-10 13:06:32 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-07-10 13:41:15 +0100 |
commit | 459db1cc2eaa1d40543f7f63345ea4ca27daad9a (patch) | |
tree | 578f1450e2e764c262e77294d88e5582f39e5846 /config/coreboot/default/patches/0020-mb-dell-Add-Latitude-E6430-Ivy-Bridge.patch | |
parent | e9f66ec4a80a2904840b005cd41fbf9b10d1871c (diff) |
trees: remove project-specific hacks
move the coreboot-specific includes into mkhelper.cfg
for that project.
on some projects, we need variables from mkhelper.cfg
to be global, so I was including serprog and coreboot
mkhelper.cfg files in this script.
instead, set a new variable "mkhelpercfg" pointing to
the config file. if it doesn't exist, create and then
point to a temporary (empty) mkhelper.cfg file.
the rom.sh include has been moved to coreboot mkhelper.cfg
The only remaining project-specific logic, in this trees
script, is now the coreboot crossgcc handling, but this
needs to be there as it's also used to build U-Boot.
The way this now works, certain includes are done twice.
For example, include/rom.sh will be included once globally,
outside of main(), and then again in configure_project().
This means that certain functions will be defined twice.
I'm uncertain if shell has anything equivalent to an ifdef
guard as in C, but we actually want this here anyway, and
it shouldn't cause any problems. It's a bit of a hack, but
otherwise results in much cleaner code.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'config/coreboot/default/patches/0020-mb-dell-Add-Latitude-E6430-Ivy-Bridge.patch')
0 files changed, 0 insertions, 0 deletions