build/cbutils: distclean before building

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe 2023-06-24 22:54:53 +01:00
parent 55fc8fe0b0
commit 4a49ea3599
1 changed files with 3 additions and 1 deletions

View File

@ -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
}