Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Dan Williams | 9d27a87 | 2015-07-10 14:07:03 -0400 | [diff] [blame] | 2 | ldflags-y += --wrap=ioremap_wc |
Ross Zwisler | 67a3e8f | 2015-08-27 13:14:20 -0600 | [diff] [blame] | 3 | ldflags-y += --wrap=memremap |
Dan Williams | 9d27a87 | 2015-07-10 14:07:03 -0400 | [diff] [blame] | 4 | ldflags-y += --wrap=devm_ioremap_nocache |
Christoph Hellwig | 708ab62 | 2015-08-10 23:07:08 -0400 | [diff] [blame] | 5 | ldflags-y += --wrap=devm_memremap |
Dan Williams | 32ab0a3f | 2015-08-01 02:16:37 -0400 | [diff] [blame] | 6 | ldflags-y += --wrap=devm_memunmap |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 7 | ldflags-y += --wrap=ioremap_nocache |
| 8 | ldflags-y += --wrap=iounmap |
Ross Zwisler | 67a3e8f | 2015-08-27 13:14:20 -0600 | [diff] [blame] | 9 | ldflags-y += --wrap=memunmap |
Christoph Hellwig | 708ab62 | 2015-08-10 23:07:08 -0400 | [diff] [blame] | 10 | ldflags-y += --wrap=__devm_request_region |
Dan Williams | 200c79d | 2016-03-22 00:22:16 -0700 | [diff] [blame] | 11 | ldflags-y += --wrap=__devm_release_region |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 12 | ldflags-y += --wrap=__request_region |
| 13 | ldflags-y += --wrap=__release_region |
Dan Williams | 979fccf | 2015-12-15 00:34:21 -0800 | [diff] [blame] | 14 | ldflags-y += --wrap=devm_memremap_pages |
Dan Williams | ee8520f | 2016-06-15 20:34:17 -0700 | [diff] [blame] | 15 | ldflags-y += --wrap=insert_resource |
| 16 | ldflags-y += --wrap=remove_resource |
Dan Williams | c14a868 | 2016-08-18 22:15:04 -0700 | [diff] [blame] | 17 | ldflags-y += --wrap=acpi_evaluate_object |
Dan Williams | a7de92d | 2016-12-05 13:43:25 -0800 | [diff] [blame] | 18 | ldflags-y += --wrap=acpi_evaluate_dsm |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 19 | |
| 20 | DRIVERS := ../../../drivers |
| 21 | NVDIMM_SRC := $(DRIVERS)/nvdimm |
Dan Williams | bdf9701 | 2016-07-23 21:24:19 -0700 | [diff] [blame] | 22 | ACPI_SRC := $(DRIVERS)/acpi/nfit |
Dan Williams | ab68f26 | 2016-05-18 09:15:08 -0700 | [diff] [blame] | 23 | DAX_SRC := $(DRIVERS)/dax |
Dan Williams | f295e53 | 2016-06-17 11:08:06 -0700 | [diff] [blame] | 24 | ccflags-y := -I$(src)/$(NVDIMM_SRC)/ |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 25 | |
| 26 | obj-$(CONFIG_LIBNVDIMM) += libnvdimm.o |
| 27 | obj-$(CONFIG_BLK_DEV_PMEM) += nd_pmem.o |
| 28 | obj-$(CONFIG_ND_BTT) += nd_btt.o |
| 29 | obj-$(CONFIG_ND_BLK) += nd_blk.o |
Dan Williams | 7a67832 | 2015-08-19 00:34:34 -0400 | [diff] [blame] | 30 | obj-$(CONFIG_X86_PMEM_LEGACY) += nd_e820.o |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 31 | obj-$(CONFIG_ACPI_NFIT) += nfit.o |
Dan Williams | 7b6be84 | 2017-04-11 09:49:49 -0700 | [diff] [blame] | 32 | ifeq ($(CONFIG_DAX),m) |
| 33 | obj-$(CONFIG_DAX) += dax.o |
| 34 | endif |
| 35 | obj-$(CONFIG_DEV_DAX) += device_dax.o |
Dan Williams | ab68f26 | 2016-05-18 09:15:08 -0700 | [diff] [blame] | 36 | obj-$(CONFIG_DEV_DAX_PMEM) += dax_pmem.o |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 37 | |
Dan Williams | bdf9701 | 2016-07-23 21:24:19 -0700 | [diff] [blame] | 38 | nfit-y := $(ACPI_SRC)/core.o |
Vishal Verma | 6839a6d | 2016-07-23 21:51:21 -0700 | [diff] [blame] | 39 | nfit-$(CONFIG_X86_MCE) += $(ACPI_SRC)/mce.o |
Dan Williams | 0fb5c8d | 2018-02-01 12:28:54 -0800 | [diff] [blame^] | 40 | nfit-y += acpi_nfit_test.o |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 41 | nfit-y += config_check.o |
| 42 | |
| 43 | nd_pmem-y := $(NVDIMM_SRC)/pmem.o |
Dan Williams | f295e53 | 2016-06-17 11:08:06 -0700 | [diff] [blame] | 44 | nd_pmem-y += pmem-dax.o |
Dan Williams | 0fb5c8d | 2018-02-01 12:28:54 -0800 | [diff] [blame^] | 45 | nd_pmem-y += pmem_test.o |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 46 | nd_pmem-y += config_check.o |
| 47 | |
| 48 | nd_btt-y := $(NVDIMM_SRC)/btt.o |
| 49 | nd_btt-y += config_check.o |
| 50 | |
| 51 | nd_blk-y := $(NVDIMM_SRC)/blk.o |
| 52 | nd_blk-y += config_check.o |
| 53 | |
Dan Williams | 7a67832 | 2015-08-19 00:34:34 -0400 | [diff] [blame] | 54 | nd_e820-y := $(NVDIMM_SRC)/e820.o |
| 55 | nd_e820-y += config_check.o |
| 56 | |
Dan Williams | 7b6be84 | 2017-04-11 09:49:49 -0700 | [diff] [blame] | 57 | dax-y := $(DAX_SRC)/super.o |
Dan Williams | ab68f26 | 2016-05-18 09:15:08 -0700 | [diff] [blame] | 58 | dax-y += config_check.o |
| 59 | |
Dan Williams | 7b6be84 | 2017-04-11 09:49:49 -0700 | [diff] [blame] | 60 | device_dax-y := $(DAX_SRC)/device.o |
Dan Williams | 7361636 | 2017-05-04 23:38:43 -0700 | [diff] [blame] | 61 | device_dax-y += dax-dev.o |
Dan Williams | 0fb5c8d | 2018-02-01 12:28:54 -0800 | [diff] [blame^] | 62 | device_dax-y += device_dax_test.o |
Dan Williams | 7b6be84 | 2017-04-11 09:49:49 -0700 | [diff] [blame] | 63 | device_dax-y += config_check.o |
| 64 | |
Dan Williams | ab68f26 | 2016-05-18 09:15:08 -0700 | [diff] [blame] | 65 | dax_pmem-y := $(DAX_SRC)/pmem.o |
| 66 | dax_pmem-y += config_check.o |
| 67 | |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 68 | libnvdimm-y := $(NVDIMM_SRC)/core.o |
| 69 | libnvdimm-y += $(NVDIMM_SRC)/bus.o |
| 70 | libnvdimm-y += $(NVDIMM_SRC)/dimm_devs.o |
| 71 | libnvdimm-y += $(NVDIMM_SRC)/dimm.o |
| 72 | libnvdimm-y += $(NVDIMM_SRC)/region_devs.o |
| 73 | libnvdimm-y += $(NVDIMM_SRC)/region.o |
| 74 | libnvdimm-y += $(NVDIMM_SRC)/namespace_devs.o |
| 75 | libnvdimm-y += $(NVDIMM_SRC)/label.o |
Dave Jiang | aa9ad44 | 2017-08-23 12:48:26 -0700 | [diff] [blame] | 76 | libnvdimm-y += $(NVDIMM_SRC)/badrange.o |
Dan Williams | e145574 | 2015-07-30 17:57:47 -0400 | [diff] [blame] | 77 | libnvdimm-$(CONFIG_ND_CLAIM) += $(NVDIMM_SRC)/claim.o |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 78 | libnvdimm-$(CONFIG_BTT) += $(NVDIMM_SRC)/btt_devs.o |
Dan Williams | e145574 | 2015-07-30 17:57:47 -0400 | [diff] [blame] | 79 | libnvdimm-$(CONFIG_NVDIMM_PFN) += $(NVDIMM_SRC)/pfn_devs.o |
Dan Williams | cd03412 | 2016-03-11 10:15:36 -0800 | [diff] [blame] | 80 | libnvdimm-$(CONFIG_NVDIMM_DAX) += $(NVDIMM_SRC)/dax_devs.o |
Dan Williams | 0fb5c8d | 2018-02-01 12:28:54 -0800 | [diff] [blame^] | 81 | libnvdimm-y += libnvdimm_test.o |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 82 | libnvdimm-y += config_check.o |
| 83 | |
| 84 | obj-m += test/ |