diff mbox series

[meta-arago,master/scarthgap,4/6] armnn: Add COMPATIBLE_MACHINE

Message ID 20250312150824.6579-5-reatmon@ti.com
State New
Headers show
Series Add COMPATIBLE_MACHINEs | expand

Commit Message

Ryan Eatmon March 12, 2025, 3:08 p.m. UTC
The arm_compute_library has a COMPATIBLE_MACHINE setting that limits
this to just armv7a and aarch64.  Since this package depends on it, we
need the same settings.

Signed-off-by: Ryan Eatmon <reatmon@ti.com>
---
 meta-arago-extras/recipes-devtools/armnn/armnn_24.11.bb | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/meta-arago-extras/recipes-devtools/armnn/armnn_24.11.bb b/meta-arago-extras/recipes-devtools/armnn/armnn_24.11.bb
index 43ba21ea..ddfbe847 100644
--- a/meta-arago-extras/recipes-devtools/armnn/armnn_24.11.bb
+++ b/meta-arago-extras/recipes-devtools/armnn/armnn_24.11.bb
@@ -12,6 +12,12 @@  SRCREV = "3ed70c005559d409feff2c578a1a39cf8fec8804"
 
 S = "${WORKDIR}/git"
 
+# Only compatible with armv7a, armv7ve, and aarch64
+COMPATIBLE_MACHINE = "(^$)"
+COMPATIBLE_MACHINE:aarch64 = "(.*)"
+COMPATIBLE_MACHINE:armv7a = "${@bb.utils.contains("TUNE_FEATURES","neon","(.*)","(^$)",d)}"
+COMPATIBLE_MACHINE:armv7ve = "${@bb.utils.contains("TUNE_FEATURES","neon","(.*)","(^$)",d)}"
+
 inherit cmake
 inherit pkgconfig