fbaf943887
Since the library versioning for both stable and experimental ABI's is now managed globally, the LIBABIVER and version variables no longer serve any useful purpose, and can be removed. The replacement in Makefiles was done using the following regex: ^(#.*\n)?LIBABIVER\s*:=\s*\d+\n(\s*\n)? (LIBABIVER := numbers, optionally preceded by a comment and optionally succeeded by an empty line) The replacement for meson files was done using the following regex: ^(#.*\n)?version\s*=\s*\d+\n(\s*\n)? (version = numbers, optionally preceded by a comment and optionally succeeded by an empty line) [David]: those variables are manually removed for the files: - drivers/common/qat/Makefile - lib/librte_eal/meson.build [David]: the LIBABIVER is restored for the external ethtool example library. Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com> Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Thomas Monjalon <thomas@monjalon.net>
110 lines
3.5 KiB
Makefile
110 lines
3.5 KiB
Makefile
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright (c) 2016 - 2018 Cavium Inc.
|
|
# All rights reserved.
|
|
# www.cavium.com
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
#
|
|
# library name
|
|
#
|
|
LIB = librte_pmd_qede.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_qede_version.map
|
|
|
|
#
|
|
# OS
|
|
#
|
|
OS_TYPE := $(shell uname -s)
|
|
|
|
#
|
|
# CFLAGS
|
|
#
|
|
CFLAGS_BASE_DRIVER = -Wno-unused-parameter
|
|
CFLAGS_BASE_DRIVER += -Wno-sign-compare
|
|
CFLAGS_BASE_DRIVER += -Wno-missing-prototypes
|
|
CFLAGS_BASE_DRIVER += -Wno-cast-qual
|
|
CFLAGS_BASE_DRIVER += -Wno-unused-function
|
|
CFLAGS_BASE_DRIVER += -Wno-unused-variable
|
|
CFLAGS_BASE_DRIVER += -Wno-strict-aliasing
|
|
CFLAGS_BASE_DRIVER += -Wno-missing-prototypes
|
|
|
|
ifneq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
|
|
CFLAGS_BASE_DRIVER += -Wno-unused-value
|
|
CFLAGS_BASE_DRIVER += -Wno-format-nonliteral
|
|
ifeq ($(OS_TYPE),Linux)
|
|
ifeq ($(shell clang -Wno-shift-negative-value -Werror -E - < /dev/null > /dev/null 2>&1; echo $$?),0)
|
|
CFLAGS_BASE_DRIVER += -Wno-shift-negative-value
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
|
|
ifeq ($(shell test $(GCC_VERSION) -ge 44 && echo 1), 1)
|
|
CFLAGS_BASE_DRIVER += -Wno-unused-but-set-variable
|
|
endif
|
|
CFLAGS_BASE_DRIVER += -Wno-missing-declarations
|
|
ifeq ($(shell test $(GCC_VERSION) -ge 46 && echo 1), 1)
|
|
CFLAGS_BASE_DRIVER += -Wno-maybe-uninitialized
|
|
endif
|
|
CFLAGS_BASE_DRIVER += -Wno-strict-prototypes
|
|
ifeq ($(shell test $(GCC_VERSION) -ge 60 && echo 1), 1)
|
|
CFLAGS_BASE_DRIVER += -Wno-shift-negative-value
|
|
ifeq ($(shell test $(GCC_VERSION) -ge 70 && echo 1), 1)
|
|
CFLAGS_BASE_DRIVER += -Wno-implicit-fallthrough
|
|
endif
|
|
endif
|
|
else ifeq ($(CONFIG_RTE_TOOLCHAIN_CLANG),y)
|
|
CFLAGS_BASE_DRIVER += -Wno-format-extra-args
|
|
CFLAGS_BASE_DRIVER += -Wno-visibility
|
|
CFLAGS_BASE_DRIVER += -Wno-empty-body
|
|
CFLAGS_BASE_DRIVER += -Wno-invalid-source-encoding
|
|
CFLAGS_BASE_DRIVER += -Wno-sometimes-uninitialized
|
|
ifeq ($(shell clang -Wno-pointer-bool-conversion -Werror -E - < /dev/null > /dev/null 2>&1; echo $$?),0)
|
|
CFLAGS_BASE_DRIVER += -Wno-pointer-bool-conversion
|
|
endif
|
|
else #ICC
|
|
CFLAGS_qede_ethdev.o += -diag-disable 279 #279: controlling expression is constant
|
|
endif
|
|
|
|
#
|
|
# Add extra flags for base ecore driver files
|
|
# 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_QEDE_PMD) += ecore_dev.c
|
|
SRCS-$(CONFIG_RTE_LIBRTE_QEDE_PMD) += ecore_hw.c
|
|
SRCS-$(CONFIG_RTE_LIBRTE_QEDE_PMD) += ecore_cxt.c
|
|
SRCS-$(CONFIG_RTE_LIBRTE_QEDE_PMD) += ecore_l2.c
|
|
SRCS-$(CONFIG_RTE_LIBRTE_QEDE_PMD) += ecore_sp_commands.c
|
|
SRCS-$(CONFIG_RTE_LIBRTE_QEDE_PMD) += ecore_init_fw_funcs.c
|
|
SRCS-$(CONFIG_RTE_LIBRTE_QEDE_PMD) += ecore_spq.c
|
|
SRCS-$(CONFIG_RTE_LIBRTE_QEDE_PMD) += ecore_init_ops.c
|
|
SRCS-$(CONFIG_RTE_LIBRTE_QEDE_PMD) += ecore_mcp.c
|
|
SRCS-$(CONFIG_RTE_LIBRTE_QEDE_PMD) += ecore_int.c
|
|
SRCS-$(CONFIG_RTE_LIBRTE_QEDE_PMD) += ecore_dcbx.c
|
|
SRCS-$(CONFIG_RTE_LIBRTE_QEDE_PMD) += bcm_osal.c
|
|
SRCS-$(CONFIG_RTE_LIBRTE_QEDE_PMD) += ecore_sriov.c
|
|
SRCS-$(CONFIG_RTE_LIBRTE_QEDE_PMD) += ecore_vf.c
|
|
SRCS-$(CONFIG_RTE_LIBRTE_QEDE_PMD) += qede_ethdev.c
|
|
SRCS-$(CONFIG_RTE_LIBRTE_QEDE_PMD) += qede_main.c
|
|
SRCS-$(CONFIG_RTE_LIBRTE_QEDE_PMD) += qede_rxtx.c
|
|
SRCS-$(CONFIG_RTE_LIBRTE_QEDE_PMD) += qede_filter.c
|
|
|
|
include $(RTE_SDK)/mk/rte.lib.mk
|