blob: 94a5e0eda2d21884517ea96521d56a2c581d4012 [file] [log] [blame]
Dan Williams9d27a872015-07-10 14:07:03 -04001ldflags-y += --wrap=ioremap_wc
Ross Zwisler67a3e8f2015-08-27 13:14:20 -06002ldflags-y += --wrap=memremap
Dan Williams9d27a872015-07-10 14:07:03 -04003ldflags-y += --wrap=devm_ioremap_nocache
Christoph Hellwig708ab622015-08-10 23:07:08 -04004ldflags-y += --wrap=devm_memremap
Dan Williams6bc75612015-06-17 17:23:32 -04005ldflags-y += --wrap=ioremap_nocache
6ldflags-y += --wrap=iounmap
Ross Zwisler67a3e8f2015-08-27 13:14:20 -06007ldflags-y += --wrap=memunmap
Christoph Hellwig708ab622015-08-10 23:07:08 -04008ldflags-y += --wrap=__devm_request_region
Dan Williams6bc75612015-06-17 17:23:32 -04009ldflags-y += --wrap=__request_region
10ldflags-y += --wrap=__release_region
11
12DRIVERS := ../../../drivers
13NVDIMM_SRC := $(DRIVERS)/nvdimm
14ACPI_SRC := $(DRIVERS)/acpi
15
16obj-$(CONFIG_LIBNVDIMM) += libnvdimm.o
17obj-$(CONFIG_BLK_DEV_PMEM) += nd_pmem.o
18obj-$(CONFIG_ND_BTT) += nd_btt.o
19obj-$(CONFIG_ND_BLK) += nd_blk.o
20obj-$(CONFIG_ACPI_NFIT) += nfit.o
21
22nfit-y := $(ACPI_SRC)/nfit.o
23nfit-y += config_check.o
24
25nd_pmem-y := $(NVDIMM_SRC)/pmem.o
26nd_pmem-y += config_check.o
27
28nd_btt-y := $(NVDIMM_SRC)/btt.o
29nd_btt-y += config_check.o
30
31nd_blk-y := $(NVDIMM_SRC)/blk.o
32nd_blk-y += config_check.o
33
34libnvdimm-y := $(NVDIMM_SRC)/core.o
35libnvdimm-y += $(NVDIMM_SRC)/bus.o
36libnvdimm-y += $(NVDIMM_SRC)/dimm_devs.o
37libnvdimm-y += $(NVDIMM_SRC)/dimm.o
38libnvdimm-y += $(NVDIMM_SRC)/region_devs.o
39libnvdimm-y += $(NVDIMM_SRC)/region.o
40libnvdimm-y += $(NVDIMM_SRC)/namespace_devs.o
41libnvdimm-y += $(NVDIMM_SRC)/label.o
42libnvdimm-$(CONFIG_BTT) += $(NVDIMM_SRC)/btt_devs.o
43libnvdimm-y += config_check.o
44
45obj-m += test/