only build cbutils if required

it's sometimes done unconditionally. this change
ensures that it is not repeated needlessly.

i observed otherwise that cbfstool would be
re-built from time to time, even if it was built.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2023-10-13 03:20:33 +01:00
parent 42068f7ce1
commit c44a38aefc
3 changed files with 8 additions and 3 deletions
+2 -1
View File
@@ -132,7 +132,8 @@ prepare_target()
cbfstool="cbutils/${tree}/cbfstool"
cbrom="${cbdir}/build/coreboot.rom"
x_ ./update project trees -b coreboot utils ${tree}
[ -f "${cbfstool}" ] || \
x_ ./update project trees -b coreboot utils ${tree}
build_dependency_seabios