blob: 8e9b64520ec1096c4ffe508970fe41db36fe04e6 [file] [log] [blame]
Dan Williams6bc75612015-06-17 17:23:32 -04001ldflags-y += --wrap=ioremap_cache
2ldflags-y += --wrap=ioremap_nocache
3ldflags-y += --wrap=iounmap
4ldflags-y += --wrap=__request_region
5ldflags-y += --wrap=__release_region
6
7DRIVERS := ../../../drivers
8NVDIMM_SRC := $(DRIVERS)/nvdimm
9ACPI_SRC := $(DRIVERS)/acpi
10
11obj-$(CONFIG_LIBNVDIMM) += libnvdimm.o
12obj-$(CONFIG_BLK_DEV_PMEM) += nd_pmem.o
13obj-$(CONFIG_ND_BTT) += nd_btt.o
14obj-$(CONFIG_ND_BLK) += nd_blk.o
15obj-$(CONFIG_ACPI_NFIT) += nfit.o
16
17nfit-y := $(ACPI_SRC)/nfit.o
18nfit-y += config_check.o
19
20nd_pmem-y := $(NVDIMM_SRC)/pmem.o
21nd_pmem-y += config_check.o
22
23nd_btt-y := $(NVDIMM_SRC)/btt.o
24nd_btt-y += config_check.o
25
26nd_blk-y := $(NVDIMM_SRC)/blk.o
27nd_blk-y += config_check.o
28
29libnvdimm-y := $(NVDIMM_SRC)/core.o
30libnvdimm-y += $(NVDIMM_SRC)/bus.o
31libnvdimm-y += $(NVDIMM_SRC)/dimm_devs.o
32libnvdimm-y += $(NVDIMM_SRC)/dimm.o
33libnvdimm-y += $(NVDIMM_SRC)/region_devs.o
34libnvdimm-y += $(NVDIMM_SRC)/region.o
35libnvdimm-y += $(NVDIMM_SRC)/namespace_devs.o
36libnvdimm-y += $(NVDIMM_SRC)/label.o
37libnvdimm-$(CONFIG_BTT) += $(NVDIMM_SRC)/btt_devs.o
38libnvdimm-y += config_check.o
39
40obj-m += test/