[dpdk-dev] mk: fix static linking with null pmd

Message ID 1428652137-19290-1-git-send-email-thomas.monjalon@6wind.com (mailing list archive)
State Accepted, archived
Headers

Commit Message

Thomas Monjalon April 10, 2015, 7:48 a.m. UTC
Null PMD was not found when using a statically linked application:
	EAL: no driver found for eth_null1
	EAL: failed to initialize eth_null1 device

Fixes: c743e50c475f ("null: new poll mode driver")

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
---
 mk/rte.app.mk | 4 ++++
 1 file changed, 4 insertions(+)
  

Comments

Thomas Monjalon April 13, 2015, 8:14 p.m. UTC | #1
> Null PMD was not found when using a statically linked application:
> 	EAL: no driver found for eth_null1
> 	EAL: failed to initialize eth_null1 device
> 
> Fixes: c743e50c475f ("null: new poll mode driver")
> 
> Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>

Applied
  

Patch

diff --git a/mk/rte.app.mk b/mk/rte.app.mk
index aa8af79..62a76ae 100644
--- a/mk/rte.app.mk
+++ b/mk/rte.app.mk
@@ -251,6 +251,10 @@  ifeq ($(CONFIG_RTE_LIBRTE_PMD_AF_PACKET),y)
 LDLIBS += -lrte_pmd_af_packet
 endif
 
+ifeq ($(CONFIG_RTE_LIBRTE_PMD_NULL),y)
+LDLIBS += -lrte_pmd_null
+endif
+
 endif # plugins
 
 endif # ! CONFIG_RTE_BUILD_COMBINE_LIBS