summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-27 16:33:30 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-27 16:33:30 +0100
commit93ff80d96d1c1565c131b43cb2d9247aabac3b03 (patch)
treeea97ab49b5a82cc78bb2a99e762c4a43f420e51f
parent732c5908df1fa8f49af34c7bdb98febc801343c7 (diff)
trees: set btype if target.cfg doesn't exist
set it to "auto", because otherwise it'll be unset, which means that kconfig type is assumed. the build system is designed in such a way that multi-tree is assumed, if the target build system uses kconfig files. target.cfg is optional on single-tree but not multi-tree, so it's ok to set something here. basically, kconfig-type projects will never be single-tree. Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xscript/trees1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/trees b/script/trees
index 4d71dbbe..85fe4a26 100755
--- a/script/trees
+++ b/script/trees
@@ -154,6 +154,7 @@ load_project_config()
{
eval `setvars "" xarch xlang tree bootstrapargs autoconfargs xtree \
tree_depend makeargs btype`
+ [ -f "$1/target.cfg" ] || btype="auto"
eval `setcfg "$1/target.cfg" 0`
[ -z "$btype" ] || [ "${mode%config}" = "$mode" ] || \
return 1; return 0