summaryrefslogtreecommitdiff
path: root/drivers/bus/pci
diff options
context:
space:
mode:
authorSeth Howell <seth.howell@intel.com>2019-10-11 13:56:07 -0700
committerDavid Marchand <david.marchand@redhat.com>2019-10-25 10:51:15 +0200
commitc345c7d1acf43b4d30e1ecdd5a8cd3402234a6aa (patch)
treef7283146f7d4b10224f282043304926407fca900 /drivers/bus/pci
parent0a82b96e36746608eee9f1f71e2258d9c0099575 (diff)
downloaddpdk-c345c7d1acf43b4d30e1ecdd5a8cd3402234a6aa.zip
dpdk-c345c7d1acf43b4d30e1ecdd5a8cd3402234a6aa.tar.gz
dpdk-c345c7d1acf43b4d30e1ecdd5a8cd3402234a6aa.tar.xz
bus/pci: remove useless link dependency on ethdev
The makefile in drivers/bus/pci specified rte_ethdev as a dependency for the library. However there are no actual symbols from librte_ethdev used in librte_bus_pci. Including librte_ethdev as a dependency only becomes a problem in some niche cases like when attempting to build the rte_bus_pci library as a shared object without building the rte_ethdev library. I specifically ran into this when trying to build the DPDK included as an SPDK submodule on a FreeBSD machine. I figure that since there are no real dependencies between the two, we should enable building librte_bus_pci without librte_ethdev. Fixes: c752998b5e2e ("pci: introduce library and driver") Cc: stable@dpdk.org Signed-off-by: Seth Howell <seth.howell@intel.com> Acked-by: Gaetan Rivet <gaetan.rivet@6wind.com>
Diffstat (limited to 'drivers/bus/pci')
-rw-r--r--drivers/bus/pci/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bus/pci/Makefile b/drivers/bus/pci/Makefile
index 68c1f3f..45d1242 100644
--- a/drivers/bus/pci/Makefile
+++ b/drivers/bus/pci/Makefile
@@ -25,7 +25,7 @@ CFLAGS += -I$(RTE_SDK)/lib/librte_eal/common
CFLAGS += -DALLOW_EXPERIMENTAL_API
LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
-LDLIBS += -lrte_ethdev -lrte_pci -lrte_kvargs
+LDLIBS += -lrte_pci -lrte_kvargs
include $(RTE_SDK)/drivers/bus/pci/$(SYSTEM)/Makefile
SRCS-$(CONFIG_RTE_LIBRTE_PCI_BUS) := $(addprefix $(SYSTEM)/,$(SRCS))