From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gandi.net (mail4.gandi.net [217.70.183.210]) by dpdk.org (Postfix) with ESMTP id 30DB9C3BA for ; Mon, 3 Aug 2015 18:12:28 +0200 (CEST) Received: from localhost (mfiltercorp1-d.gandi.net [217.70.183.155]) by gandi.net (Postfix) with ESMTP id 103ADE39BD; Mon, 3 Aug 2015 18:12:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfiltercorp1-d.gandi.net Received: from gandi.net ([217.70.183.210]) by localhost (mfiltercorp1-d.gandi.net [217.70.183.155]) (amavisd-new, port 10024) with ESMTP id D8-JD0bIXDjt; Mon, 3 Aug 2015 18:12:27 +0200 (CEST) Received: from localhost (fob.gandi.net [217.70.181.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gandi.net (Postfix) with ESMTPSA id DF029E39A2; Mon, 3 Aug 2015 18:12:27 +0200 (CEST) From: Nikita Kozlov To: dev@dpdk.org Date: Mon, 3 Aug 2015 18:12:17 +0200 Message-Id: <1438618337-15769-1-git-send-email-nikita@elyzion.net> X-Mailer: git-send-email 2.4.6 Subject: [dpdk-dev] [PATCH] Add CONFIG_RTE_KNI_KMOD build option. X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Aug 2015 16:12:28 -0000 This option permit to build librte_kni.so without building rte_kni.ko so you can build a sdk without building kernel drivers. Signed-off-by: Nikita Kozlov --- config/common_linuxapp | 1 + lib/librte_eal/linuxapp/Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/common_linuxapp b/config/common_linuxapp index bda9a63..0de43d5 100644 --- a/config/common_linuxapp +++ b/config/common_linuxapp @@ -425,6 +425,7 @@ CONFIG_RTE_PIPELINE_STATS_COLLECT=n # Compile librte_kni # CONFIG_RTE_LIBRTE_KNI=y +CONFIG_RTE_KNI_KMOD=y CONFIG_RTE_KNI_PREEMPT_DEFAULT=y CONFIG_RTE_KNI_KO_DEBUG=n CONFIG_RTE_KNI_VHOST=n diff --git a/lib/librte_eal/linuxapp/Makefile b/lib/librte_eal/linuxapp/Makefile index 8fcfdf6..d9c5233 100644 --- a/lib/librte_eal/linuxapp/Makefile +++ b/lib/librte_eal/linuxapp/Makefile @@ -35,7 +35,7 @@ ifeq ($(CONFIG_RTE_EAL_IGB_UIO),y) DIRS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += igb_uio endif DIRS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += eal -ifeq ($(CONFIG_RTE_LIBRTE_KNI),y) +ifeq ($(CONFIG_RTE_KNI_KMOD),y) DIRS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += kni endif ifeq ($(CONFIG_RTE_LIBRTE_XEN_DOM0),y) -- 2.4.6