summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-09-03 00:34:18 +0100
committerLeah Rowe <leah@libreboot.org>2023-09-03 01:53:35 +0100
commit92b4db6992c0fb19a798a3f1e62e68c8a102a977 (patch)
treea68d4496f3f6bd5744e64f0fe45abd4efb03e3d8 /script
parent7c6b35cf95128a58b91a1d58b31469438fe1f5cc (diff)
build/release/src: only clean kbc1126 if it exists
the way this script works, it only copies what was built, but it currently operatios as though coreboot/default always exists, and then cleans the kbc1126 util this patch fixes such buggy behaviour Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script')
-rwxr-xr-xscript/build/release/src3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/build/release/src b/script/build/release/src
index 9e2192ec..b2d3b535 100755
--- a/script/build/release/src
+++ b/script/build/release/src
@@ -152,7 +152,8 @@ purge_files()
cd "${srcdir}/" || \
err "purge_files 3: !cd ${srcdir}/"
- ./handle make file -c coreboot/default/util/kbc1126 || \
+ [ ! -d "coreboot/default/util/kbc1126" ] || \
+ ./handle make file -c "coreboot/default/util/kbc1126" || \
err "purge_files 1: default/util/kbc1126: ! make clean"
./handle make config -x coreboot || \
err "purge_files: coreboot: cannot clean crossgcc files"