blob: 4adfa9cdf26f28ca7ffab65281bd8b7f4bad8254 [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 Williams6bc75612015-06-17 17:23:32 -040014
15DRIVERS := ../../../drivers
16NVDIMM_SRC := $(DRIVERS)/nvdimm
17ACPI_SRC := $(DRIVERS)/acpi
Dan Williamsab68f262016-05-18 09:15:08 -070018DAX_SRC := $(DRIVERS)/dax
Dan Williamsf295e532016-06-17 11:08:06 -070019ccflags-y := -I$(src)/$(NVDIMM_SRC)/
Dan Williams6bc75612015-06-17 17:23:32 -040020
21obj-$(CONFIG_LIBNVDIMM) += libnvdimm.o
22obj-$(CONFIG_BLK_DEV_PMEM) += nd_pmem.o
23obj-$(CONFIG_ND_BTT) += nd_btt.o
24obj-$(CONFIG_ND_BLK) += nd_blk.o
Dan Williams7a678322015-08-19 00:34:34 -040025obj-$(CONFIG_X86_PMEM_LEGACY) += nd_e820.o
Dan Williams6bc75612015-06-17 17:23:32 -040026obj-$(CONFIG_ACPI_NFIT) += nfit.o
Dan Williamsab68f262016-05-18 09:15:08 -070027obj-$(CONFIG_DEV_DAX) += dax.o
28obj-$(CONFIG_DEV_DAX_PMEM) += dax_pmem.o
Dan Williams6bc75612015-06-17 17:23:32 -040029
30nfit-y := $(ACPI_SRC)/nfit.o
31nfit-y += config_check.o
32
33nd_pmem-y := $(NVDIMM_SRC)/pmem.o
Dan Williamsf295e532016-06-17 11:08:06 -070034nd_pmem-y += pmem-dax.o
Dan Williams6bc75612015-06-17 17:23:32 -040035nd_pmem-y += config_check.o
36
37nd_btt-y := $(NVDIMM_SRC)/btt.o
38nd_btt-y += config_check.o
39
40nd_blk-y := $(NVDIMM_SRC)/blk.o
41nd_blk-y += config_check.o
42
Dan Williams7a678322015-08-19 00:34:34 -040043nd_e820-y := $(NVDIMM_SRC)/e820.o
44nd_e820-y += config_check.o
45
Dan Williamsab68f262016-05-18 09:15:08 -070046dax-y := $(DAX_SRC)/dax.o
47dax-y += config_check.o
48
49dax_pmem-y := $(DAX_SRC)/pmem.o
50dax_pmem-y += config_check.o
51
Dan Williams6bc75612015-06-17 17:23:32 -040052libnvdimm-y := $(NVDIMM_SRC)/core.o
53libnvdimm-y += $(NVDIMM_SRC)/bus.o
54libnvdimm-y += $(NVDIMM_SRC)/dimm_devs.o
55libnvdimm-y += $(NVDIMM_SRC)/dimm.o
56libnvdimm-y += $(NVDIMM_SRC)/region_devs.o
57libnvdimm-y += $(NVDIMM_SRC)/region.o
58libnvdimm-y += $(NVDIMM_SRC)/namespace_devs.o
59libnvdimm-y += $(NVDIMM_SRC)/label.o
Dan Williamse1455742015-07-30 17:57:47 -040060libnvdimm-$(CONFIG_ND_CLAIM) += $(NVDIMM_SRC)/claim.o
Dan Williams6bc75612015-06-17 17:23:32 -040061libnvdimm-$(CONFIG_BTT) += $(NVDIMM_SRC)/btt_devs.o
Dan Williamse1455742015-07-30 17:57:47 -040062libnvdimm-$(CONFIG_NVDIMM_PFN) += $(NVDIMM_SRC)/pfn_devs.o
Dan Williamscd034122016-03-11 10:15:36 -080063libnvdimm-$(CONFIG_NVDIMM_DAX) += $(NVDIMM_SRC)/dax_devs.o
Dan Williams6bc75612015-06-17 17:23:32 -040064libnvdimm-y += config_check.o
65
66obj-m += test/