From 92b4db6992c0fb19a798a3f1e62e68c8a102a977 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 3 Sep 2023 00:34:18 +0100 Subject: 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 --- script/build/release/src | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'script') 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" -- cgit v1.2.1