summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-27 14:32:34 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-27 14:32:34 +0100
commit68eca880c683947e2f189c1368fb6032ce6fc832 (patch)
tree85d3e73ce647429e137945d664634572f504c197
parentd5a657308c0392514006d420cb268ee51f5497c4 (diff)
tree.sh: simplify configure_project()
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--include/tree.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/tree.sh b/include/tree.sh
index 976e3b56..7bfddf67 100644
--- a/include/tree.sh
+++ b/include/tree.sh
@@ -122,8 +122,7 @@ configure_project()
eval "`setvars "" cleanargs build_depend autoconfargs xtree postmake \
makeargs btype mkhelper bootstrapargs premake release xlang xarch \
badhash`"
- _tcfg="$1/target.cfg"
- [ -f "$_tcfg" ] || btype="auto"
+ _tcfg="$1/target.cfg" && [ ! -f "$_tcfg" ] && btype="auto"
e "$datadir/mkhelper.cfg" f && eval "`setcfg "$datadir/mkhelper.cfg"`"
while e "$_tcfg" f || [ "$cmd" != "build_project" ]; do