Kbuild 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. # SPDX-License-Identifier: GPL-2.0
  2. ldflags-y += --wrap=ioremap_wc
  3. ldflags-y += --wrap=memremap
  4. ldflags-y += --wrap=devm_ioremap_nocache
  5. ldflags-y += --wrap=devm_memremap
  6. ldflags-y += --wrap=devm_memunmap
  7. ldflags-y += --wrap=ioremap_nocache
  8. ldflags-y += --wrap=iounmap
  9. ldflags-y += --wrap=memunmap
  10. ldflags-y += --wrap=__devm_request_region
  11. ldflags-y += --wrap=__devm_release_region
  12. ldflags-y += --wrap=__request_region
  13. ldflags-y += --wrap=__release_region
  14. ldflags-y += --wrap=devm_memremap_pages
  15. ldflags-y += --wrap=insert_resource
  16. ldflags-y += --wrap=remove_resource
  17. ldflags-y += --wrap=acpi_evaluate_object
  18. ldflags-y += --wrap=acpi_evaluate_dsm
  19. DRIVERS := ../../../drivers
  20. NVDIMM_SRC := $(DRIVERS)/nvdimm
  21. ACPI_SRC := $(DRIVERS)/acpi/nfit
  22. DAX_SRC := $(DRIVERS)/dax
  23. ccflags-y := -I$(src)/$(NVDIMM_SRC)/
  24. obj-$(CONFIG_LIBNVDIMM) += libnvdimm.o
  25. obj-$(CONFIG_BLK_DEV_PMEM) += nd_pmem.o
  26. obj-$(CONFIG_ND_BTT) += nd_btt.o
  27. obj-$(CONFIG_ND_BLK) += nd_blk.o
  28. obj-$(CONFIG_X86_PMEM_LEGACY) += nd_e820.o
  29. obj-$(CONFIG_ACPI_NFIT) += nfit.o
  30. ifeq ($(CONFIG_DAX),m)
  31. obj-$(CONFIG_DAX) += dax.o
  32. endif
  33. obj-$(CONFIG_DEV_DAX) += device_dax.o
  34. obj-$(CONFIG_DEV_DAX_PMEM) += dax_pmem.o
  35. nfit-y := $(ACPI_SRC)/core.o
  36. nfit-$(CONFIG_X86_MCE) += $(ACPI_SRC)/mce.o
  37. nfit-y += acpi_nfit_test.o
  38. nfit-y += config_check.o
  39. nd_pmem-y := $(NVDIMM_SRC)/pmem.o
  40. nd_pmem-y += pmem-dax.o
  41. nd_pmem-y += pmem_test.o
  42. nd_pmem-y += config_check.o
  43. nd_btt-y := $(NVDIMM_SRC)/btt.o
  44. nd_btt-y += config_check.o
  45. nd_blk-y := $(NVDIMM_SRC)/blk.o
  46. nd_blk-y += config_check.o
  47. nd_e820-y := $(NVDIMM_SRC)/e820.o
  48. nd_e820-y += config_check.o
  49. dax-y := $(DAX_SRC)/super.o
  50. dax-y += config_check.o
  51. device_dax-y := $(DAX_SRC)/device.o
  52. device_dax-y += dax-dev.o
  53. device_dax-y += device_dax_test.o
  54. device_dax-y += config_check.o
  55. dax_pmem-y := $(DAX_SRC)/pmem.o
  56. dax_pmem-y += config_check.o
  57. libnvdimm-y := $(NVDIMM_SRC)/core.o
  58. libnvdimm-y += $(NVDIMM_SRC)/bus.o
  59. libnvdimm-y += $(NVDIMM_SRC)/dimm_devs.o
  60. libnvdimm-y += $(NVDIMM_SRC)/dimm.o
  61. libnvdimm-y += $(NVDIMM_SRC)/region_devs.o
  62. libnvdimm-y += $(NVDIMM_SRC)/region.o
  63. libnvdimm-y += $(NVDIMM_SRC)/namespace_devs.o
  64. libnvdimm-y += $(NVDIMM_SRC)/label.o
  65. libnvdimm-y += $(NVDIMM_SRC)/badrange.o
  66. libnvdimm-$(CONFIG_ND_CLAIM) += $(NVDIMM_SRC)/claim.o
  67. libnvdimm-$(CONFIG_BTT) += $(NVDIMM_SRC)/btt_devs.o
  68. libnvdimm-$(CONFIG_NVDIMM_PFN) += $(NVDIMM_SRC)/pfn_devs.o
  69. libnvdimm-$(CONFIG_NVDIMM_DAX) += $(NVDIMM_SRC)/dax_devs.o
  70. libnvdimm-y += libnvdimm_test.o
  71. libnvdimm-y += config_check.o
  72. obj-m += test/