xref: /linux/tools/testing/nvdimm/Kbuild (revision 74ce1896c6c65b2f8cccbf59162d542988835835)
1ldflags-y += --wrap=ioremap_wc
2ldflags-y += --wrap=memremap
3ldflags-y += --wrap=devm_ioremap_nocache
4ldflags-y += --wrap=devm_memremap
5ldflags-y += --wrap=devm_memunmap
6ldflags-y += --wrap=ioremap_nocache
7ldflags-y += --wrap=iounmap
8ldflags-y += --wrap=memunmap
9ldflags-y += --wrap=__devm_request_region
10ldflags-y += --wrap=__devm_release_region
11ldflags-y += --wrap=__request_region
12ldflags-y += --wrap=__release_region
13ldflags-y += --wrap=devm_memremap_pages
14ldflags-y += --wrap=insert_resource
15ldflags-y += --wrap=remove_resource
16ldflags-y += --wrap=acpi_evaluate_object
17ldflags-y += --wrap=acpi_evaluate_dsm
18
19DRIVERS := ../../../drivers
20NVDIMM_SRC := $(DRIVERS)/nvdimm
21ACPI_SRC := $(DRIVERS)/acpi/nfit
22DAX_SRC := $(DRIVERS)/dax
23ccflags-y := -I$(src)/$(NVDIMM_SRC)/
24
25obj-$(CONFIG_LIBNVDIMM) += libnvdimm.o
26obj-$(CONFIG_BLK_DEV_PMEM) += nd_pmem.o
27obj-$(CONFIG_ND_BTT) += nd_btt.o
28obj-$(CONFIG_ND_BLK) += nd_blk.o
29obj-$(CONFIG_X86_PMEM_LEGACY) += nd_e820.o
30obj-$(CONFIG_ACPI_NFIT) += nfit.o
31ifeq ($(CONFIG_DAX),m)
32obj-$(CONFIG_DAX) += dax.o
33endif
34obj-$(CONFIG_DEV_DAX) += device_dax.o
35obj-$(CONFIG_DEV_DAX_PMEM) += dax_pmem.o
36
37nfit-y := $(ACPI_SRC)/core.o
38nfit-$(CONFIG_X86_MCE) += $(ACPI_SRC)/mce.o
39nfit-y += config_check.o
40
41nd_pmem-y := $(NVDIMM_SRC)/pmem.o
42nd_pmem-y += pmem-dax.o
43nd_pmem-y += config_check.o
44
45nd_btt-y := $(NVDIMM_SRC)/btt.o
46nd_btt-y += config_check.o
47
48nd_blk-y := $(NVDIMM_SRC)/blk.o
49nd_blk-y += config_check.o
50
51nd_e820-y := $(NVDIMM_SRC)/e820.o
52nd_e820-y += config_check.o
53
54dax-y := $(DAX_SRC)/super.o
55dax-y += config_check.o
56
57device_dax-y := $(DAX_SRC)/device.o
58device_dax-y += dax-dev.o
59device_dax-y += config_check.o
60
61dax_pmem-y := $(DAX_SRC)/pmem.o
62dax_pmem-y += config_check.o
63
64libnvdimm-y := $(NVDIMM_SRC)/core.o
65libnvdimm-y += $(NVDIMM_SRC)/bus.o
66libnvdimm-y += $(NVDIMM_SRC)/dimm_devs.o
67libnvdimm-y += $(NVDIMM_SRC)/dimm.o
68libnvdimm-y += $(NVDIMM_SRC)/region_devs.o
69libnvdimm-y += $(NVDIMM_SRC)/region.o
70libnvdimm-y += $(NVDIMM_SRC)/namespace_devs.o
71libnvdimm-y += $(NVDIMM_SRC)/label.o
72libnvdimm-$(CONFIG_ND_CLAIM) += $(NVDIMM_SRC)/claim.o
73libnvdimm-$(CONFIG_BTT) += $(NVDIMM_SRC)/btt_devs.o
74libnvdimm-$(CONFIG_NVDIMM_PFN) += $(NVDIMM_SRC)/pfn_devs.o
75libnvdimm-$(CONFIG_NVDIMM_DAX) += $(NVDIMM_SRC)/dax_devs.o
76libnvdimm-y += config_check.o
77
78obj-m += test/
79