Meson: add new cross compilation parameter for DPDK build on ARM SoC

Hi OpeWnrt and DPDK community.

I want to use the DPDK framework on OpenWrt on ARM SoC. Packages in the repository https://github.com/k13132/openwrt-dpdk (the main branch) support the X86_64 platform. ARM needs a new parameter, "platform," in the Openwrt Meson cross-compilation profile file. I made a patch https://github.com/k13132/openwrt/commit/ff6ba001d151cf07a25af592e30a28df0b50ff19. Patch work :slight_smile: but is this the correct way? For DPDK, this variable will still be "generic." The MESON_ARGS variable sets the target platform and SoC type.

The information about the DPDK cross compilation with meson is here: https://doc.dpdk.org/guides/linux_gsg/cross_build_dpdk_for_arm64.html and using "platform" variable in meson config is here https://github.com/DPDK/dpdk/blob/5eedf66ac0e5ce62cd333e523996c63a3c4c2c00/config/arm/meson.build#L646.

Hi,
Zbyněk Kocur

Hello OpenWrt community. I had resolved it and here is fully functional OpenWrt package - https://github.com/k13132/openwrt-dpdk/actions/new. Please give me feedback.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.