From 829a48548fe545a6f9cefbf043e4440fc6c746bc Mon Sep 17 00:00:00 2001 From: venkatasubramanian pattu Date: Fri, 8 May 2015 12:08:50 +0800 Subject: meta-isg: Intel DPDK v1.6 recipe under recipes-extended This is an initial version of Intel Data Plane Development Kits (DPDK) recipe support. This recipe is targeting on Intel DPDK v1.6.0r2. Intel DPDK is needed for several IoTG maintained BSPs such as Crystal Forest & Highland Forest, Mohon Peak. Therefore, we place DPDK recipe under meta-isg/common/recipes-extended folder. This recipe is cherry-picked from branch dizzy and the commit ID: c249763d3cb92bd06742b7986f08cf844ddb1d51:meta-intel/common: Initial Intel DPDK recipe under recipes-extended This commit is removed in latest dizzy (1.7) due to build failure. DPDK v1.7 & v1.6 are validated on Linux kernel v3.10 and not supported on Linux kernel v3.17. Therefore, this recipe is intended to be supported only on Linux kernel v3.10 for all CID related platforms like Crystal Forest and Highland Forest. Signed-off-by: venkatasubramanian pattu Signed-off-by: Saul Wold --- .../common/recipes-extended/dpdk/dpdk_1.6.0r2.bb | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 meta-isg/common/recipes-extended/dpdk/dpdk_1.6.0r2.bb (limited to 'meta-isg/common/recipes-extended/dpdk/dpdk_1.6.0r2.bb') diff --git a/meta-isg/common/recipes-extended/dpdk/dpdk_1.6.0r2.bb b/meta-isg/common/recipes-extended/dpdk/dpdk_1.6.0r2.bb new file mode 100644 index 00000000..a507d4e9 --- /dev/null +++ b/meta-isg/common/recipes-extended/dpdk/dpdk_1.6.0r2.bb @@ -0,0 +1,44 @@ +include dpdk.inc + + +SRC_URI = "http://dpdk.org/browse/dpdk/snapshot/dpdk-${PV}.tar.gz;name=dpdk \ + file://dpdk-1.6.0r2-examples-qos_sched-fix-makefile.patch \ + file://dpdk-1.6.0r2-app-test-fix-build-switches-to-enable-cmdline-tests.patch \ + file://dpdk-1.6.0r2-eal-fix-option-base-virtaddr.patch \ + " + + +SRC_URI[dpdk.md5sum] = "f406d027320fc8e724bff20db5397cbb" +SRC_URI[dpdk.sha256sum] = "e72fdebcf8a899fc58e60c9b6493b7457576eece60b08dea6aee96c9087df4b2" + +export EXAMPLES_BUILD_DIR = "build" + +do_compile_append () { + + ################################################################### + ### Compilation for examples + ### Skip dpdk_qat due to it has dependency with qat source code + ### Skip vhost due to it has dependency to fuse libraries + ### Skip vhost_xen due to it has dependency to xen libraries + ################################################################### + for app in ${S}/examples/* + do + + [ `basename ${app}` = "dpdk_qat" -o `basename ${app}` = "vhost" -o `basename ${app}` = "vhost_xen" ] && continue; + + cd ${app} + + ############################################################### + # netmap_compat is putting the binary in a directory path + # which is different from rest of the example apps, so this + # special case is handled here to avoid installation failure + # with dpdk-1.6.0 + ############################################################### + if [ `basename ${app}` == "netmap_compat" ]; then + oe_runmake CROSS="${TARGET_PREFIX}" O="${app}/bridge/${EXAMPLES_BUILD_DIR}/" + else + oe_runmake CROSS="${TARGET_PREFIX}" + fi + done + +} -- cgit v1.2.3-54-g00ecf