首页 > 代码库 > [dpdk] SDK编译-简单扼要版

[dpdk] SDK编译-简单扼要版

0. 前提:

  环境是CentOS7,archlinux编译有问题,不知道却什么。

1. 解压:

[root@dpdk dpdk]# tar Jxf dpdk-2.2.0.tar.xz

2. 设置环境变量

[root@dpdk dpdk-2.2.0]# export RTE_SDK=/root/src/thirdparty/dpdk/dpdk-2.2.0
[root@dpdk dpdk-2.2.0]# export RTE_TARGET=x86_64-native-linuxapp-gcc
[root@dpdk dpdk-2.2.0]# export |grep RTE
declare -x RTE_SDK="/root/src/thirdparty/dpdk/dpdk-2.2.0"
declare -x RTE_TARGET="x86_64-native-linuxapp-gcc"
[root@dpdk dpdk-2.2.0]#

3. 配置

[root@dpdk dpdk-2.2.0]# make config T=$RTE_TARGET O=$RTE_TARGET

4. 编译

[root@dpdk dpdk-2.2.0]# cd x86_64-native-linuxapp-gcc/
[root@dpdk x86_64-native-linuxapp-gcc]# make

 

5. 完

 

[dpdk] SDK编译-简单扼要版