From c44a38aefc9dc4e150b8a11d904a16cf358b9b66 Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@libreboot.org>
Date: Fri, 13 Oct 2023 03:20:33 +0100
Subject: 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>
---
 script/update/vendor/download | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'script/update/vendor/download')

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()
-- 
cgit v1.2.1