raw/octeontx2_ep: add build infra and device probe
[dpdk.git] / drivers / raw / octeontx2_ep / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(C) 2019 Marvell International Ltd.
3 #
4
5 include $(RTE_SDK)/mk/rte.vars.mk
6
7 # Library name
8 LIB = librte_rawdev_octeontx2_ep.a
9
10 # Build flags
11 CFLAGS += -O3
12 CFLAGS += $(WERROR_FLAGS)
13
14 CFLAGS += -I$(RTE_SDK)/drivers/common/octeontx2/
15 CFLAGS += -I$(RTE_SDK)/drivers/raw/octeontx2_ep/
16
17 LDLIBS += -lrte_eal
18 LDLIBS += -lrte_rawdev
19 LDLIBS += -lrte_bus_pci
20 LDLIBS += -lrte_mempool
21 LDLIBS += -lrte_common_octeontx2
22
23 ifneq ($(CONFIG_RTE_ARCH_64),y)
24 CFLAGS += -Wno-int-to-pointer-cast
25 CFLAGS += -Wno-pointer-to-int-cast
26 ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
27 CFLAGS += -diag-disable 2259
28 endif
29 endif
30
31 EXPORT_MAP := rte_rawdev_octeontx2_ep_version.map
32
33 LIBABIVER := 1
34
35 #
36 # All source are stored in SRCS-y
37 #
38 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_EP_RAWDEV) += otx2_ep_rawdev.c
39
40 include $(RTE_SDK)/mk/rte.lib.mk