2017-12-19 15:49:01 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2010-2015 Intel Corporation
|
2012-09-04 13:54:00 +01:00
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
|
|
|
|
#
|
|
|
|
# library name
|
|
|
|
#
|
2012-12-20 00:00:00 +01:00
|
|
|
LIB = librte_pmd_e1000.a
|
2012-09-04 13:54:00 +01:00
|
|
|
|
|
|
|
CFLAGS += -O3
|
|
|
|
CFLAGS += $(WERROR_FLAGS)
|
2017-10-12 18:04:21 +02:00
|
|
|
LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
|
|
|
|
LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs
|
2017-10-26 12:06:08 +02:00
|
|
|
LDLIBS += -lrte_bus_pci
|
2012-09-04 13:54:00 +01:00
|
|
|
|
2015-02-02 12:40:20 -05:00
|
|
|
EXPORT_MAP := rte_pmd_e1000_version.map
|
|
|
|
|
2015-02-02 12:40:21 -05:00
|
|
|
LIBABIVER := 1
|
|
|
|
|
2016-05-26 16:50:14 +05:30
|
|
|
ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
|
2013-06-03 00:00:00 +00:00
|
|
|
#
|
|
|
|
# CFLAGS for icc
|
|
|
|
#
|
2014-06-24 10:03:02 +02:00
|
|
|
CFLAGS_BASE_DRIVER = -wd177 -wd181 -wd188 -wd869 -wd2259
|
2013-06-03 00:00:00 +00:00
|
|
|
else
|
|
|
|
#
|
2016-05-26 20:36:39 +09:00
|
|
|
# CFLAGS for gcc/clang
|
2013-06-03 00:00:00 +00:00
|
|
|
#
|
2014-06-24 10:03:02 +02:00
|
|
|
CFLAGS_BASE_DRIVER = -Wno-uninitialized -Wno-unused-parameter
|
|
|
|
CFLAGS_BASE_DRIVER += -Wno-unused-variable
|
2016-05-26 20:36:39 +09:00
|
|
|
ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
|
2016-03-30 10:06:36 -04:00
|
|
|
ifeq ($(shell test $(GCC_VERSION) -ge 60 && echo 1), 1)
|
|
|
|
CFLAGS_BASE_DRIVER += -Wno-misleading-indentation
|
2017-05-04 16:38:14 +01:00
|
|
|
ifeq ($(shell test $(GCC_VERSION) -ge 70 && echo 1), 1)
|
|
|
|
CFLAGS_BASE_DRIVER += -Wno-implicit-fallthrough
|
|
|
|
endif
|
2016-03-30 10:06:36 -04:00
|
|
|
endif
|
2013-06-03 00:00:00 +00:00
|
|
|
endif
|
2016-05-26 20:36:39 +09:00
|
|
|
endif
|
2013-06-03 00:00:00 +00:00
|
|
|
|
|
|
|
#
|
2014-06-24 10:03:02 +02:00
|
|
|
# Add extra flags for base driver files (also known as shared code)
|
|
|
|
# to disable warnings in them
|
2013-06-03 00:00:00 +00:00
|
|
|
#
|
2017-10-12 14:15:52 +01:00
|
|
|
BASE_DRIVER_OBJS=$(sort $(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c))))
|
2014-06-24 10:03:02 +02:00
|
|
|
$(foreach obj, $(BASE_DRIVER_OBJS), $(eval CFLAGS_$(obj)+=$(CFLAGS_BASE_DRIVER)))
|
2013-06-03 00:00:00 +00:00
|
|
|
|
2015-05-15 16:56:49 +01:00
|
|
|
VPATH += $(SRCDIR)/base
|
2012-12-20 00:00:00 +01:00
|
|
|
|
2012-09-04 13:54:00 +01:00
|
|
|
#
|
|
|
|
# all source are stored in SRCS-y
|
|
|
|
#
|
2012-12-20 00:00:00 +01:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_80003es2lan.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_82540.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_82541.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_82542.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_82543.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_82571.c
|
2012-12-20 00:00:00 +01:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_82575.c
|
2012-12-20 00:00:00 +01:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_i210.c
|
2012-12-20 00:00:00 +01:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_api.c
|
2012-12-20 00:00:00 +01:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_ich8lan.c
|
2012-12-20 00:00:00 +01:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_mac.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_manage.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_mbx.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_nvm.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_osdep.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_phy.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000_vf.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_IGB_PMD) += igb_ethdev.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_IGB_PMD) += igb_rxtx.c
|
2013-11-08 03:00:00 +01:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_IGB_PMD) += igb_pf.c
|
2017-06-12 14:48:22 +08:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_IGB_PMD) += igb_flow.c
|
2012-12-20 00:00:00 +01:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_EM_PMD) += em_ethdev.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_EM_PMD) += em_rxtx.c
|
2012-09-04 13:54:00 +01:00
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.lib.mk
|