summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-05-25 14:32:06 +0100
committerLeah Rowe <leah@libreboot.org>2024-05-25 14:32:06 +0100
commitd32968c7310068252fe23c87b2c4b33c09f0a00e (patch)
treeae32ab8e2f00a8ed48d4456a540dab032761d145 /script
parent7bab0cf9ed677fd69e48ba79b2defd4e643a7f82 (diff)
trees: reset makeargs per target/project
it wasn't being reset before. when coreboot is being built, i add to makeargs every time. if multiple targets are being built, the make command would end up looking something like: make -C src/coreboot/default UPDATED_SUBMODULES=1 \ UPDATED_SUBMODULES=1 (the parameter would be printed twice) of course, this doesn't check whether that parameter is added already in target.cfg for a given target, but that's ok because i won't add that one in target.cfg i baked it into the code, only when handling coreboot, because that was easier than either putting it in makeargs for every coreboot target.cfg, or again modifying the code to handle that; the current solution is the cleanest. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script')
-rwxr-xr-xscript/trees2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/trees b/script/trees
index efb6874a..7da762e8 100755
--- a/script/trees
+++ b/script/trees
@@ -149,7 +149,7 @@ handle_src_tree()
load_project_config()
{
eval "$(setvars "" xarch xlang tree bootstrapargs autoconfargs \
- xtree tree_depend)"
+ xtree tree_depend makeargs)"
[ -f "${1}/target.cfg" ] || return 0
. "${1}/target.cfg" || \