aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Hao <kexin.hao@windriver.com>2018-04-13 13:07:01 +0800
committerCalifornia Sullivan <california.l.sullivan@intel.com>2018-04-16 16:47:50 -0700
commit8722a569c39896f27e91607b32826e128cd0fc5b (patch)
treeab986f69b4f3f78ef157b42e31b5f2df6f1a2606
parent250bc6207f7a91911d6ab12e7c0f654b709a3ede (diff)
downloadmeta-dpdk-8722a569c39896f27e91607b32826e128cd0fc5b.tar.gz
meta-dpdk-8722a569c39896f27e91607b32826e128cd0fc5b.tar.bz2
meta-dpdk-8722a569c39896f27e91607b32826e128cd0fc5b.zip
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.inc9
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
export MODULE_DIR="/lib/modules/${KERNEL_VERSION}/kernel/drivers/net"
export RTE_SDK = "${S}"
-export RTE_TARGET="${@bb.utils.contains("TUNE_FEATURES", "m64", "x86_64-native-linuxapp-gcc", "i686-native-linuxapp-gcc", d)}"
export ICP_ROOT = "${PKG_CONFIG_SYSROOT_DIR}/usr/include"
export ICP_LIB_ROOT= "${PKG_CONFIG_SYSROOT_DIR}/usr/lib"
@@ -59,6 +58,11 @@ export ICP_LAC_API_DIR = "${STAGING_DIR_TARGET}${includedir}/lac"
export EXAMPLES_BUILD_DIR = "${RTE_TARGET}"
export ARCHDIR = "generic"
+RTE_TARGET_x86-64 = "x86_64-native-linuxapp-gcc"
+RTE_TARGET_i686 = "i686-native-linuxapp-gcc"
+RTE_TARGET_aarch64 = "arm64-${DPDK_TARGET_MACH}-linuxapp-gcc"
+export RTE_TARGET="${RTE_TARGET}"
+
# The list of intel Comms platforms and their target machine
# process mapping. The supported target machine is listed under
# dpdk/mk/machine
@@ -77,8 +81,7 @@ do_configure () {
unset prefix
# Fix-up CONFIG_RTE_MACHINE based on target machine
- sed -e "s#CONFIG_RTE_MACHINE=\"native\"#CONFIG_RTE_MACHINE=\"${DPDK_TARGET_MACH}\"#" -i ${S}/config/defconfig_x86_64-native-linuxapp-gcc
- sed -e "s#CONFIG_RTE_MACHINE=\"native\"#CONFIG_RTE_MACHINE=\"${DPDK_TARGET_MACH}\"#" -i ${S}/config/defconfig_i686-native-linuxapp-gcc
+ sed -e "s#CONFIG_RTE_MACHINE=\"native\"#CONFIG_RTE_MACHINE=\"${DPDK_TARGET_MACH}\"#" -i ${S}/config/defconfig_${RTE_TARGET}
# Fix-up vhost configs based on package config
sed -e "s#CONFIG_RTE_KNI_VHOST=n#CONFIG_RTE_KNI_VHOST=${CONFIG_VHOST_ENABLED}#" -i ${S}/config/common_linuxapp