1# SPDX-License-Identifier: GPL-2.0
2#
3# HFI driver
4#
5#
6#
7# Called from the kernel module build system.
8#
9obj-$(CONFIG_INFINIBAND_HFI1) += hfi1.o
10
11hfi1-y := \
12	affinity.o \
13	aspm.o \
14	chip.o \
15	device.o \
16	driver.o \
17	efivar.o \
18	eprom.o \
19	exp_rcv.o \
20	file_ops.o \
21	firmware.o \
22	init.o \
23	intr.o \
24	iowait.o \
25	ipoib_main.o \
26	ipoib_rx.o \
27	ipoib_tx.o \
28	mad.o \
29	mmu_rb.o \
30	msix.o \
31	netdev_rx.o \
32	opfn.o \
33	pcie.o \
34	pin_system.o \
35	pio.o \
36	pio_copy.o \
37	platform.o \
38	qp.o \
39	qsfp.o \
40	rc.o \
41	ruc.o \
42	sdma.o \
43	sysfs.o \
44	tid_rdma.o \
45	trace.o \
46	uc.o \
47	ud.o \
48	user_exp_rcv.o \
49	user_pages.o \
50	user_sdma.o \
51	verbs.o \
52	verbs_txreq.o \
53	vnic_main.o \
54	vnic_sdma.o
55
56ifdef CONFIG_DEBUG_FS
57hfi1-y += debugfs.o
58ifdef CONFIG_FAULT_INJECTION
59ifdef CONFIG_FAULT_INJECTION_DEBUG_FS
60hfi1-y += fault.o
61endif
62endif
63endif
64
65CFLAGS_trace.o = -I$(src)
66ifdef MVERSION
67CFLAGS_driver.o = -DHFI_DRIVER_VERSION_BASE=\"$(MVERSION)\"
68endif
69