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 <[email protected]>
---
 ....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 <[email protected]>
+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 <[email protected]>
+---
+ 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

-- 
_______________________________________________
meta-intel mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-intel

Reply via email to