diff options
| author | Kevin Hao <kexin.hao@windriver.com> | 2018-04-13 13:07:01 +0800 |
|---|---|---|
| committer | California Sullivan <california.l.sullivan@intel.com> | 2018-04-16 16:47:50 -0700 |
| commit | 8722a569c39896f27e91607b32826e128cd0fc5b (patch) | |
| tree | ab986f69b4f3f78ef157b42e31b5f2df6f1a2606 | |
| parent | 250bc6207f7a91911d6ab12e7c0f654b709a3ede (diff) | |
| download | meta-dpdk-8722a569c39896f27e91607b32826e128cd0fc5b.tar.gz | |
dpdk: Add support for arm64
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
| -rw-r--r-- | recipes-extended/dpdk/dpdk.inc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/recipes-extended/dpdk/dpdk.inc b/recipes-extended/dpdk/dpdk.inc index 01724fb..40f25ee 100644 --- a/recipes-extended/dpdk/dpdk.inc +++ b/recipes-extended/dpdk/dpdk.inc | |||
| @@ -43,7 +43,6 @@ inherit module | |||
| 43 | 43 | ||
| 44 | export MODULE_DIR="/lib/modules/${KERNEL_VERSION}/kernel/drivers/net" | 44 | export MODULE_DIR="/lib/modules/${KERNEL_VERSION}/kernel/drivers/net" |
| 45 | export RTE_SDK = "${S}" | 45 | export RTE_SDK = "${S}" |
| 46 | export RTE_TARGET="${@bb.utils.contains("TUNE_FEATURES", "m64", "x86_64-native-linuxapp-gcc", "i686-native-linuxapp-gcc", d)}" | ||
| 47 | 46 | ||
| 48 | export ICP_ROOT = "${PKG_CONFIG_SYSROOT_DIR}/usr/include" | 47 | export ICP_ROOT = "${PKG_CONFIG_SYSROOT_DIR}/usr/include" |
| 49 | export ICP_LIB_ROOT= "${PKG_CONFIG_SYSROOT_DIR}/usr/lib" | 48 | export ICP_LIB_ROOT= "${PKG_CONFIG_SYSROOT_DIR}/usr/lib" |
| @@ -59,6 +58,11 @@ export ICP_LAC_API_DIR = "${STAGING_DIR_TARGET}${includedir}/lac" | |||
| 59 | export EXAMPLES_BUILD_DIR = "${RTE_TARGET}" | 58 | export EXAMPLES_BUILD_DIR = "${RTE_TARGET}" |
| 60 | export ARCHDIR = "generic" | 59 | export ARCHDIR = "generic" |
| 61 | 60 | ||
| 61 | RTE_TARGET_x86-64 = "x86_64-native-linuxapp-gcc" | ||
| 62 | RTE_TARGET_i686 = "i686-native-linuxapp-gcc" | ||
| 63 | RTE_TARGET_aarch64 = "arm64-${DPDK_TARGET_MACH}-linuxapp-gcc" | ||
| 64 | export RTE_TARGET="${RTE_TARGET}" | ||
| 65 | |||
| 62 | # The list of intel Comms platforms and their target machine | 66 | # The list of intel Comms platforms and their target machine |
| 63 | # process mapping. The supported target machine is listed under | 67 | # process mapping. The supported target machine is listed under |
| 64 | # dpdk/mk/machine | 68 | # dpdk/mk/machine |
| @@ -77,8 +81,7 @@ do_configure () { | |||
| 77 | unset prefix | 81 | unset prefix |
| 78 | 82 | ||
| 79 | # Fix-up CONFIG_RTE_MACHINE based on target machine | 83 | # Fix-up CONFIG_RTE_MACHINE based on target machine |
| 80 | sed -e "s#CONFIG_RTE_MACHINE=\"native\"#CONFIG_RTE_MACHINE=\"${DPDK_TARGET_MACH}\"#" -i ${S}/config/defconfig_x86_64-native-linuxapp-gcc | 84 | sed -e "s#CONFIG_RTE_MACHINE=\"native\"#CONFIG_RTE_MACHINE=\"${DPDK_TARGET_MACH}\"#" -i ${S}/config/defconfig_${RTE_TARGET} |
| 81 | sed -e "s#CONFIG_RTE_MACHINE=\"native\"#CONFIG_RTE_MACHINE=\"${DPDK_TARGET_MACH}\"#" -i ${S}/config/defconfig_i686-native-linuxapp-gcc | ||
| 82 | 85 | ||
| 83 | # Fix-up vhost configs based on package config | 86 | # Fix-up vhost configs based on package config |
| 84 | sed -e "s#CONFIG_RTE_KNI_VHOST=n#CONFIG_RTE_KNI_VHOST=${CONFIG_VHOST_ENABLED}#" -i ${S}/config/common_linuxapp | 87 | sed -e "s#CONFIG_RTE_KNI_VHOST=n#CONFIG_RTE_KNI_VHOST=${CONFIG_VHOST_ENABLED}#" -i ${S}/config/common_linuxapp |
