Skip to contentSkip to conversation

optee-client: Disable Werror with clang

PATCH Applied Khem Raj 2 participants 2 messages Nov 4, 2020 – Nov 5, 2020

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 optee-client: Disable Werror with clang

Main flags are using gcc specific warning options e.g. -Wunsafe-loop-optimizations which are unkown to clang so it reports then under -Wunknown-warning-option as an error when -Werror is on

---
 meta-arm/recipes-security/optee/optee-client.inc | 1 +
 1 file changed, 1 insertion(+)
meta-arm/recipes-security/optee/optee-client.inc +1 -0
index 26f9724..88a9483 100644
@@ -16,6 +16,7 @@ SRC_URI = " \
 S = "${WORKDIR}/git"
 
 EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON"
+EXTRA_OECMAKE_append_toolchain-clang = " -DCFG_WERROR=0"
 
 do_install_append() {
     install -D -p -m0644 ${WORKDIR}/tee-supplicant.service ${D}${systemd_system_unitdir}/tee-supplicant.service
Signature · 1 line
2.29.2
Applied
#1 lore raw
Quoted 5 lines · Khem Raj

Main flags are using gcc specific warning options e.g. -Wunsafe-loop-optimizations which are unkown to clang so it reports then under -Wunknown-warning-option as an error when -Werror is on

Applied to master.

Thanks,
Jon

Quoted 23 lines
---
 meta-arm/recipes-security/optee/optee-client.inc | 1 +
 1 file changed, 1 insertion(+)
meta-arm/recipes-security/optee/optee-client.inc +1 -0
index 26f9724..88a9483 100644
@@ -16,6 +16,7 @@ SRC_URI = " \
 S = "${WORKDIR}/git"
 
 EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON"
+EXTRA_OECMAKE_append_toolchain-clang = " -DCFG_WERROR=0"
 
 do_install_append() {
     install -D -p -m0644 ${WORKDIR}/tee-supplicant.service ${D}${systemd_system_unitdir}/tee-supplicant.service
Signature · 1 line
2.29.2