summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-10 17:19:00 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-10 17:19:00 +0100
commita8e374020c0bea6cc849ffdf424b382fe535fee9 (patch)
tree2c3d9308c446861173967f2fd0c19bda2e5d5405
parent0f931b508a8eb34e70b2ed3628ac4fe74f22b8e8 (diff)
tree.sh: simplified srcdir check on make-clean
this is the check that ksips a given target if the tree directory does not exist, on the clean command. Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--include/tree.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/tree.sh b/include/tree.sh
index 47f65d10..1d5dd071 100644
--- a/include/tree.sh
+++ b/include/tree.sh
@@ -112,9 +112,8 @@ handle_defconfig()
chkvars tree
srcdir="src/$project/$tree"
- if [ "$mode" = "distclean" ] || [ "$mode" = "crossgcc-clean" ]; then
- [ -d "$srcdir" ] || return 0
- fi
+ [ "$mode" = "${mode%clean}" ] && [ ! -d "$srcdir" ] && return 0
+
[ -z "$mode" ] && for _xarch in $xarch; do
$dry check_cross_compiler "$_xarch"
done; :