From 634f91c982b34c63cccb142711007d5dea60797c Mon Sep 17 00:00:00 2001 From: Ong Boon Leong Date: Fri, 10 Jul 2015 21:23:44 +0800 Subject: meta-isg: dpdk v1.8: add patches for qat, vhost and libvirt PACKAGECONFIG Introduce two patches to enable DPDK config file to support PACKAGECONFIG options for QAT, vhost and libvirt. Signed-off-by: Ong Boon Leong Signed-off-by: Saul Wold --- ...ld-config-VHOST-in-common_linuxapp-config.patch | 43 +++++++++++++++++++++ ...d-config-variable-to-enable-disable-dpdk_.patch | 44 ++++++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 meta-isg/common/recipes-extended/dpdk/dpdk/dpdk-1.8.0-dpdk-enable-build-config-VHOST-in-common_linuxapp-config.patch create mode 100644 meta-isg/common/recipes-extended/dpdk/dpdk/dpdk-1.8.0-examples-add-config-variable-to-enable-disable-dpdk_.patch (limited to 'meta-isg') diff --git a/meta-isg/common/recipes-extended/dpdk/dpdk/dpdk-1.8.0-dpdk-enable-build-config-VHOST-in-common_linuxapp-config.patch b/meta-isg/common/recipes-extended/dpdk/dpdk/dpdk-1.8.0-dpdk-enable-build-config-VHOST-in-common_linuxapp-config.patch new file mode 100644 index 00000000..e8ded8d0 --- /dev/null +++ b/meta-isg/common/recipes-extended/dpdk/dpdk/dpdk-1.8.0-dpdk-enable-build-config-VHOST-in-common_linuxapp-config.patch @@ -0,0 +1,43 @@ +From c1a59d62f2aa7656060d8ebcc8e45e852d931ff1 Mon Sep 17 00:00:00 2001 +From: Ong Boon Leong +Date: Tue, 17 Feb 2015 00:23:12 +0800 +Subject: [PATCH] dpdk: enable VHOST build config in common_linuxapp config + +Introduce CONFIG_VHOST_ENABLED for package config selection purpose in +building vhost feature. + +Upstream-Status: Inappropriate [configuration] + +Signed-off-by: Ong Boon Leong +--- + config/common_linuxapp | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/config/common_linuxapp b/config/common_linuxapp +index 2f9643b..67f5edb 100644 +--- a/config/common_linuxapp ++++ b/config/common_linuxapp +@@ -361,9 +361,9 @@ CONFIG_RTE_LIBRTE_PIPELINE=y + # + CONFIG_RTE_LIBRTE_KNI=y + CONFIG_RTE_KNI_KO_DEBUG=n +-CONFIG_RTE_KNI_VHOST=n ++CONFIG_RTE_KNI_VHOST=$(CONFIG_VHOST_ENABLED) + CONFIG_RTE_KNI_VHOST_MAX_CACHE_SIZE=1024 +-CONFIG_RTE_KNI_VHOST_VNET_HDR_EN=n ++CONFIG_RTE_KNI_VHOST_VNET_HDR_EN=$(CONFIG_VHOST_ENABLED) + CONFIG_RTE_KNI_VHOST_DEBUG_RX=n + CONFIG_RTE_KNI_VHOST_DEBUG_TX=n + +@@ -372,7 +372,7 @@ CONFIG_RTE_KNI_VHOST_DEBUG_TX=n + # fuse-devel is needed to run vhost. + # fuse-devel enables user space char driver development + # +-CONFIG_RTE_LIBRTE_VHOST=n ++CONFIG_RTE_LIBRTE_VHOST=$(CONFIG_VHOST_ENABLED) + CONFIG_RTE_LIBRTE_VHOST_DEBUG=n + + # +-- +1.7.9.5 + diff --git a/meta-isg/common/recipes-extended/dpdk/dpdk/dpdk-1.8.0-examples-add-config-variable-to-enable-disable-dpdk_.patch b/meta-isg/common/recipes-extended/dpdk/dpdk/dpdk-1.8.0-examples-add-config-variable-to-enable-disable-dpdk_.patch new file mode 100644 index 00000000..c86c1a1d --- /dev/null +++ b/meta-isg/common/recipes-extended/dpdk/dpdk/dpdk-1.8.0-examples-add-config-variable-to-enable-disable-dpdk_.patch @@ -0,0 +1,44 @@ +From 54c95ca8f76f412c94a9f61e3756420ac554310b Mon Sep 17 00:00:00 2001 +From: Ong Boon Leong +Date: Thu, 12 Feb 2015 16:33:49 +0800 +Subject: [PATCH] examples: add config variable to enable/disable dpdk_qat + +Upstream-Status: Inappropriate [configuration] + +This patch adss following example build configs: + +1) CONFIG_EXAMPLE_DPDK_QAT is used to control dpdk_qat example + by PACKAGECONFIG. + +2) CONFIG_EXAMPLE_VM_POWER_MANAGER is used to control vm_power_manager + example by PACKAGECONFIG. + +Signed-off-by: Ong Boon Leong +--- + examples/Makefile | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/examples/Makefile b/examples/Makefile +index 81f1d2f..7e9c7bd 100644 +--- a/examples/Makefile ++++ b/examples/Makefile +@@ -40,7 +40,7 @@ include $(RTE_SDK)/mk/rte.vars.mk + DIRS-y += cmdline + DIRS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) += distributor + ifneq ($(ICP_ROOT),) +-DIRS-y += dpdk_qat ++DIRS-$(CONFIG_EXAMPLE_DPDK_QAT) += dpdk_qat + endif + DIRS-y += exception_path + DIRS-y += helloworld +@@ -68,6 +68,6 @@ DIRS-$(CONFIG_RTE_LIBRTE_VHOST) += vhost + DIRS-$(CONFIG_RTE_LIBRTE_XEN_DOM0) += vhost_xen + DIRS-y += vmdq + DIRS-y += vmdq_dcb +-DIRS-y += vm_power_manager ++DIRS-$(CONFIG_EXAMPLE_VM_POWER_MANAGER) += vm_power_manager + + include $(RTE_SDK)/mk/rte.extsubdir.mk +-- +1.7.9.5 + -- cgit v1.2.3-54-g00ecf