summaryrefslogtreecommitdiff
path: root/script/trees
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-30 22:22:15 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-30 22:22:15 +0100
commit3ef84af9fda3fdac138836d6a4adfcf2dd98c75e (patch)
tree973d1d3e5483c574027e8d931e71bbd7db50548c /script/trees
parent2b49714a6ae2920a4de4131768bffc2d1d40a666 (diff)
trees: allow global config on multi-tree projects
config/data/PROJECT/mkhelper.cfg can be provided, for configuration, and it is loaded *before* target.cfg there are certain instances where we repeat a lot of config per tree, in multi-tree projects. for example, we have the exact same config per grub tree, besides tree name and revision number, for things like autoconf arguments. this last problem will be addressed, in a follow-up patch, and then expanded upon for other projects. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/trees')
-rwxr-xr-xscript/trees1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/trees b/script/trees
index 10c08d1e..fff1d890 100755
--- a/script/trees
+++ b/script/trees
@@ -145,6 +145,7 @@ load_target_config()
eval `setvars "" xarch xlang bootstrapargs autoconfargs xtree \
tree_depend makeargs btype mkhelper`
[ -f "$1/target.cfg" ] || btype="auto"
+ [ -f "$datadir/mkhelper.cfg" ] && eval `setcfg "$datadir/mkhelper.cfg"`
_tcfg="$1/target.cfg"
while [ -f "$_tcfg" ] || [ "$cmd" = "build_targets" ]; do