summaryrefslogtreecommitdiff
path: root/resources/scripts
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-06-24 22:54:53 +0100
committerLeah Rowe <leah@libreboot.org>2023-06-24 22:54:53 +0100
commit4a49ea3599c8610984c41ef6a234556ed9d0bce5 (patch)
tree14796a5ec0296fa9c8953dccba31d7d90b9a317d /resources/scripts
parent55fc8fe0b0da4d3f740e563d29dceacf666561b8 (diff)
build/cbutils: distclean before building
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'resources/scripts')
-rwxr-xr-xresources/scripts/build/module/cbutils4
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/scripts/build/module/cbutils b/resources/scripts/build/module/cbutils
index b362ee7a..ee6e8692 100755
--- a/resources/scripts/build/module/cbutils
+++ b/resources/scripts/build/module/cbutils
@@ -59,7 +59,9 @@ buildutils() {
./download coreboot $cbtree || return 1
fi
for util in cbfstool ifdtool; do
- make -j$(nproc) -BC "coreboot/${cbtree}/util/${util}/" \
+ utildir="coreboot/${cbtree}/util/${util}/"
+ make distclean -C "${utildir}"
+ make -j$(nproc) -C "${utildir}" \
|| return 1
done
}