Dan Williams | 9d27a87 | 2015-07-10 14:07:03 -0400 | [diff] [blame] | 1 | ldflags-y += --wrap=ioremap_wc |
Ross Zwisler | 67a3e8f | 2015-08-27 13:14:20 -0600 | [diff] [blame^] | 2 | ldflags-y += --wrap=memremap |
Dan Williams | 9d27a87 | 2015-07-10 14:07:03 -0400 | [diff] [blame] | 3 | ldflags-y += --wrap=devm_ioremap_nocache |
Christoph Hellwig | 708ab62 | 2015-08-10 23:07:08 -0400 | [diff] [blame] | 4 | ldflags-y += --wrap=devm_memremap |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 5 | ldflags-y += --wrap=ioremap_nocache |
| 6 | ldflags-y += --wrap=iounmap |
Ross Zwisler | 67a3e8f | 2015-08-27 13:14:20 -0600 | [diff] [blame^] | 7 | ldflags-y += --wrap=memunmap |
Christoph Hellwig | 708ab62 | 2015-08-10 23:07:08 -0400 | [diff] [blame] | 8 | ldflags-y += --wrap=__devm_request_region |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 9 | ldflags-y += --wrap=__request_region |
| 10 | ldflags-y += --wrap=__release_region |
| 11 | |
| 12 | DRIVERS := ../../../drivers |
| 13 | NVDIMM_SRC := $(DRIVERS)/nvdimm |
| 14 | ACPI_SRC := $(DRIVERS)/acpi |
| 15 | |
| 16 | obj-$(CONFIG_LIBNVDIMM) += libnvdimm.o |
| 17 | obj-$(CONFIG_BLK_DEV_PMEM) += nd_pmem.o |
| 18 | obj-$(CONFIG_ND_BTT) += nd_btt.o |
| 19 | obj-$(CONFIG_ND_BLK) += nd_blk.o |
| 20 | obj-$(CONFIG_ACPI_NFIT) += nfit.o |
| 21 | |
| 22 | nfit-y := $(ACPI_SRC)/nfit.o |
| 23 | nfit-y += config_check.o |
| 24 | |
| 25 | nd_pmem-y := $(NVDIMM_SRC)/pmem.o |
| 26 | nd_pmem-y += config_check.o |
| 27 | |
| 28 | nd_btt-y := $(NVDIMM_SRC)/btt.o |
| 29 | nd_btt-y += config_check.o |
| 30 | |
| 31 | nd_blk-y := $(NVDIMM_SRC)/blk.o |
| 32 | nd_blk-y += config_check.o |
| 33 | |
| 34 | libnvdimm-y := $(NVDIMM_SRC)/core.o |
| 35 | libnvdimm-y += $(NVDIMM_SRC)/bus.o |
| 36 | libnvdimm-y += $(NVDIMM_SRC)/dimm_devs.o |
| 37 | libnvdimm-y += $(NVDIMM_SRC)/dimm.o |
| 38 | libnvdimm-y += $(NVDIMM_SRC)/region_devs.o |
| 39 | libnvdimm-y += $(NVDIMM_SRC)/region.o |
| 40 | libnvdimm-y += $(NVDIMM_SRC)/namespace_devs.o |
| 41 | libnvdimm-y += $(NVDIMM_SRC)/label.o |
| 42 | libnvdimm-$(CONFIG_BTT) += $(NVDIMM_SRC)/btt_devs.o |
| 43 | libnvdimm-y += config_check.o |
| 44 | |
| 45 | obj-m += test/ |