blob: 0392153a0009b04455c49938f931784d47ad9544 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Dan Williams9d27a872015-07-10 14:07:03 -04002ldflags-y += --wrap=ioremap_wc
Ross Zwisler67a3e8f2015-08-27 13:14:20 -06003ldflags-y += --wrap=memremap
Dan Williams9d27a872015-07-10 14:07:03 -04004ldflags-y += --wrap=devm_ioremap_nocache
Christoph Hellwig708ab622015-08-10 23:07:08 -04005ldflags-y += --wrap=devm_memremap
Dan Williams32ab0a3f2015-08-01 02:16:37 -04006ldflags-y += --wrap=devm_memunmap
Dan Williams6bc75612015-06-17 17:23:32 -04007ldflags-y += --wrap=ioremap_nocache
8ldflags-y += --wrap=iounmap
Ross Zwisler67a3e8f2015-08-27 13:14:20 -06009ldflags-y += --wrap=memunmap
Christoph Hellwig708ab622015-08-10 23:07:08 -040010ldflags-y += --wrap=__devm_request_region
Dan Williams200c79d2016-03-22 00:22:16 -070011ldflags-y += --wrap=__devm_release_region
Dan Williams6bc75612015-06-17 17:23:32 -040012ldflags-y += --wrap=__request_region
13ldflags-y += --wrap=__release_region
Dan Williams979fccf2015-12-15 00:34:21 -080014ldflags-y += --wrap=devm_memremap_pages
Dan Williamsee8520f2016-06-15 20:34:17 -070015ldflags-y += --wrap=insert_resource
16ldflags-y += --wrap=remove_resource
Dan Williamsc14a8682016-08-18 22:15:04 -070017ldflags-y += --wrap=acpi_evaluate_object
Dan Williamsa7de92d2016-12-05 13:43:25 -080018ldflags-y += --wrap=acpi_evaluate_dsm
Dan Williams6bc75612015-06-17 17:23:32 -040019
20DRIVERS := ../../../drivers
21NVDIMM_SRC := $(DRIVERS)/nvdimm
Dan Williamsbdf97012016-07-23 21:24:19 -070022ACPI_SRC := $(DRIVERS)/acpi/nfit
Dan Williamsab68f262016-05-18 09:15:08 -070023DAX_SRC := $(DRIVERS)/dax
Dan Williamsf295e532016-06-17 11:08:06 -070024ccflags-y := -I$(src)/$(NVDIMM_SRC)/
Dan Williams6bc75612015-06-17 17:23:32 -040025
26obj-$(CONFIG_LIBNVDIMM) += libnvdimm.o
27obj-$(CONFIG_BLK_DEV_PMEM) += nd_pmem.o
28obj-$(CONFIG_ND_BTT) += nd_btt.o
29obj-$(CONFIG_ND_BLK) += nd_blk.o
Dan Williams7a678322015-08-19 00:34:34 -040030obj-$(CONFIG_X86_PMEM_LEGACY) += nd_e820.o
Dan Williams6bc75612015-06-17 17:23:32 -040031obj-$(CONFIG_ACPI_NFIT) += nfit.o
Dan Williams7b6be842017-04-11 09:49:49 -070032ifeq ($(CONFIG_DAX),m)
33obj-$(CONFIG_DAX) += dax.o
34endif
35obj-$(CONFIG_DEV_DAX) += device_dax.o
Dan Williamsab68f262016-05-18 09:15:08 -070036obj-$(CONFIG_DEV_DAX_PMEM) += dax_pmem.o
Dan Williams6bc75612015-06-17 17:23:32 -040037
Dan Williamsbdf97012016-07-23 21:24:19 -070038nfit-y := $(ACPI_SRC)/core.o
Vishal Verma6839a6d2016-07-23 21:51:21 -070039nfit-$(CONFIG_X86_MCE) += $(ACPI_SRC)/mce.o
Dan Williams0fb5c8d2018-02-01 12:28:54 -080040nfit-y += acpi_nfit_test.o
Dan Williams6bc75612015-06-17 17:23:32 -040041nfit-y += config_check.o
42
43nd_pmem-y := $(NVDIMM_SRC)/pmem.o
Dan Williamsf295e532016-06-17 11:08:06 -070044nd_pmem-y += pmem-dax.o
Dan Williams0fb5c8d2018-02-01 12:28:54 -080045nd_pmem-y += pmem_test.o
Dan Williams6bc75612015-06-17 17:23:32 -040046nd_pmem-y += config_check.o
47
48nd_btt-y := $(NVDIMM_SRC)/btt.o
49nd_btt-y += config_check.o
50
51nd_blk-y := $(NVDIMM_SRC)/blk.o
52nd_blk-y += config_check.o
53
Dan Williams7a678322015-08-19 00:34:34 -040054nd_e820-y := $(NVDIMM_SRC)/e820.o
55nd_e820-y += config_check.o
56
Dan Williams7b6be842017-04-11 09:49:49 -070057dax-y := $(DAX_SRC)/super.o
Dan Williamsab68f262016-05-18 09:15:08 -070058dax-y += config_check.o
59
Dan Williams7b6be842017-04-11 09:49:49 -070060device_dax-y := $(DAX_SRC)/device.o
Dan Williams73616362017-05-04 23:38:43 -070061device_dax-y += dax-dev.o
Dan Williams0fb5c8d2018-02-01 12:28:54 -080062device_dax-y += device_dax_test.o
Dan Williams7b6be842017-04-11 09:49:49 -070063device_dax-y += config_check.o
64
Dan Williamsab68f262016-05-18 09:15:08 -070065dax_pmem-y := $(DAX_SRC)/pmem.o
66dax_pmem-y += config_check.o
67
Dan Williams6bc75612015-06-17 17:23:32 -040068libnvdimm-y := $(NVDIMM_SRC)/core.o
69libnvdimm-y += $(NVDIMM_SRC)/bus.o
70libnvdimm-y += $(NVDIMM_SRC)/dimm_devs.o
71libnvdimm-y += $(NVDIMM_SRC)/dimm.o
72libnvdimm-y += $(NVDIMM_SRC)/region_devs.o
73libnvdimm-y += $(NVDIMM_SRC)/region.o
74libnvdimm-y += $(NVDIMM_SRC)/namespace_devs.o
75libnvdimm-y += $(NVDIMM_SRC)/label.o
Dave Jiangaa9ad442017-08-23 12:48:26 -070076libnvdimm-y += $(NVDIMM_SRC)/badrange.o
Dan Williamse1455742015-07-30 17:57:47 -040077libnvdimm-$(CONFIG_ND_CLAIM) += $(NVDIMM_SRC)/claim.o
Dan Williams6bc75612015-06-17 17:23:32 -040078libnvdimm-$(CONFIG_BTT) += $(NVDIMM_SRC)/btt_devs.o
Dan Williamse1455742015-07-30 17:57:47 -040079libnvdimm-$(CONFIG_NVDIMM_PFN) += $(NVDIMM_SRC)/pfn_devs.o
Dan Williamscd034122016-03-11 10:15:36 -080080libnvdimm-$(CONFIG_NVDIMM_DAX) += $(NVDIMM_SRC)/dax_devs.o
Dan Williams0fb5c8d2018-02-01 12:28:54 -080081libnvdimm-y += libnvdimm_test.o
Dan Williams6bc75612015-06-17 17:23:32 -040082libnvdimm-y += config_check.o
83
84obj-m += test/