From patchwork Tue Oct 27 17:19:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 82360 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B9FE0A04B5; Tue, 27 Oct 2020 18:20:03 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CBA4B2BEA; Tue, 27 Oct 2020 18:20:01 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id E0DE22BE2 for ; Tue, 27 Oct 2020 18:20:00 +0100 (CET) IronPort-SDR: 2+2c1CqvBCVI/ao9menDsWNRZNISQV2yzNzPF1JQyDyOY4WgsiPZjXt8u1f1ioh74RG38B1EOz w6dqwpQHWSNg== X-IronPort-AV: E=McAfee;i="6000,8403,9787"; a="232311732" X-IronPort-AV: E=Sophos;i="5.77,424,1596524400"; d="scan'208";a="232311732" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2020 10:19:58 -0700 IronPort-SDR: NkX85+IE7b8T53aaHrXIrhNmCH4HF+2qkwRnK5zJHJ67iIwioqERf9IHvPNpnTgTSGzITkpE2Y Ntkhl1NWs7DA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,424,1596524400"; d="scan'208";a="535880308" Received: from silpixa00399126.ir.intel.com ([10.237.222.4]) by orsmga005.jf.intel.com with ESMTP; 27 Oct 2020 10:19:58 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Date: Tue, 27 Oct 2020 17:19:53 +0000 Message-Id: <20201027171953.887251-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH] examples: fix linking against specific drivers 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" 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 Reviewed-by: David Marchand --- examples/bond/Makefile | 2 +- examples/ethtool/lib/Makefile | 2 +- examples/vm_power_manager/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/bond/Makefile b/examples/bond/Makefile index 4e560f574c..8700b589fb 100644 --- a/examples/bond/Makefile +++ b/examples/bond/Makefile @@ -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 diff --git a/examples/ethtool/lib/Makefile b/examples/ethtool/lib/Makefile index 3bc2b9d8ba..b4af9b0c91 100644 --- a/examples/ethtool/lib/Makefile +++ b/examples/ethtool/lib/Makefile @@ -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 diff --git a/examples/vm_power_manager/Makefile b/examples/vm_power_manager/Makefile index 87b9744d8c..027d17c7ef 100644 --- a/examples/vm_power_manager/Makefile +++ b/examples/vm_power_manager/Makefile @@ -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)