From 05dc7b05da918f862890abd168d93b3b05b6b53a Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 22 Jun 2016 14:34:02 +0300 Subject: [PATCH] port: fix build without KNI Commit 9fc37d1c071c is missing a conditional in the dependencies, causing builds to fail when KNI is not enabled: == Build lib/librte_port LD librte_port.so.3 /usr/bin/ld: cannot find -lrte_kni collect2: error: ld returned 1 exit status Fixes: 9fc37d1c071c ("port: support KNI") Signed-off-by: Panu Matilainen Acked-by: Cristian Dumitrescu --- lib/librte_port/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_port/Makefile b/lib/librte_port/Makefile index 0fc929b854..3d84a0e465 100644 --- a/lib/librte_port/Makefile +++ b/lib/librte_port/Makefile @@ -82,6 +82,8 @@ DEPDIRS-$(CONFIG_RTE_LIBRTE_PORT) += lib/librte_mempool DEPDIRS-$(CONFIG_RTE_LIBRTE_PORT) += lib/librte_ether DEPDIRS-$(CONFIG_RTE_LIBRTE_PORT) += lib/librte_ip_frag DEPDIRS-$(CONFIG_RTE_LIBRTE_PORT) += lib/librte_sched +ifeq ($(CONFIG_RTE_LIBRTE_KNI),y) DEPDIRS-$(CONFIG_RTE_LIBRTE_PORT) += lib/librte_kni +endif include $(RTE_SDK)/mk/rte.lib.mk -- 2.20.1