summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2023-04-19 17:18:10 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-04-26 00:46:30 +0000
commitd5041d9800618b6f0f0f5c9254fc6f164f96431b (patch)
treea8415205825cd630d9ae00cd80f43a96108ba8a8
parentc2f6951df8d4fb85ec0a8ed07f8425b8d0f7e6d2 (diff)
downloadchrome-ec-d5041d9800618b6f0f0f5c9254fc6f164f96431b.tar.gz
twister_launcher: remove disable-warnings-as-errors
None of the test devicetree overlays contain any "label" properties, so the --disable-warnings-as-errors flag can be removed from the default twister invocation. BUG=none BRANCH=none TEST=./twister Change-Id: If06fb0a73f29a791a9ab6303cad3528513401ce5 Signed-off-by: Keith Short <keithshort@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4451650 Reviewed-by: Aaron Massey <aaronmassey@google.com>
-rwxr-xr-xutil/twister_launcher.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/util/twister_launcher.py b/util/twister_launcher.py
index aa0665d8a9..1e347e7691 100755
--- a/util/twister_launcher.py
+++ b/util/twister_launcher.py
@@ -279,15 +279,10 @@ def main():
zephyr_modules.append(ec_base)
# Twister CLI args
- # TODO(b/239165779): Reduce or remove the usage of label properties
- # Zephyr upstream has deprecated the label property. We need to allow
- # warnings during twister runs until all the label properties are removed
- # from all board and test overlays.
twister_cli = [
sys.executable,
str(zephyr_base / "scripts" / "twister"), # Executable path
"--ninja",
- "--disable-warnings-as-errors",
f"-x=DTS_ROOT={str( ec_base / 'zephyr')}",
f"-x=SYSCALL_INCLUDE_DIRS={str(ec_base / 'zephyr' / 'include' / 'drivers')}",
f"-x=ZEPHYR_BASE={zephyr_base}",
@@ -382,6 +377,10 @@ def main():
gcov_tool = None
if intercepted_args.toolchain == "host":
gcov_tool = "gcov"
+ # Inside the chroot, the binutils is still at v2.36 and does not
+ # support the -no-pie flag with the linker and generates warnings.
+ # Disable warnings as errors for the GCC toolchain only.
+ twister_cli.extend(["--disable-warnings-as-errors"])
elif intercepted_args.toolchain == "llvm":
gcov_tool = str(ec_base / "util" / "llvm-gcov.sh")
else: