From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id DC018A00BE; Tue, 29 Oct 2019 14:02:13 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F235C1BEB9; Tue, 29 Oct 2019 14:02:12 +0100 (CET) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by dpdk.org (Postfix) with ESMTP id E2A6B1BEB8 for ; Tue, 29 Oct 2019 14:02:11 +0100 (CET) Received: by mail-wr1-f65.google.com with SMTP id p4so13544030wrm.8 for ; Tue, 29 Oct 2019 06:02:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tI/OseCLX2ltRcV0c8wnzn/0wnHnDg9+A+A6zWKgfPk=; b=cY5K+BWrd7tb3Na/C4DqF3d2m0bZFJislgoGZDNEY+Yck8vNGOpkj2/vDAY4elNNJ5 JaQkW9rOyLlvh34bDRkKhW3zIs608/gnJFuXxGSDo5pOurJUQMOvlaoCUwVNsKA/KNNC OCKgxhkK+lpp+P/eI6qFYii6/UyCCYEQXMP/TPPTsbC0PBSBWPOWq1R5iVpDJ4/Bn7Sw wuKFcwjLkIKkxzUUxUhPqmJwXcI+AgAXfB3xytBQN2OHwlk7+R+yLlLmpHboXMChare6 Att7k1xoi1lDID6CrxkvS3CHJnNF3H0wCQdRrDvSPBqrkgljt1xEOUO1aQjPA1jIx3GR ZeKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tI/OseCLX2ltRcV0c8wnzn/0wnHnDg9+A+A6zWKgfPk=; b=XzX2I64pg1pgxDN/e628VKmUCBO1dETkfzj6NHVMPDNhBAPGWlyqiUAf0BWmzePHXa Sjk1mVuqospy+LAJbERxccXTDvO+PezFFLkUN3REEd/5Xdop9vy3xl2uzJ+Ux1gK17bX PWhKY7PQMSdl2Yj/mui+5YXaWqQkJC0YmeSZRnN6jZZTmTvSR1vdxTdmXweHRKwhHqkd fre+7pdNJh5H+MdsrsZBUOJvx1xlZCTzQF+9HcAk0XAfS7mw3J070jXZ4gQYk/N1FinX xCnqLgvEMt2uKiZALAd+KYK2hQ6DNOJIXJRQvHWdOawwMjCLysmTNxeNmAWOtVpN/Soh iSBA== X-Gm-Message-State: APjAAAUCxe46DbnyeiqpktM6BZ2YYVc9re29pZ4680nBhQogXFFsiwYf V0xdOwjMdGS/1BnXdrQejzB3CvY2aw== X-Google-Smtp-Source: APXvYqzKGJLCmP5M9/8tmuH2cn1ZFqukn3PExZv3aNhAX6OPOC7xoBALgFxTqScBlL0uxB/16uR0TQ== X-Received: by 2002:a05:6000:92:: with SMTP id m18mr20647210wrx.105.1572354131488; Tue, 29 Oct 2019 06:02:11 -0700 (PDT) Received: from ascain.dev.6wind.com. (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id m9sm1989056wro.66.2019.10.29.06.02.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Oct 2019 06:02:10 -0700 (PDT) From: Thierry Herbelot To: dev@dpdk.org Cc: Thomas Monjalon , Gagandeep Singh Date: Tue, 29 Oct 2019 14:01:51 +0100 Message-Id: <20191029130151.29879-1-thierry.herbelot@6wind.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] drivers/net: only compile PFE and ENETC when DPAA was selected 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" PFE and ENETC depend on DPAA features. Fixes: e56463ec47f0 ('net/enetc: enable dpaax library') Fixes: 67fc3ff97c39 ('net/pfe: introduce basic functions') Cc: Gagandeep Singh Signed-off-by: Thierry Herbelot --- drivers/net/Makefile | 4 ++++ mk/rte.app.mk | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/drivers/net/Makefile b/drivers/net/Makefile index cee30367a1c3..966133427276 100644 --- a/drivers/net/Makefile +++ b/drivers/net/Makefile @@ -25,7 +25,9 @@ DIRS-$(CONFIG_RTE_LIBRTE_DPAA2_PMD) += dpaa2 endif DIRS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000 DIRS-$(CONFIG_RTE_LIBRTE_ENA_PMD) += ena +ifeq ($(CONFIG_RTE_LIBRTE_DPAA_BUS),y) DIRS-$(CONFIG_RTE_LIBRTE_ENETC_PMD) += enetc +endif DIRS-$(CONFIG_RTE_LIBRTE_ENIC_PMD) += enic DIRS-$(CONFIG_RTE_LIBRTE_PMD_FAILSAFE) += failsafe DIRS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k @@ -50,7 +52,9 @@ DIRS-$(CONFIG_RTE_LIBRTE_PMD_NULL) += null DIRS-$(CONFIG_RTE_LIBRTE_OCTEONTX_PMD) += octeontx DIRS-$(CONFIG_RTE_LIBRTE_OCTEONTX2_PMD) += octeontx2 DIRS-$(CONFIG_RTE_LIBRTE_PMD_PCAP) += pcap +ifeq ($(CONFIG_RTE_LIBRTE_DPAA_BUS),y) DIRS-$(CONFIG_RTE_LIBRTE_PFE_PMD) += pfe +endif DIRS-$(CONFIG_RTE_LIBRTE_QEDE_PMD) += qede DIRS-$(CONFIG_RTE_LIBRTE_PMD_RING) += ring DIRS-$(CONFIG_RTE_LIBRTE_SFC_EFX_PMD) += sfc diff --git a/mk/rte.app.mk b/mk/rte.app.mk index 1f5c74841fb3..e440dffd7575 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -170,7 +170,9 @@ _LDLIBS-$(CONFIG_RTE_LIBRTE_DPAA2_PMD) += -lrte_pmd_dpaa2 endif _LDLIBS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += -lrte_pmd_e1000 _LDLIBS-$(CONFIG_RTE_LIBRTE_ENA_PMD) += -lrte_pmd_ena +ifeq ($(CONFIG_RTE_LIBRTE_DPAA_BUS),y) _LDLIBS-$(CONFIG_RTE_LIBRTE_ENETC_PMD) += -lrte_pmd_enetc +endif _LDLIBS-$(CONFIG_RTE_LIBRTE_ENIC_PMD) += -lrte_pmd_enic _LDLIBS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += -lrte_pmd_fm10k _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_FAILSAFE) += -lrte_pmd_failsafe @@ -204,7 +206,9 @@ _LDLIBS-$(CONFIG_RTE_LIBRTE_NFP_PMD) += -lrte_pmd_nfp _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_NULL) += -lrte_pmd_null _LDLIBS-$(CONFIG_RTE_LIBRTE_OCTEONTX2_PMD) += -lrte_pmd_octeontx2 -lm _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_PCAP) += -lrte_pmd_pcap -lpcap +ifeq ($(CONFIG_RTE_LIBRTE_DPAA_BUS),y) _LDLIBS-$(CONFIG_RTE_LIBRTE_PFE_PMD) += -lrte_pmd_pfe +endif _LDLIBS-$(CONFIG_RTE_LIBRTE_QEDE_PMD) += -lrte_pmd_qede _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_RING) += -lrte_pmd_ring ifeq ($(CONFIG_RTE_LIBRTE_SCHED),y) -- 2.20.1