mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-12 14:32:42 +02:00
run coreboot utils from own directory
this means coreboot can now be distcleaned safely, before and after each build of a rom image Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -59,10 +59,17 @@ buildutils() {
|
||||
./download coreboot $cbtree || return 1
|
||||
fi
|
||||
for util in cbfstool ifdtool; do
|
||||
utildir="coreboot/${cbtree}/util/${util}/"
|
||||
make distclean -C "${utildir}"
|
||||
make -j$(nproc) -C "${utildir}" \
|
||||
|| return 1
|
||||
[ -f "cbutils/${cbtree}/${util}" ] \
|
||||
&& continue
|
||||
if [ ! -d "cbutils/${cbtree}" ]; then
|
||||
mkdir -p "cbutils/${cbtree}" || return 1
|
||||
fi
|
||||
|
||||
utildir="coreboot/${cbtree}/util/${util}"
|
||||
make distclean -C "${utildir}" || return 1
|
||||
make -j$(nproc) -C "${utildir}" || return 1
|
||||
mv "${utildir}/${util}" "cbutils/${cbtree}" || return 1
|
||||
make distclean -C "${utildir}" || return 1
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user