From 0e009603a34380f84847803c815d029df486f890 Mon Sep 17 00:00:00 2001 From: WU CHIA CHUAN Date: Tue, 28 Jul 2015 16:05:08 +0800 Subject: meta-isg: dpdk: tidy up dpdk.inc & removed unnecessary patches This patch tidy up dpdk.inc and removing unnecessary patches. Integrating common recipe from dpdk_1.8.0.bb and dpdk_2.0.0.bb. Signed-off-by: Ong Boon Leong Signed-off-by: WU CHIA CHUAN Signed-off-by: Darren Hart (cherry picked from commit 76d81da78421b48cea47d7090855173f87a43a99) Signed-off-by: Darren Hart --- meta-isg/common/recipes-extended/dpdk/dpdk.inc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'meta-isg/common/recipes-extended/dpdk/dpdk.inc') diff --git a/meta-isg/common/recipes-extended/dpdk/dpdk.inc b/meta-isg/common/recipes-extended/dpdk/dpdk.inc index 85b88fa0..59946cfb 100644 --- a/meta-isg/common/recipes-extended/dpdk/dpdk.inc +++ b/meta-isg/common/recipes-extended/dpdk/dpdk.inc @@ -3,6 +3,26 @@ HOMEPAGE = "http://dpdk.org" LICENSE = "BSD & LGPLv2 & GPLv2" LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=751419260aa954499f7abaabaa882bbe" +SRC_URI = "http://dpdk.org/browse/dpdk/snapshot/dpdk-${PV}.tar.gz;name=dpdk \ + file://dpdk-1.8.0-and-2.0.0-examples-add-config-variable-to-enable-disable-dpdk.patch \ + file://dpdk-1.8.0-and-2.0.0-add-RTE_KERNELDIR_OUT-to-split-kernel-bu.patch \ + file://dpdk-1.8.0-and-2.0.0-add-sysroot-option-within-app-makefile.patch \ + " + +# dpdk example apps dpdk_qat and vhost have dependancy on fuse and qat. +# fuse is in meta-filesystems and qat is not yet upstreamed. +# So adding mechanism to explicitly disable the use of fuse and qat. +# To enable, uncomment the below line or include in .bbappend. +# PACKAGECONFIG ?= " dpdk_qat vhost libvirt" + +PACKAGECONFIG[dpdk_qat] = ",,qat" +PACKAGECONFIG[vhost] = ",,fuse" +PACKAGECONFIG[libvirt] = ",,libvirt" + +export CONFIG_EXAMPLE_DPDK_QAT = "${@base_contains('PACKAGECONFIG', 'dpdk_qat', 'y', 'n', d)}" +export CONFIG_EXAMPLE_VM_POWER_MANAGER = "${@base_contains('PACKAGECONFIG', 'libvirt', 'y', 'n', d)}" +export CONFIG_VHOST_ENABLED = "${@base_contains('PACKAGECONFIG', 'vhost', 'y', 'n', d)}" + RDEPENDS_${PN} += "python-subprocess" DEPENDS = "virtual/kernel" do_configure[depends] += "virtual/kernel:do_shared_workdir" -- cgit v1.2.3-54-g00ecf