[dpdk-dev] [PATCH] app/bbdev: dynamic lib support

KamilX Chalupnik kamilx.chalupnik at intel.com
Wed Apr 4 16:06:02 CEST 2018


From: "Chalupnik, KamilX" <kamilx.chalupnik at intel.com>

Support for linking with dynamic library added in
Baseband Device test application

Signed-off-by: KamilX Chalupnik <kamilx.chalupnik at intel.com>
---
 app/test-bbdev/Makefile        | 4 ++++
 doc/guides/tools/testbbdev.rst | 7 +++++++
 2 files changed, 11 insertions(+)

diff --git a/app/test-bbdev/Makefile b/app/test-bbdev/Makefile
index 6da0c8e..26c9a4b 100644
--- a/app/test-bbdev/Makefile
+++ b/app/test-bbdev/Makefile
@@ -22,4 +22,8 @@ SRCS-$(CONFIG_RTE_TEST_BBDEV) += test_bbdev_vector.c
 
 LDLIBS += -lm
 
+ifeq ($(CONFIG_RTE_LIBRTE_PMD_BBDEV_TURBO_SW),y)
+LDLIBS += -lrte_pmd_bbdev_turbo_sw
+endif
+
 include $(RTE_SDK)/mk/rte.app.mk
diff --git a/doc/guides/tools/testbbdev.rst b/doc/guides/tools/testbbdev.rst
index 2ccc646..8a13cbd 100644
--- a/doc/guides/tools/testbbdev.rst
+++ b/doc/guides/tools/testbbdev.rst
@@ -36,6 +36,13 @@ The user must have all libraries, modules, updates and compilers installed
 in the system prior to this, as described in the earlier chapters in this
 Getting Started Guide.
 
+Compiling the Application with DPDK built as shared library
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Setting flag in config/common_base file:
+
+   ``CONFIG_RTE_BUILD_SHARED_LIB=y``
+
 Running the Application
 -----------------------
 
-- 
2.5.5

--------------------------------------------------------------
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263


This e-mail and any attachments may contain confidential material for the sole
use of the intended recipient(s). Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact the
sender and delete all copies.



More information about the dev mailing list