summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Bettis <jbettis@google.com>2023-01-09 13:32:27 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-01-11 00:56:41 +0000
commit0f51ef3138902737f480e3594b125fe5f63b6064 (patch)
treeb58e1db79ef7d9b7b66a636a1e1e0d9991a7165a
parent4e2debd3ae435f27f0c8499e92ac08d18c4c22c1 (diff)
downloadchrome-ec-0f51ef3138902737f480e3594b125fe5f63b6064.tar.gz
cq: Omit host and .d files from build artifacts
The script was excluding o.d files, but many of the .d files were not .o.d. Also omit the host directory, because it's all tests. BRANCH=None BUG=None TEST=Ran before and after change, compared artifacts. Change-Id: I50b5e0e16b47194f62b4b43f4576fd010576da4a Signed-off-by: Jeremy Bettis <jbettis@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4148770 Reviewed-by: Peter Marheine <pmarheine@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Commit-Queue: Jeremy Bettis <jbettis@chromium.org> Tested-by: Jeremy Bettis <jbettis@chromium.org>
-rwxr-xr-xfirmware_builder.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware_builder.py b/firmware_builder.py
index 3b075a019a..dfe1161c59 100755
--- a/firmware_builder.py
+++ b/firmware_builder.py
@@ -237,13 +237,15 @@ def bundle_firmware(opts):
bundle_dir = get_bundle_dir(opts)
ec_dir = os.path.dirname(__file__)
for build_target in sorted(os.listdir(os.path.join(ec_dir, "build"))):
+ if build_target in ["host"]:
+ continue
tarball_name = "".join([build_target, ".firmware.tbz2"])
tarball_path = os.path.join(bundle_dir, tarball_name)
cmd = [
"tar",
"cvfj",
tarball_path,
- "--exclude=*.o.d",
+ "--exclude=*.d",
"--exclude=*.o",
".",
]