blob: 62d5ac3c988ebde49b25ff99ae0053158c055d33 [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 Williams32ab0a3f2015-08-01 02:16:37 -04005ldflags-y += --wrap=devm_memunmap
Dan Williams6bc75612015-06-17 17:23:32 -04006ldflags-y += --wrap=ioremap_nocache
7ldflags-y += --wrap=iounmap
Ross Zwisler67a3e8f2015-08-27 13:14:20 -06008ldflags-y += --wrap=memunmap
Christoph Hellwig708ab622015-08-10 23:07:08 -04009ldflags-y += --wrap=__devm_request_region
Dan Williams200c79d2016-03-22 00:22:16 -070010ldflags-y += --wrap=__devm_release_region
Dan Williams6bc75612015-06-17 17:23:32 -040011ldflags-y += --wrap=__request_region
12ldflags-y += --wrap=__release_region
Dan Williams979fccf2015-12-15 00:34:21 -080013ldflags-y += --wrap=devm_memremap_pages
Dan Williamsee8520fe2016-06-15 20:34:17 -070014ldflags-y += --wrap=insert_resource
15ldflags-y += --wrap=remove_resource
Dan Williams6bc75612015-06-17 17:23:32 -040016
17DRIVERS := ../../../drivers
18NVDIMM_SRC := $(DRIVERS)/nvdimm
19ACPI_SRC := $(DRIVERS)/acpi
Dan Williamsab68f262016-05-18 09:15:08 -070020DAX_SRC := $(DRIVERS)/dax
Dan Williamsf295e532016-06-17 11:08:06 -070021ccflags-y := -I$(src)/$(NVDIMM_SRC)/
Dan Williams6bc75612015-06-17 17:23:32 -040022
23obj-$(CONFIG_LIBNVDIMM) += libnvdimm.o
24obj-$(CONFIG_BLK_DEV_PMEM) += nd_pmem.o
25obj-$(CONFIG_ND_BTT) += nd_btt.o
26obj-$(CONFIG_ND_BLK) += nd_blk.o
Dan Williams7a678322015-08-19 00:34:34 -040027obj-$(CONFIG_X86_PMEM_LEGACY) += nd_e820.o
Dan Williams6bc75612015-06-17 17:23:32 -040028obj-$(CONFIG_ACPI_NFIT) += nfit.o
Dan Williamsab68f262016-05-18 09:15:08 -070029obj-$(CONFIG_DEV_DAX) += dax.o
30obj-$(CONFIG_DEV_DAX_PMEM) += dax_pmem.o
Dan Williams6bc75612015-06-17 17:23:32 -040031
32nfit-y := $(ACPI_SRC)/nfit.o
33nfit-y += config_check.o
34
35nd_pmem-y := $(NVDIMM_SRC)/pmem.o
Dan Williamsf295e532016-06-17 11:08:06 -070036nd_pmem-y += pmem-dax.o
Dan Williams6bc75612015-06-17 17:23:32 -040037nd_pmem-y += config_check.o
38
39nd_btt-y := $(NVDIMM_SRC)/btt.o
40nd_btt-y += config_check.o
41
42nd_blk-y := $(NVDIMM_SRC)/blk.o
43nd_blk-y += config_check.o
44
Dan Williams7a678322015-08-19 00:34:34 -040045nd_e820-y := $(NVDIMM_SRC)/e820.o
46nd_e820-y += config_check.o
47
Dan Williamsab68f262016-05-18 09:15:08 -070048dax-y := $(DAX_SRC)/dax.o
49dax-y += config_check.o
50
51dax_pmem-y := $(DAX_SRC)/pmem.o
52dax_pmem-y += config_check.o
53
Dan Williams6bc75612015-06-17 17:23:32 -040054libnvdimm-y := $(NVDIMM_SRC)/core.o
55libnvdimm-y += $(NVDIMM_SRC)/bus.o
56libnvdimm-y += $(NVDIMM_SRC)/dimm_devs.o
57libnvdimm-y += $(NVDIMM_SRC)/dimm.o
58libnvdimm-y += $(NVDIMM_SRC)/region_devs.o
59libnvdimm-y += $(NVDIMM_SRC)/region.o
60libnvdimm-y += $(NVDIMM_SRC)/namespace_devs.o
61libnvdimm-y += $(NVDIMM_SRC)/label.o
Dan Williamse1455742015-07-30 17:57:47 -040062libnvdimm-$(CONFIG_ND_CLAIM) += $(NVDIMM_SRC)/claim.o
Dan Williams6bc75612015-06-17 17:23:32 -040063libnvdimm-$(CONFIG_BTT) += $(NVDIMM_SRC)/btt_devs.o
Dan Williamse1455742015-07-30 17:57:47 -040064libnvdimm-$(CONFIG_NVDIMM_PFN) += $(NVDIMM_SRC)/pfn_devs.o
Dan Williamscd034122016-03-11 10:15:36 -080065libnvdimm-$(CONFIG_NVDIMM_DAX) += $(NVDIMM_SRC)/dax_devs.o
Dan Williams6bc75612015-06-17 17:23:32 -040066libnvdimm-y += config_check.o
67
68obj-m += test/