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