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 | c14a868 | 2016-08-18 22:15:04 -0700 | [diff] [blame^] | 16 | ldflags-y += --wrap=acpi_evaluate_object |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 17 | |
| 18 | DRIVERS := ../../../drivers |
| 19 | NVDIMM_SRC := $(DRIVERS)/nvdimm |
Dan Williams | bdf9701 | 2016-07-23 21:24:19 -0700 | [diff] [blame] | 20 | ACPI_SRC := $(DRIVERS)/acpi/nfit |
Dan Williams | ab68f26 | 2016-05-18 09:15:08 -0700 | [diff] [blame] | 21 | DAX_SRC := $(DRIVERS)/dax |
Dan Williams | f295e53 | 2016-06-17 11:08:06 -0700 | [diff] [blame] | 22 | ccflags-y := -I$(src)/$(NVDIMM_SRC)/ |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 23 | |
| 24 | obj-$(CONFIG_LIBNVDIMM) += libnvdimm.o |
| 25 | obj-$(CONFIG_BLK_DEV_PMEM) += nd_pmem.o |
| 26 | obj-$(CONFIG_ND_BTT) += nd_btt.o |
| 27 | obj-$(CONFIG_ND_BLK) += nd_blk.o |
Dan Williams | 7a67832 | 2015-08-19 00:34:34 -0400 | [diff] [blame] | 28 | obj-$(CONFIG_X86_PMEM_LEGACY) += nd_e820.o |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 29 | obj-$(CONFIG_ACPI_NFIT) += nfit.o |
Dan Williams | ab68f26 | 2016-05-18 09:15:08 -0700 | [diff] [blame] | 30 | obj-$(CONFIG_DEV_DAX) += dax.o |
| 31 | obj-$(CONFIG_DEV_DAX_PMEM) += dax_pmem.o |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 32 | |
Dan Williams | bdf9701 | 2016-07-23 21:24:19 -0700 | [diff] [blame] | 33 | nfit-y := $(ACPI_SRC)/core.o |
Vishal Verma | 6839a6d | 2016-07-23 21:51:21 -0700 | [diff] [blame] | 34 | nfit-$(CONFIG_X86_MCE) += $(ACPI_SRC)/mce.o |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 35 | nfit-y += config_check.o |
| 36 | |
| 37 | nd_pmem-y := $(NVDIMM_SRC)/pmem.o |
Dan Williams | f295e53 | 2016-06-17 11:08:06 -0700 | [diff] [blame] | 38 | nd_pmem-y += pmem-dax.o |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 39 | nd_pmem-y += config_check.o |
| 40 | |
| 41 | nd_btt-y := $(NVDIMM_SRC)/btt.o |
| 42 | nd_btt-y += config_check.o |
| 43 | |
| 44 | nd_blk-y := $(NVDIMM_SRC)/blk.o |
| 45 | nd_blk-y += config_check.o |
| 46 | |
Dan Williams | 7a67832 | 2015-08-19 00:34:34 -0400 | [diff] [blame] | 47 | nd_e820-y := $(NVDIMM_SRC)/e820.o |
| 48 | nd_e820-y += config_check.o |
| 49 | |
Dan Williams | ab68f26 | 2016-05-18 09:15:08 -0700 | [diff] [blame] | 50 | dax-y := $(DAX_SRC)/dax.o |
| 51 | dax-y += config_check.o |
| 52 | |
| 53 | dax_pmem-y := $(DAX_SRC)/pmem.o |
| 54 | dax_pmem-y += config_check.o |
| 55 | |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 56 | libnvdimm-y := $(NVDIMM_SRC)/core.o |
| 57 | libnvdimm-y += $(NVDIMM_SRC)/bus.o |
| 58 | libnvdimm-y += $(NVDIMM_SRC)/dimm_devs.o |
| 59 | libnvdimm-y += $(NVDIMM_SRC)/dimm.o |
| 60 | libnvdimm-y += $(NVDIMM_SRC)/region_devs.o |
| 61 | libnvdimm-y += $(NVDIMM_SRC)/region.o |
| 62 | libnvdimm-y += $(NVDIMM_SRC)/namespace_devs.o |
| 63 | libnvdimm-y += $(NVDIMM_SRC)/label.o |
Dan Williams | e145574 | 2015-07-30 17:57:47 -0400 | [diff] [blame] | 64 | libnvdimm-$(CONFIG_ND_CLAIM) += $(NVDIMM_SRC)/claim.o |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 65 | libnvdimm-$(CONFIG_BTT) += $(NVDIMM_SRC)/btt_devs.o |
Dan Williams | e145574 | 2015-07-30 17:57:47 -0400 | [diff] [blame] | 66 | libnvdimm-$(CONFIG_NVDIMM_PFN) += $(NVDIMM_SRC)/pfn_devs.o |
Dan Williams | cd03412 | 2016-03-11 10:15:36 -0800 | [diff] [blame] | 67 | libnvdimm-$(CONFIG_NVDIMM_DAX) += $(NVDIMM_SRC)/dax_devs.o |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 68 | libnvdimm-y += config_check.o |
| 69 | |
| 70 | obj-m += test/ |