Dan Williams | 9d27a87 | 2015-07-10 14:07:03 -0400 | [diff] [blame] | 1 | ldflags-y += --wrap=ioremap_wc |
Ross Zwisler | 67a3e8f | 2015-08-27 13:14:20 -0600 | [diff] [blame] | 2 | ldflags-y += --wrap=memremap |
Dan Williams | 9d27a87 | 2015-07-10 14:07:03 -0400 | [diff] [blame] | 3 | ldflags-y += --wrap=devm_ioremap_nocache |
Christoph Hellwig | 708ab62 | 2015-08-10 23:07:08 -0400 | [diff] [blame] | 4 | ldflags-y += --wrap=devm_memremap |
Dan Williams | 32ab0a3f | 2015-08-01 02:16:37 -0400 | [diff] [blame] | 5 | ldflags-y += --wrap=devm_memunmap |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 6 | ldflags-y += --wrap=ioremap_nocache |
| 7 | ldflags-y += --wrap=iounmap |
Ross Zwisler | 67a3e8f | 2015-08-27 13:14:20 -0600 | [diff] [blame] | 8 | ldflags-y += --wrap=memunmap |
Christoph Hellwig | 708ab62 | 2015-08-10 23:07:08 -0400 | [diff] [blame] | 9 | ldflags-y += --wrap=__devm_request_region |
Dan Williams | 200c79d | 2016-03-22 00:22:16 -0700 | [diff] [blame] | 10 | ldflags-y += --wrap=__devm_release_region |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 11 | ldflags-y += --wrap=__request_region |
| 12 | ldflags-y += --wrap=__release_region |
Dan Williams | 979fccf | 2015-12-15 00:34:21 -0800 | [diff] [blame] | 13 | ldflags-y += --wrap=devm_memremap_pages |
Dan Williams | ee8520fe | 2016-06-15 20:34:17 -0700 | [diff] [blame^] | 14 | ldflags-y += --wrap=insert_resource |
| 15 | ldflags-y += --wrap=remove_resource |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 16 | |
| 17 | DRIVERS := ../../../drivers |
| 18 | NVDIMM_SRC := $(DRIVERS)/nvdimm |
| 19 | ACPI_SRC := $(DRIVERS)/acpi |
Dan Williams | ab68f26 | 2016-05-18 09:15:08 -0700 | [diff] [blame] | 20 | DAX_SRC := $(DRIVERS)/dax |
Dan Williams | f295e53 | 2016-06-17 11:08:06 -0700 | [diff] [blame] | 21 | ccflags-y := -I$(src)/$(NVDIMM_SRC)/ |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 22 | |
| 23 | obj-$(CONFIG_LIBNVDIMM) += libnvdimm.o |
| 24 | obj-$(CONFIG_BLK_DEV_PMEM) += nd_pmem.o |
| 25 | obj-$(CONFIG_ND_BTT) += nd_btt.o |
| 26 | obj-$(CONFIG_ND_BLK) += nd_blk.o |
Dan Williams | 7a67832 | 2015-08-19 00:34:34 -0400 | [diff] [blame] | 27 | obj-$(CONFIG_X86_PMEM_LEGACY) += nd_e820.o |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 28 | obj-$(CONFIG_ACPI_NFIT) += nfit.o |
Dan Williams | ab68f26 | 2016-05-18 09:15:08 -0700 | [diff] [blame] | 29 | obj-$(CONFIG_DEV_DAX) += dax.o |
| 30 | obj-$(CONFIG_DEV_DAX_PMEM) += dax_pmem.o |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 31 | |
| 32 | nfit-y := $(ACPI_SRC)/nfit.o |
| 33 | nfit-y += config_check.o |
| 34 | |
| 35 | nd_pmem-y := $(NVDIMM_SRC)/pmem.o |
Dan Williams | f295e53 | 2016-06-17 11:08:06 -0700 | [diff] [blame] | 36 | nd_pmem-y += pmem-dax.o |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 37 | nd_pmem-y += config_check.o |
| 38 | |
| 39 | nd_btt-y := $(NVDIMM_SRC)/btt.o |
| 40 | nd_btt-y += config_check.o |
| 41 | |
| 42 | nd_blk-y := $(NVDIMM_SRC)/blk.o |
| 43 | nd_blk-y += config_check.o |
| 44 | |
Dan Williams | 7a67832 | 2015-08-19 00:34:34 -0400 | [diff] [blame] | 45 | nd_e820-y := $(NVDIMM_SRC)/e820.o |
| 46 | nd_e820-y += config_check.o |
| 47 | |
Dan Williams | ab68f26 | 2016-05-18 09:15:08 -0700 | [diff] [blame] | 48 | dax-y := $(DAX_SRC)/dax.o |
| 49 | dax-y += config_check.o |
| 50 | |
| 51 | dax_pmem-y := $(DAX_SRC)/pmem.o |
| 52 | dax_pmem-y += config_check.o |
| 53 | |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 54 | libnvdimm-y := $(NVDIMM_SRC)/core.o |
| 55 | libnvdimm-y += $(NVDIMM_SRC)/bus.o |
| 56 | libnvdimm-y += $(NVDIMM_SRC)/dimm_devs.o |
| 57 | libnvdimm-y += $(NVDIMM_SRC)/dimm.o |
| 58 | libnvdimm-y += $(NVDIMM_SRC)/region_devs.o |
| 59 | libnvdimm-y += $(NVDIMM_SRC)/region.o |
| 60 | libnvdimm-y += $(NVDIMM_SRC)/namespace_devs.o |
| 61 | libnvdimm-y += $(NVDIMM_SRC)/label.o |
Dan Williams | e145574 | 2015-07-30 17:57:47 -0400 | [diff] [blame] | 62 | libnvdimm-$(CONFIG_ND_CLAIM) += $(NVDIMM_SRC)/claim.o |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 63 | libnvdimm-$(CONFIG_BTT) += $(NVDIMM_SRC)/btt_devs.o |
Dan Williams | e145574 | 2015-07-30 17:57:47 -0400 | [diff] [blame] | 64 | libnvdimm-$(CONFIG_NVDIMM_PFN) += $(NVDIMM_SRC)/pfn_devs.o |
Dan Williams | cd03412 | 2016-03-11 10:15:36 -0800 | [diff] [blame] | 65 | libnvdimm-$(CONFIG_NVDIMM_DAX) += $(NVDIMM_SRC)/dax_devs.o |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 66 | libnvdimm-y += config_check.o |
| 67 | |
| 68 | obj-m += test/ |