summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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; :