Makefile 715 B

12345678910111213141516171819202122232425262728293031
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # HFI driver
  4. #
  5. #
  6. #
  7. # Called from the kernel module build system.
  8. #
  9. obj-$(CONFIG_INFINIBAND_HFI1) += hfi1.o
  10. hfi1-y := affinity.o chip.o device.o driver.o efivar.o \
  11. eprom.o exp_rcv.o file_ops.o firmware.o \
  12. init.o intr.o mad.o mmu_rb.o pcie.o pio.o pio_copy.o platform.o \
  13. qp.o qsfp.o rc.o ruc.o sdma.o sysfs.o trace.o \
  14. uc.o ud.o user_exp_rcv.o user_pages.o user_sdma.o verbs.o \
  15. verbs_txreq.o vnic_main.o vnic_sdma.o
  16. ifdef CONFIG_DEBUG_FS
  17. hfi1-y += debugfs.o
  18. ifdef CONFIG_FAULT_INJECTION
  19. ifdef CONFIG_FAULT_INJECTION_DEBUG_FS
  20. hfi1-y += fault.o
  21. endif
  22. endif
  23. endif
  24. CFLAGS_trace.o = -I$(src)
  25. ifdef MVERSION
  26. CFLAGS_driver.o = -DHFI_DRIVER_VERSION_BASE=\"$(MVERSION)\"
  27. endif