[meta-intel] [master & fido][PATCH 10/16] meta-isg: dpdk v1.8: introduce target machine selection for DPDK.

Ong Boon Leong boon.leong.ong at intel.com
Fri Jul 10 06:23:47 PDT 2015


DPDK default config set the TARGET machine type to native which is
incorrect. The SDK assumes that the DPDK package is built and installed
natively. So, to support cross-compilation uses, we add DPDK_TARGET_MACH
option here. This variable should be defined at either dpdk bb or bbappend
file.

Signed-off-by: Ong Boon Leong <boon.leong.ong at intel.com>
---
 ....0-dpdk-defconfig-select-RTE_MACHINE-type.patch |   48 ++++++++++++++++++++
 1 file changed, 48 insertions(+)
 create mode 100644 meta-isg/common/recipes-extended/dpdk/dpdk/dpdk-1.8.0-dpdk-defconfig-select-RTE_MACHINE-type.patch

diff --git a/meta-isg/common/recipes-extended/dpdk/dpdk/dpdk-1.8.0-dpdk-defconfig-select-RTE_MACHINE-type.patch b/meta-isg/common/recipes-extended/dpdk/dpdk/dpdk-1.8.0-dpdk-defconfig-select-RTE_MACHINE-type.patch
new file mode 100644
index 0000000..979541e
--- /dev/null
+++ b/meta-isg/common/recipes-extended/dpdk/dpdk/dpdk-1.8.0-dpdk-defconfig-select-RTE_MACHINE-type.patch
@@ -0,0 +1,48 @@
+From 6eaf6b1a61321acb824f9672c12d0e30a2110f52 Mon Sep 17 00:00:00 2001
+From: Ong Boon Leong <boon.leong.ong at intel.com>
+Date: Mon, 16 Mar 2015 11:10:43 +0800
+Subject: [PATCH] DPDK: defconfig: add selectable RTE_MACHINE option
+
+In order to make sure that DPDK build environment config can handle the
+package being built on different build machine for different target machine
+which will have different x86 architecture intrinsics than the build machine,
+we introduce DPDK_TARGET_MACH to be tunable from dpdk recipe. The machine
+type can be under mk/machine folder.
+
+Upstream-Status: Inappropriate [configuration]
+
+Signed-off-by: Ong Boon Leong <boon.leong.ong at intel.com>
+---
+ config/defconfig_i686-native-linuxapp-gcc   |    2 +-
+ config/defconfig_x86_64-native-linuxapp-gcc |    2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/config/defconfig_i686-native-linuxapp-gcc b/config/defconfig_i686-native-linuxapp-gcc
+index a90de9b..c9a74a5 100644
+--- a/config/defconfig_i686-native-linuxapp-gcc
++++ b/config/defconfig_i686-native-linuxapp-gcc
+@@ -32,7 +32,7 @@
+ 
+ #include "common_linuxapp"
+ 
+-CONFIG_RTE_MACHINE="native"
++CONFIG_RTE_MACHINE=$(DPDK_TARGET_MACH)
+ 
+ CONFIG_RTE_ARCH="i686"
+ CONFIG_RTE_ARCH_I686=y
+diff --git a/config/defconfig_x86_64-native-linuxapp-gcc b/config/defconfig_x86_64-native-linuxapp-gcc
+index 60baf5b..0e4802d 100644
+--- a/config/defconfig_x86_64-native-linuxapp-gcc
++++ b/config/defconfig_x86_64-native-linuxapp-gcc
+@@ -32,7 +32,7 @@
+ 
+ #include "common_linuxapp"
+ 
+-CONFIG_RTE_MACHINE="native"
++CONFIG_RTE_MACHINE=$(DPDK_TARGET_MACH)
+ 
+ CONFIG_RTE_ARCH="x86_64"
+ CONFIG_RTE_ARCH_X86_64=y
+-- 
+1.7.9.5
+
-- 
1.7.9.5



More information about the meta-intel mailing list