Skip to contentSkip to conversation

openmpacc: remove -march=armv7-a gcc flag, OE passes correct one

PATCH New Denys Dmytriyenko 1 participant 1 message Apr 13, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openmpacc: remove -march=armv7-a gcc flag, OE passes correct one

From: Denys Dmytriyenko <[email protected]>

We already pass the necessary -march, -mcu, -mfpu and -mfloat-abi flags based on the machine tunes. Moreover, cortex-a15 is not armv7-a, but armv7ve, so gcc will give a warning, but since also -Werror is passed, it breaks the build.

---
 meta-arago-extras/recipes-ti/openmpacc/openmpacc_git.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-arago-extras/recipes-ti/openmpacc/openmpacc_git.bb +4 -0
index 89f6b79..8fec0d1 100644
@@ -17,3 +17,7 @@ export LINUX_DEVKIT_ROOT = "${STAGING_DIR_HOST}"
 EXTRA_OECMAKE += "-DVERSION="${PV}" -DBUILD_OUTPUT=lib"
 
 FILES_${PN} += "/usr/share/ti/openmpacc/*"
+
+do_configure_prepend() {
+	sed -i -e 's/-march=armv7-a//' ${S}/libompacc/CMakeLists.txt
+}
Signature · 1 line
2.2.0