2019-06-22 18:53:51 +05:30
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(C) 2019 Marvell International Ltd.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
|
|
|
|
#
|
|
|
|
# library name
|
|
|
|
#
|
|
|
|
LIB = librte_common_octeontx2.a
|
|
|
|
|
|
|
|
CFLAGS += $(WERROR_FLAGS)
|
|
|
|
CFLAGS += -I$(RTE_SDK)/drivers/common/octeontx2
|
2019-06-22 18:54:07 +05:30
|
|
|
CFLAGS += -I$(RTE_SDK)/drivers/mempool/octeontx2
|
2019-06-22 18:53:57 +05:30
|
|
|
CFLAGS += -I$(RTE_SDK)/drivers/bus/pci
|
2019-06-22 18:53:51 +05:30
|
|
|
|
|
|
|
ifneq ($(CONFIG_RTE_ARCH_64),y)
|
|
|
|
CFLAGS += -Wno-int-to-pointer-cast
|
|
|
|
CFLAGS += -Wno-pointer-to-int-cast
|
2019-07-01 23:33:46 +05:30
|
|
|
ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
|
|
|
|
CFLAGS += -diag-disable 2259
|
|
|
|
endif
|
2019-06-22 18:53:51 +05:30
|
|
|
endif
|
|
|
|
|
|
|
|
EXPORT_MAP := rte_common_octeontx2_version.map
|
|
|
|
|
|
|
|
LIBABIVER := 1
|
|
|
|
|
|
|
|
#
|
|
|
|
# all source are stored in SRCS-y
|
|
|
|
#
|
2019-06-22 18:53:57 +05:30
|
|
|
SRCS-y += otx2_dev.c
|
2019-06-22 18:53:58 +05:30
|
|
|
SRCS-y += otx2_irq.c
|
2019-06-22 18:53:51 +05:30
|
|
|
SRCS-y += otx2_mbox.c
|
2019-06-22 18:53:55 +05:30
|
|
|
SRCS-y += otx2_common.c
|
2019-06-22 18:53:51 +05:30
|
|
|
|
|
|
|
LDLIBS += -lrte_eal
|
|
|
|
LDLIBS += -lrte_ethdev
|
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.lib.mk
|