cbmk/config/data/grub
Leah Rowe a258eb231a 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>
2024-07-12 16:37:17 +01:00
..
background make GRUB multi-tree and re-add xhci patches 2024-06-02 22:41:46 +01:00
keymap make GRUB multi-tree and re-add xhci patches 2024-06-02 22:41:46 +01:00
module GRUB: only load xhci from grub.cfg 2024-07-08 01:33:51 +01:00
bootorder make GRUB multi-tree and re-add xhci patches 2024-06-02 22:41:46 +01:00
build.list handle build.list from config/data/, not config/ 2024-06-07 17:27:45 +01:00
memdisk.cfg re-add ability to use cbfs grub.cfg as default 2024-06-09 16:35:12 +01:00
mkhelper.cfg trees: remove project-specific hacks 2024-07-12 16:37:17 +01:00