summaryrefslogtreecommitdiff
path: root/resources/scripts/build/clean/seabios
diff options
context:
space:
mode:
Diffstat (limited to 'resources/scripts/build/clean/seabios')
-rwxr-xr-xresources/scripts/build/clean/seabios15
1 files changed, 7 insertions, 8 deletions
diff --git a/resources/scripts/build/clean/seabios b/resources/scripts/build/clean/seabios
index 0757db9d..b8b17068 100755
--- a/resources/scripts/build/clean/seabios
+++ b/resources/scripts/build/clean/seabios
@@ -24,14 +24,13 @@ set -u -e
# clean bucts
# --------------------------------------------------------
-printf "Cleaning the previous build of seabios\n"
-
-rm -f seabios_libgfxinit.elf seavgabios.bin seabios_vgarom.elf
+printf "Cleaning the previous builds of seabios\n"
+rm -Rf elf/seabios || exit 1
[ ! -d "seabios/" ] && exit 0
-(
-cd "seabios/"
-make distclean
-)
-
+for x in seabios/*; do
+ [ "${x}" = "seabios/seabios" ] && continue
+ [ ! -d "${x}" ] && continue
+ make -C "${x}" distclean || exit 1
+done