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 2688CA04F9; Fri, 10 Jan 2020 04:02:57 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8F0191E876; Fri, 10 Jan 2020 04:02:46 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 71A901E86A for ; Fri, 10 Jan 2020 04:02:43 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Jan 2020 19:02:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,415,1571727600"; d="scan'208";a="236723910" Received: from unknown (HELO dpdk-zhangalvin-dev.sh.intel.com) ([10.240.179.50]) by orsmga002.jf.intel.com with ESMTP; 09 Jan 2020 19:02:40 -0800 From: alvinx.zhang@intel.com To: haiyue.wang@intel.com, qi.z.zhang@intel.com, beilei.xing@intel.com, xiaolong.ye@intel.com Cc: dev@dpdk.org, Alvin Zhang Date: Fri, 10 Jan 2020 11:00:21 +0800 Message-Id: <1578625225-110361-3-git-send-email-alvinx.zhang@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1578625225-110361-1-git-send-email-alvinx.zhang@intel.com> References: <1578625225-110361-1-git-send-email-alvinx.zhang@intel.com> Subject: [dpdk-dev] [RFC 3/7] drivers/net: add igc make 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: Alvin Zhang Add make files to igc PMD. Signed-off-by: Alvin Zhang --- drivers/net/Makefile | 1 + drivers/net/igc/Makefile | 83 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 drivers/net/igc/Makefile diff --git a/drivers/net/Makefile b/drivers/net/Makefile index cee3036..427a757 100644 --- a/drivers/net/Makefile +++ b/drivers/net/Makefile @@ -24,6 +24,7 @@ ifeq ($(CONFIG_RTE_EAL_VFIO)$(CONFIG_RTE_LIBRTE_FSLMC_BUS),yy) DIRS-$(CONFIG_RTE_LIBRTE_DPAA2_PMD) += dpaa2 endif DIRS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000 +DIRS-$(CONFIG_RTE_LIBRTE_IGC_PMD) += igc DIRS-$(CONFIG_RTE_LIBRTE_ENA_PMD) += ena DIRS-$(CONFIG_RTE_LIBRTE_ENETC_PMD) += enetc DIRS-$(CONFIG_RTE_LIBRTE_ENIC_PMD) += enic diff --git a/drivers/net/igc/Makefile b/drivers/net/igc/Makefile new file mode 100644 index 0000000..a167d73 --- /dev/null +++ b/drivers/net/igc/Makefile @@ -0,0 +1,83 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2010-2020 Intel Corporation + +include $(RTE_SDK)/mk/rte.vars.mk + +# +# library name +# +LIB = librte_pmd_igc.a + +CFLAGS += -O3 +CFLAGS += $(WERROR_FLAGS) +CFLAGS += -DALLOW_EXPERIMENTAL_API +LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring +LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs +LDLIBS += -lrte_bus_pci + +EXPORT_MAP := rte_pmd_igc_version.map + +LIBABIVER := 0 + +ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y) +# +# CFLAGS for icc +# +CFLAGS_BASE_DRIVER = -diag-disable 177 -diag-disable 181 +CFLAGS_BASE_DRIVER += -diag-disable 869 -diag-disable 2259 +else +# +# CFLAGS for gcc/clang +# +CFLAGS_BASE_DRIVER = -Wno-uninitialized -Wno-unused-parameter +CFLAGS_BASE_DRIVER += -Wno-unused-variable +ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y) +ifeq ($(shell test $(GCC_VERSION) -ge 60 && echo 1), 1) +CFLAGS_BASE_DRIVER += -Wno-misleading-indentation +ifeq ($(shell test $(GCC_VERSION) -ge 70 && echo 1), 1) +CFLAGS_BASE_DRIVER += -Wno-implicit-fallthrough +endif +endif +endif +endif + +# +# Add extra flags for base driver files (also known as shared code) +# to disable warnings in them +# +BASE_DRIVER_OBJS=$(sort $(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c)))) +$(foreach obj, $(BASE_DRIVER_OBJS), $(eval CFLAGS_$(obj)+=$(CFLAGS_BASE_DRIVER))) + +VPATH += $(SRCDIR)/base + +# +# all source are stored in SRCS-y +# +SRCS-$(CONFIG_RTE_LIBRTE_IGC_PMD) += e1000_80003es2lan.c +SRCS-$(CONFIG_RTE_LIBRTE_IGC_PMD) += e1000_82540.c +SRCS-$(CONFIG_RTE_LIBRTE_IGC_PMD) += e1000_82541.c +SRCS-$(CONFIG_RTE_LIBRTE_IGC_PMD) += e1000_82542.c +SRCS-$(CONFIG_RTE_LIBRTE_IGC_PMD) += e1000_82543.c +SRCS-$(CONFIG_RTE_LIBRTE_IGC_PMD) += e1000_82571.c +SRCS-$(CONFIG_RTE_LIBRTE_IGC_PMD) += e1000_82575.c +SRCS-$(CONFIG_RTE_LIBRTE_IGC_PMD) += e1000_api.c +SRCS-$(CONFIG_RTE_LIBRTE_IGC_PMD) += e1000_base.c +SRCS-$(CONFIG_RTE_LIBRTE_IGC_PMD) += e1000_i210.c +SRCS-$(CONFIG_RTE_LIBRTE_IGC_PMD) += e1000_i225.c +SRCS-$(CONFIG_RTE_LIBRTE_IGC_PMD) += e1000_ich8lan.c +SRCS-$(CONFIG_RTE_LIBRTE_IGC_PMD) += e1000_impl_guide.c +SRCS-$(CONFIG_RTE_LIBRTE_IGC_PMD) += e1000_mac.c +SRCS-$(CONFIG_RTE_LIBRTE_IGC_PMD) += e1000_manage.c +SRCS-$(CONFIG_RTE_LIBRTE_IGC_PMD) += e1000_mbx.c +SRCS-$(CONFIG_RTE_LIBRTE_IGC_PMD) += e1000_nvm.c +SRCS-$(CONFIG_RTE_LIBRTE_IGC_PMD) += e1000_osdep.c +SRCS-$(CONFIG_RTE_LIBRTE_IGC_PMD) += e1000_phy.c +SRCS-$(CONFIG_RTE_LIBRTE_IGC_PMD) += e1000_vf.c +SRCS-$(CONFIG_RTE_LIBRTE_IGC_PMD) += igc_ethdev.c +SRCS-$(CONFIG_RTE_LIBRTE_IGC_PMD) += igc_txrx.c +SRCS-$(CONFIG_RTE_LIBRTE_IGC_PMD) += igc_logs.c + +# install this header file +# SYMLINK-$(CONFIG_RTE_LIBRTE_IGC_PMD)-include := rte_pmd_igc.h + +include $(RTE_SDK)/mk/rte.lib.mk -- 1.8.3.1