From patchwork Wed Apr 4 14:06:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamil Chalupnik X-Patchwork-Id: 37128 X-Patchwork-Delegate: pablo.de.lara.guarch@intel.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0C6141C66E; Wed, 4 Apr 2018 16:06:46 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 6715F1C683 for ; Wed, 4 Apr 2018 16:06:44 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Apr 2018 07:06:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,406,1517904000"; d="scan'208";a="47901282" Received: from kchalupx-mobl.ger.corp.intel.com ([10.103.104.151]) by orsmga002.jf.intel.com with ESMTP; 04 Apr 2018 07:06:42 -0700 From: KamilX Chalupnik To: dev@dpdk.org Cc: amr.mokhtar@intel.com, "Chalupnik, KamilX" Date: Wed, 4 Apr 2018 16:06:02 +0200 Message-Id: <20180404140602.9344-8-kamilx.chalupnik@intel.com> X-Mailer: git-send-email 2.9.0.windows.1 In-Reply-To: <20180404140602.9344-1-kamilx.chalupnik@intel.com> References: <20180404140602.9344-1-kamilx.chalupnik@intel.com> Subject: [dpdk-dev] [PATCH] app/bbdev: dynamic lib support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: "Chalupnik, KamilX" Support for linking with dynamic library added in Baseband Device test application Signed-off-by: KamilX Chalupnik Acked-by: Amr Mokhtar --- 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 -----------------------