f9cf4f8641
Update the documents too. Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com> Signed-off-by: Qiming Yang <qiming.yang@intel.com> Signed-off-by: Xiaoyun Li <xiaoyun.li@intel.com> Signed-off-by: Jingjing Wu <jingjing.wu@intel.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com> Reviewed-by: Qi Zhang <qi.z.zhang@intel.com>
55 lines
1.3 KiB
Makefile
55 lines
1.3 KiB
Makefile
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright(c) 2018 Intel Corporation
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
#
|
|
# library name
|
|
#
|
|
LIB = librte_pmd_ice.a
|
|
|
|
CFLAGS += -O3
|
|
CFLAGS += $(WERROR_FLAGS)
|
|
|
|
LDLIBS += -lrte_eal -lrte_ethdev -lrte_kvargs -lrte_bus_pci
|
|
|
|
EXPORT_MAP := rte_pmd_ice_version.map
|
|
|
|
LIBABIVER := 1
|
|
|
|
#
|
|
# Add extra flags for base driver files (also known as shared code)
|
|
# to disable warnings
|
|
#
|
|
ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
|
|
CFLAGS_BASE_DRIVER +=
|
|
else ifeq ($(CONFIG_RTE_TOOLCHAIN_CLANG),y)
|
|
CFLAGS_BASE_DRIVER += -Wno-unused-parameter
|
|
CFLAGS_BASE_DRIVER += -Wno-unused-variable
|
|
else
|
|
CFLAGS_BASE_DRIVER += -Wno-unused-parameter
|
|
CFLAGS_BASE_DRIVER += -Wno-unused-variable
|
|
|
|
ifeq ($(shell test $(GCC_VERSION) -ge 44 && echo 1), 1)
|
|
CFLAGS_BASE_DRIVER += -Wno-unused-but-set-variable
|
|
endif
|
|
|
|
endif
|
|
OBJS_BASE_DRIVER=$(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c)))
|
|
$(foreach obj, $(OBJS_BASE_DRIVER), $(eval CFLAGS_$(obj)+=$(CFLAGS_BASE_DRIVER)))
|
|
|
|
VPATH += $(SRCDIR)/base
|
|
|
|
#
|
|
# all source are stored in SRCS-y
|
|
#
|
|
SRCS-$(CONFIG_RTE_LIBRTE_ICE_PMD) += ice_controlq.c
|
|
SRCS-$(CONFIG_RTE_LIBRTE_ICE_PMD) += ice_common.c
|
|
SRCS-$(CONFIG_RTE_LIBRTE_ICE_PMD) += ice_sched.c
|
|
SRCS-$(CONFIG_RTE_LIBRTE_ICE_PMD) += ice_switch.c
|
|
SRCS-$(CONFIG_RTE_LIBRTE_ICE_PMD) += ice_nvm.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_ICE_PMD) += ice_ethdev.c
|
|
|
|
include $(RTE_SDK)/mk/rte.lib.mk
|