Kbuild 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ldflags-y += --wrap=ioremap_cache
  2. ldflags-y += --wrap=ioremap_nocache
  3. ldflags-y += --wrap=iounmap
  4. ldflags-y += --wrap=__request_region
  5. ldflags-y += --wrap=__release_region
  6. DRIVERS := ../../../drivers
  7. NVDIMM_SRC := $(DRIVERS)/nvdimm
  8. ACPI_SRC := $(DRIVERS)/acpi
  9. obj-$(CONFIG_LIBNVDIMM) += libnvdimm.o
  10. obj-$(CONFIG_BLK_DEV_PMEM) += nd_pmem.o
  11. obj-$(CONFIG_ND_BTT) += nd_btt.o
  12. obj-$(CONFIG_ND_BLK) += nd_blk.o
  13. obj-$(CONFIG_ACPI_NFIT) += nfit.o
  14. nfit-y := $(ACPI_SRC)/nfit.o
  15. nfit-y += config_check.o
  16. nd_pmem-y := $(NVDIMM_SRC)/pmem.o
  17. nd_pmem-y += config_check.o
  18. nd_btt-y := $(NVDIMM_SRC)/btt.o
  19. nd_btt-y += config_check.o
  20. nd_blk-y := $(NVDIMM_SRC)/blk.o
  21. nd_blk-y += config_check.o
  22. libnvdimm-y := $(NVDIMM_SRC)/core.o
  23. libnvdimm-y += $(NVDIMM_SRC)/bus.o
  24. libnvdimm-y += $(NVDIMM_SRC)/dimm_devs.o
  25. libnvdimm-y += $(NVDIMM_SRC)/dimm.o
  26. libnvdimm-y += $(NVDIMM_SRC)/region_devs.o
  27. libnvdimm-y += $(NVDIMM_SRC)/region.o
  28. libnvdimm-y += $(NVDIMM_SRC)/namespace_devs.o
  29. libnvdimm-y += $(NVDIMM_SRC)/label.o
  30. libnvdimm-$(CONFIG_BTT) += $(NVDIMM_SRC)/btt_devs.o
  31. libnvdimm-y += config_check.o
  32. obj-m += test/