summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Bettis <jbettis@google.com>2023-04-21 10:36:37 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-04-21 18:16:05 +0000
commit4b58017d3b51310076ed7f9047b6c1cee83e6f5c (patch)
treebbfb5dc71fe404758612f90f68cedead9f464238
parent0852c76440bade57d203bc0f985de56a548c530c (diff)
downloadchrome-ec-4b58017d3b51310076ed7f9047b6c1cee83e6f5c.tar.gz
cq: Run hosts tests with the cros host compiler
In addition to the default x86_64-pc-linux-gnu- compiler, also build and run tests with the x86_64-cros-linux-gnu- toolchain. BRANCH=None BUG=None TEST=Ran with crrev/c/4439569 and it broke TEST=CQ Change-Id: I23b51e97b1205179ea3aecea686ed53eeb60f0ac Signed-off-by: Jeremy Bettis <jbettis@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4459084 Commit-Queue: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Yi Chou <yich@google.com> Commit-Queue: Yi Chou <yich@google.com> Tested-by: Jeremy Bettis <jbettis@chromium.org> Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
-rwxr-xr-xfirmware_builder.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/firmware_builder.py b/firmware_builder.py
index de1a073aec..368aa49c87 100755
--- a/firmware_builder.py
+++ b/firmware_builder.py
@@ -331,6 +331,18 @@ def test(opts):
print(f"# Running {' '.join(cmd)}.")
subprocess.run(cmd, cwd=os.path.dirname(__file__), check=True)
+ # Use the x86_64-cros-linux-gnu- compiler also
+ cmd = [
+ "make",
+ "clean",
+ "HOST_CROSS_COMPILE=x86_64-cros-linux-gnu-",
+ "TEST_ASAN=y",
+ target,
+ f"-j{opts.cpus}",
+ ]
+ print(f"# Running {' '.join(cmd)}.")
+ subprocess.run(cmd, cwd=os.path.dirname(__file__), check=True)
+
def main(args):
"""Builds, bundles, or tests all of the EC targets.