summaryrefslogtreecommitdiff
path: root/script/build/release/src
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-09-02 23:42:34 +0100
committerLeah Rowe <leah@libreboot.org>2023-09-03 01:53:35 +0100
commit7c6b35cf95128a58b91a1d58b31469438fe1f5cc (patch)
treeef6e5eb392129240e31ea457b99253c9f35055b1 /script/build/release/src
parentcec37747b75ee8e7fa146ff061b6a5d4aea98309 (diff)
unify build/clean scripts: use handle/make instead
The -c option is added for distclean, and -x for crossgcc-clean, in handle/make/config about 100 sloc removed from lbmk Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/build/release/src')
-rwxr-xr-xscript/build/release/src14
1 files changed, 6 insertions, 8 deletions
diff --git a/script/build/release/src b/script/build/release/src
index 4d5c3efe..9e2192ec 100755
--- a/script/build/release/src
+++ b/script/build/release/src
@@ -152,16 +152,14 @@ purge_files()
cd "${srcdir}/" || \
err "purge_files 3: !cd ${srcdir}/"
- for p in coreboot/*; do
- [ -d "${p}" ] || continue
- ./handle make file -c "${p}" || \
- err "purge_files 1: ${p}: !make distclean"
- done
-
./handle make file -c coreboot/default/util/kbc1126 || \
err "purge_files 1: default/util/kbc1126: ! make clean"
- ./build clean all || \
- err "purge_files 1: ! ./build clean all"
+ ./handle make config -x coreboot || \
+ err "purge_files: coreboot: cannot clean crossgcc files"
+ for p in u-boot seabios coreboot; do
+ ./handle make config -c "${p}" || \
+ err "purge_files: ${p}: cannot clean the source trees"
+ done
for p in bios_extract flashrom grub ich9utils uefitool; do
./handle make file -c "${p}" || \