1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(C) 2019 Marvell International Ltd.
5 include $(RTE_SDK)/mk/rte.vars.mk
10 LIB = librte_common_octeontx2.a
12 CFLAGS += $(WERROR_FLAGS)
13 CFLAGS += -I$(RTE_SDK)/drivers/common/octeontx2
14 CFLAGS += -I$(RTE_SDK)/drivers/mempool/octeontx2
15 CFLAGS += -I$(RTE_SDK)/drivers/bus/pci
17 ifneq ($(CONFIG_RTE_ARCH_64),y)
18 CFLAGS += -Wno-int-to-pointer-cast
19 CFLAGS += -Wno-pointer-to-int-cast
22 EXPORT_MAP := rte_common_octeontx2_version.map
27 # all source are stored in SRCS-y
32 SRCS-y += otx2_common.c
35 LDLIBS += -lrte_ethdev
37 include $(RTE_SDK)/mk/rte.lib.mk