examples: fix linking against specific drivers
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 27 Oct 2020 17:19:53 +0000 (17:19 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 30 Oct 2020 13:33:36 +0000 (14:33 +0100)
Some example apps rely on driver-specific functionality and link explicitly
against those drivers. These apps need their makefiles updated to take
account of the renaming of the driver libs.

Fixes: a20b2c01a7a1 ("build: standardize component names and defines")

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
examples/bond/Makefile
examples/ethtool/lib/Makefile
examples/vm_power_manager/Makefile

index 4e560f5..8700b58 100644 (file)
@@ -19,7 +19,7 @@ shared: build/$(APP)-shared
 static: build/$(APP)-static
        ln -sf $(APP)-static build/$(APP)
 
-LDFLAGS += -lrte_pmd_bond
+LDFLAGS += -lrte_net_bond
 
 PKGCONF ?= pkg-config
 
index 3bc2b9d..b4af9b0 100644 (file)
@@ -27,7 +27,7 @@ LDFLAGS += -Wl,--no-undefined $(LDFLAGS_SHARED)
 
 # check for ixgbe by grepping pre-processor output
 ifneq ($(shell $(CC) $(CFLAGS) -dM -E - < /dev/null | grep IXGBE),)
-LDFLAGS += -lrte_pmd_ixgbe
+LDFLAGS += -lrte_net_ixgbe
 endif
 
 .PHONY: all clean static shared
index 87b9744..027d17c 100644 (file)
@@ -44,7 +44,7 @@ CFLAGS += -DUSE_JANSSON
 endif
 
 # for shared library builds, we need to explicitly link these PMDs
-LDFLAGS_SHARED += -lrte_pmd_ixgbe -lrte_pmd_i40e -lrte_pmd_bnxt
+LDFLAGS_SHARED += -lrte_net_ixgbe -lrte_net_i40e -lrte_net_bnxt
 
 build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build
        $(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)