summaryrefslogtreecommitdiff
path: root/script/update/vendor
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-10-13 03:20:33 +0100
committerLeah Rowe <leah@libreboot.org>2023-10-13 03:22:37 +0100
commitc44a38aefc9dc4e150b8a11d904a16cf358b9b66 (patch)
treeba82fd00adf888b68978df49f884b5cca6aae5f2 /script/update/vendor
parent42068f7ce11b88e13b4bf3f2d2290bc4d16d60b7 (diff)
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>
Diffstat (limited to 'script/update/vendor')
-rwxr-xr-xscript/update/vendor/download4
-rwxr-xr-xscript/update/vendor/inject4
2 files changed, 6 insertions, 2 deletions
diff --git a/script/update/vendor/download b/script/update/vendor/download
index 2d90b9b0..6c83b0ca 100755
--- a/script/update/vendor/download
+++ b/script/update/vendor/download
@@ -50,7 +50,9 @@ build_dependencies()
x_ ./update project trees -b uefitool
[ -f "${kbc1126_ec_dump}" ] || \
x_ make -C "${cbdir}/util/kbc1126"
- x_ ./update project trees -b coreboot utils default
+ if [ ! -f "${cbfstool}" ] || [ ! -f "${ifdtool}" ]; then
+ x_ ./update project trees -b coreboot utils default
+ fi
}
download_vendorfiles()
diff --git a/script/update/vendor/inject b/script/update/vendor/inject
index 3340a723..f4caf89e 100755
--- a/script/update/vendor/inject
+++ b/script/update/vendor/inject
@@ -88,7 +88,9 @@ detect_board()
build_dependencies()
{
[ -d "${cbdir}" ] || x_ ./update project trees -f coreboot default
- x_ ./update project trees -b coreboot utils default
+ if [ ! -f "${cbfstool}" ] || [ ! -f "${ifdtool}" ]; then
+ x_ ./update project trees -b coreboot utils default
+ fi
x_ ./update vendor download ${board}
}