Kbuild 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. ldflags-y += --wrap=ioremap_wc
  2. ldflags-y += --wrap=memremap
  3. ldflags-y += --wrap=devm_ioremap_nocache
  4. ldflags-y += --wrap=devm_memremap
  5. ldflags-y += --wrap=devm_memunmap
  6. ldflags-y += --wrap=ioremap_nocache
  7. ldflags-y += --wrap=iounmap
  8. ldflags-y += --wrap=memunmap
  9. ldflags-y += --wrap=__devm_request_region
  10. ldflags-y += --wrap=__request_region
  11. ldflags-y += --wrap=__release_region
  12. DRIVERS := ../../../drivers
  13. NVDIMM_SRC := $(DRIVERS)/nvdimm
  14. ACPI_SRC := $(DRIVERS)/acpi
  15. obj-$(CONFIG_LIBNVDIMM) += libnvdimm.o
  16. obj-$(CONFIG_BLK_DEV_PMEM) += nd_pmem.o
  17. obj-$(CONFIG_ND_BTT) += nd_btt.o
  18. obj-$(CONFIG_ND_BLK) += nd_blk.o
  19. obj-$(CONFIG_X86_PMEM_LEGACY) += nd_e820.o
  20. obj-$(CONFIG_ACPI_NFIT) += nfit.o
  21. nfit-y := $(ACPI_SRC)/nfit.o
  22. nfit-y += config_check.o
  23. nd_pmem-y := $(NVDIMM_SRC)/pmem.o
  24. nd_pmem-y += config_check.o
  25. nd_btt-y := $(NVDIMM_SRC)/btt.o
  26. nd_btt-y += config_check.o
  27. nd_blk-y := $(NVDIMM_SRC)/blk.o
  28. nd_blk-y += config_check.o
  29. nd_e820-y := $(NVDIMM_SRC)/e820.o
  30. nd_e820-y += config_check.o
  31. libnvdimm-y := $(NVDIMM_SRC)/core.o
  32. libnvdimm-y += $(NVDIMM_SRC)/bus.o
  33. libnvdimm-y += $(NVDIMM_SRC)/dimm_devs.o
  34. libnvdimm-y += $(NVDIMM_SRC)/dimm.o
  35. libnvdimm-y += $(NVDIMM_SRC)/region_devs.o
  36. libnvdimm-y += $(NVDIMM_SRC)/region.o
  37. libnvdimm-y += $(NVDIMM_SRC)/namespace_devs.o
  38. libnvdimm-y += $(NVDIMM_SRC)/label.o
  39. libnvdimm-$(CONFIG_ND_CLAIM) += $(NVDIMM_SRC)/claim.o
  40. libnvdimm-$(CONFIG_BTT) += $(NVDIMM_SRC)/btt_devs.o
  41. libnvdimm-$(CONFIG_NVDIMM_PFN) += $(NVDIMM_SRC)/pfn_devs.o
  42. libnvdimm-y += config_check.o
  43. obj-m += test/