Fix crosssdk build on RISC-V 47/29847/2
authorScott Murray <scott.murray@konsulko.com>
Tue, 23 Apr 2024 16:31:10 +0000 (12:31 -0400)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Wed, 24 Apr 2024 15:23:41 +0000 (15:23 +0000)
Remove gcc-sanitizers from the crosssdk when building for RISC-V, as
it is not currently supported on that platform.

Bug-AGL: SPEC-5116

Change-Id: If4e273c85b322f65635e2e9fc4752227f19b065c
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl-demo/+/29847
ci-image-boot-test: Jenkins Job builder account
Tested-by: Jenkins Job builder account
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
ci-image-build: Jenkins Job builder account

recipes-platform/images/agl-ivi-crosssdk.inc

index 551c034..f9f99d8 100644 (file)
@@ -18,4 +18,7 @@ TOOLCHAIN_HOST_TASK += "nativesdk-grpc nativesdk-grpc-dev"
 # Add gcc-sanitizers to support building applications using the SDK with
 # AddressSanitizer support to detect use-after-frees along with other
 # memory issue.
-TOOLCHAIN_TARGET_TASK += "gcc-sanitizers"
+TOOLCHAIN_SANITIZERS_TASKS = "gcc-sanitizers"
+# gcc-sanitizers is currently (scarthgap) not supported on RISC-V
+TOOLCHAIN_SANITIZERS_TASKS:riscv64 = ""
+TOOLCHAIN_TARGET_TASK += "${TOOLCHAIN_SANITIZERS_TASKS}"