从源代码交叉编译 DPDK

时间:2021-01-04 13:47:30

标签: dpdk

我正在尝试按照此处的说明从源代码交叉编译(用于 ARM64)DPDK: https://doc.dpdk.org/guides/linux_gsg/cross_build_dpdk_for_arm64.html

但是当我运行 make 时,我看到了:

$ make config T=arm64_armv8_linux_gcc
make: Nothing to be done for 'config'.

我有 checkout 主分支,想知道是否不再支持通过“Makefile”进行编译并且 MESON 构建系统已替换它?

我在主分支的最高提交上:

https://github.com/DPDK/dpdk/commit/9d620630ea30386d7fc2ff192656a9051b6dc6b5

DPDK 版本: 21.02.0-rc0

工具链版本为:

aarch64-linux-gnu-gcc --version

aarch64-linux-gnu-gcc (Linaro GCC 7.3-2018.05) 7.3.1 20180425 [linaro-   7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701]

主机详细信息为:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.7 LTS
Release:    16.04
Codename:   xenial

1 个答案:

答案 0 :(得分:1)

DPDK 已从 20.11 中删除了对 Makefile 的支持。必须依靠 meson-ninja 才能做到这一点。

请使用以下作为交叉构建的指南

meson arm64-build --cross-file config/arm/arm64_armv8_linux_gcc
ninja -C arm64-build

DPDK LTS 19.11.6 仍然使用 Makefile。

相关问题