diff mbox series

[meta-dpdk,2/2] dpdk: fix builds for ARM machines

Message ID 20260427130603.2142929-2-anuj.mittal@oss.qualcomm.com
State New
Headers show
Series [meta-dpdk,1/2] dpdk: add a PACKAGECONFIG for examples | expand

Commit Message

Anuj Mittal April 27, 2026, 1:06 p.m. UTC
cpu_instruction_set variable is neither recommended nor effective for
ARM builds. DPDK recommends setting the platform to SoC to properly
tailor the build instead.

Ensure that we set the platform value for aarch64 and
cpu_instruction_set for all others.

Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
---
 recipes-extended/dpdk/dpdk.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/recipes-extended/dpdk/dpdk.inc b/recipes-extended/dpdk/dpdk.inc
index 63f8191..6c76a1d 100644
--- a/recipes-extended/dpdk/dpdk.inc
+++ b/recipes-extended/dpdk/dpdk.inc
@@ -18,7 +18,7 @@  def get_cpu_instruction_set(bb, d):
         return "core2"
 
 EXTRA_OEMESON = " -Dcpu_instruction_set=${@get_cpu_instruction_set(bb, d)}"
-EXTRA_OEMESON:append:class-target = " --cross-file ${WORKDIR}/dpdk.cross"
+EXTRA_OEMESON:aarch64 = " --cross-file ${WORKDIR}/dpdk.cross"
 
 COMPATIBLE_HOST:libc-musl:class-target = "null"
 COMPATIBLE_HOST:linux-gnux32 = "null"