mbox series

[0/1] dpdk: fix do_configure failure on 32-bit ARM (qemuarm) targets

Message ID 20260728061706.3250521-1-Swati.ShivajiKoli@windriver.com
Headers show
Series dpdk: fix do_configure failure on 32-bit ARM (qemuarm) targets | expand

Message

Swati Koli July 28, 2026, 6:17 a.m. UTC
Hi Randy,

This patch fixes the dpdk 25.11.1 do_configure failure on qemuarm
targets, reproduced on master-wr (LINCD-34249).

Root Cause:
-----------
The get_cpu_instruction_set() function in dpdk.inc falls back to
'core2' (an x86 microarchitecture) when -march= is not found in CC.
For 32-bit ARM targets, the toolchain uses -mcpu=cortex-a15 instead
of -march=, so the regex never matches and the invalid x86 fallback
gets passed to the ARM cross-compiler:

  arm-wrs-linux-gnueabi-gcc: error: unrecognized -march target: core2

Fix:
----
Apply the same pattern already used for aarch64 (commit c4e5897):
- Override EXTRA_OEMESON for the 'arm' tune to use the dpdk.cross
  file instead of cpu_instruction_set
- Set RTE_PLATFORM to 'generic_aarch32' so meson selects the correct
  32-bit ARM platform

This fix is intended for upstream meta-dpdk. Tested on qemuarm,
do_configure completes successfully with no errors after this change.

Swati Koli (1):
  dpdk: fix builds for 32-bit ARM machines


 recipes-extended/dpdk/dpdk.inc | 2 ++
 1 file changed, 2 insertions(+)