Skip to contentSkip to conversation

Add COMPATIBLE_MACHINEs

PATCH New Ryan Eatmon 1 participant 7 messages Mar 12, 2025

lore
Share & tools
lore
#0 lore raw

cover Add COMPATIBLE_MACHINEs

We are moving to make the meta-arago layers Yocto Project Compatible.

https://www.yoctoproject.org/development/yocto-project-compatible-layers/

We have been cleaning up the layer according to the yocto-check-layer tool. This series addresses the issue that the yocto-check-layer is running in a machine agnostic manner. If one recipe has a COMPATIBLE_MACHINE and another recipe depends on it, then effectively that recipe also needs a COMPATIBLE_MACHINE setting. Without it, the yocto-check-layer tool sees that you depend on package that it cannot process and so it is not available to "build" and it errors out.

Simple fix is to populate the same COMPATIBLE_MACHINE setting up the recipe hierarchy for all needed packages.

Ryan Eatmon (6):
statcol: Add COMPATIBLE_MACHINE
ti-gc320-tests: Add COMPATIBLE_MACHINE
arm-compute-library: Fix typo in comment
armnn: Add COMPATIBLE_MACHINE
onnxruntime: Add COMPATIBLE_MACHINE
nnstreamer: Add COMPATIBLE_MACHINE

 .../arm-compute-library/arm-compute-library_24.12.bb        | 2 +-
 meta-arago-extras/recipes-devtools/armnn/armnn_24.11.bb     | 6 ++++++
 meta-arago-extras/recipes-devtools/statcol/statcol.bb       | 3 +++
 .../recipes-framework/onnxruntime/onnxruntime_1.20.1.bb     | 6 ++++++
 .../ti-gc320-tests/ti-gc320-tests_5.0.11.p7.bb              | 2 ++
 .../recipes-multimedia/nnstreamer/nnstreamer_2.4.0.bb       | 6 ++++++
 6 files changed, 24 insertions(+), 1 deletion(-)
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/6 statcol: Add COMPATIBLE_MACHINE

The ti-rpmsg-char recipe has a COMPATIBLE_MACHINE setting that limits it to just k3 devices. Since this package depends on it, we need the same setting.

---
 meta-arago-extras/recipes-devtools/statcol/statcol.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-arago-extras/recipes-devtools/statcol/statcol.bb +3 -0
index 223989ef..24ee3772 100644
@@ -10,6 +10,7 @@ SRCREV = "279bf455bc3dec69f374d46a8225687935f4323a"
 SRC_URI = "git://git.ti.com/git/glsdk/statcol.git;protocol=${PROTOCOL};branch=${BRANCH}"
 
 DEPENDS = "ti-rpmsg-char websocketd"
+
 RDEPENDS:${PN} = "bash"
 
 S = "${WORKDIR}/git"
@@ -21,3 +22,5 @@ do_install() {
 }
 
 INSANE_SKIP:${PN} = "ldflags"
+
+COMPATIBLE_MACHINE = "^(k3)$"
Signature · 1 line
2.17.1
#2 lore raw

PATCH 2/6 ti-gc320-tests: Add COMPATIBLE_MACHINE

In reply to Ryan Eatmon

The ti-gc320-libs dependency has COMPATIBLE_MACHINE = "omap-a15", so you already cannot properly handle this recipe without it being in effect. yocto-check-layer complains about this, so simply add the same COMPATIBLE_MACHINE setting here.

---
 .../recipes-graphics/ti-gc320-tests/ti-gc320-tests_5.0.11.p7.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-arago-extras/recipes-graphics/ti-gc320-tests/ti-gc320-tests_5.0.11.p7.bb +2 -0
index f9b9685f..6c4ed631 100644
@@ -3,6 +3,8 @@ DESCRIPTION = "Test application for GC320 2D API"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://dra7x-sdk-ti-gc320-tests_manifest.html;md5=22a001855467f373c47f45de5330e3c9"
 
+COMPATIBLE_MACHINE = "omap-a15"
+
 DEPENDS = "ti-gc320-libs"
 
 BRANCH = "ti-${PV}"
Signature · 1 line
2.17.1
#3 lore raw

PATCH 3/6 arm-compute-library: Fix typo in comment

In reply to Ryan Eatmon
---
 .../arm-compute-library/arm-compute-library_24.12.bb            | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library_24.12.bb +1 -1
index 383b02fb..f4129a75 100644
@@ -18,7 +18,7 @@ SRCREV = "32bcced2af7feea6969dd1d22e58d0718dc488e3"
 
 S = "${WORKDIR}/git"
 
-# Only compatible with armv7, armv7ve, and aarch64
+# Only compatible with armv7a, armv7ve, and aarch64
 COMPATIBLE_MACHINE = "(^$)"
 COMPATIBLE_MACHINE:aarch64 = "(.*)"
 COMPATIBLE_MACHINE:armv7a = "${@bb.utils.contains("TUNE_FEATURES","neon","(.*)","(^$)",d)}"
Signature · 1 line
2.17.1
#4 lore raw

PATCH 4/6 armnn: Add COMPATIBLE_MACHINE

In reply to Ryan Eatmon

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.

---
 meta-arago-extras/recipes-devtools/armnn/armnn_24.11.bb | 6 ++++++
 1 file changed, 6 insertions(+)
meta-arago-extras/recipes-devtools/armnn/armnn_24.11.bb +6 -0
index 43ba21ea..ddfbe847 100644
@@ -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
 
Signature · 1 line
2.17.1
#5 lore raw

PATCH 5/6 onnxruntime: Add COMPATIBLE_MACHINE

In reply to Ryan Eatmon

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.

---
 .../recipes-framework/onnxruntime/onnxruntime_1.20.1.bb     | 6 ++++++
 1 file changed, 6 insertions(+)
meta-arago-extras/recipes-framework/onnxruntime/onnxruntime_1.20.1.bb +6 -0
index 7e810739..bee649cb 100644
@@ -32,6 +32,12 @@ SRCREV_nsync = "13de152c2a1cd73ff4df97bd2c406b6d15d34af3"
 
 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)}"
+
 DEPENDS += "\
 	onnx \
 	abseil-cpp \
Signature · 1 line
2.17.1
#6 lore raw

PATCH 6/6 nnstreamer: Add COMPATIBLE_MACHINE

In reply to Ryan Eatmon

The onnxruntime recipe has a COMPATIBLE_MACHINE setting that limits this to just armv7a and aarch64. Since this package depends on it, we need the same settings.

---
 .../recipes-multimedia/nnstreamer/nnstreamer_2.4.0.bb       | 6 ++++++
 1 file changed, 6 insertions(+)
meta-arago-extras/recipes-multimedia/nnstreamer/nnstreamer_2.4.0.bb +6 -0
index 50d16d29..6e142f4e 100644
@@ -9,6 +9,12 @@ SRCREV = "7c57c288250578cad598f065b6fda6c0ff720cf9"
 
 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 meson pkgconfig
 
 DEPENDS = " \
Signature · 1 line
2.17.1