summaryrefslogtreecommitdiff
path: root/resources/scripts/build/clean/crossgcc
diff options
context:
space:
mode:
Diffstat (limited to 'resources/scripts/build/clean/crossgcc')
-rwxr-xr-xresources/scripts/build/clean/crossgcc7
1 files changed, 6 insertions, 1 deletions
diff --git a/resources/scripts/build/clean/crossgcc b/resources/scripts/build/clean/crossgcc
index 76de1e19..7b1765f8 100755
--- a/resources/scripts/build/clean/crossgcc
+++ b/resources/scripts/build/clean/crossgcc
@@ -29,9 +29,14 @@ main()
printf "Cleaning crossgcc builds in all coreboot archives\n"
[ ! -d "coreboot/" ] && exit 0
+ clean_crossgcc
+}
+
+clean_crossgcc()
+{
for board in coreboot/*; do
+ [ -d "${board}" ] || continue
[ "${board##*/}" = "coreboot" ] && continue
- [ ! -d "${board}" ] && continue
make -C "${board}/" crossgcc-clean || err "make-clean"
done
}