xref: /openbmc/linux/tools/testing/nvdimm/Kbuild (revision c51d39010a1bccc9c1294e2d7c00005aefeb2b5c)
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
17
18DRIVERS := ../../../drivers
19NVDIMM_SRC := $(DRIVERS)/nvdimm
20ACPI_SRC := $(DRIVERS)/acpi/nfit
21DAX_SRC := $(DRIVERS)/dax
22ccflags-y := -I$(src)/$(NVDIMM_SRC)/
23
24obj-$(CONFIG_LIBNVDIMM) += libnvdimm.o
25obj-$(CONFIG_BLK_DEV_PMEM) += nd_pmem.o
26obj-$(CONFIG_ND_BTT) += nd_btt.o
27obj-$(CONFIG_ND_BLK) += nd_blk.o
28obj-$(CONFIG_X86_PMEM_LEGACY) += nd_e820.o
29obj-$(CONFIG_ACPI_NFIT) += nfit.o
30obj-$(CONFIG_DEV_DAX) += dax.o
31obj-$(CONFIG_DEV_DAX_PMEM) += dax_pmem.o
32
33nfit-y := $(ACPI_SRC)/core.o
34nfit-$(CONFIG_X86_MCE) += $(ACPI_SRC)/mce.o
35nfit-y += config_check.o
36
37nd_pmem-y := $(NVDIMM_SRC)/pmem.o
38nd_pmem-y += pmem-dax.o
39nd_pmem-y += config_check.o
40
41nd_btt-y := $(NVDIMM_SRC)/btt.o
42nd_btt-y += config_check.o
43
44nd_blk-y := $(NVDIMM_SRC)/blk.o
45nd_blk-y += config_check.o
46
47nd_e820-y := $(NVDIMM_SRC)/e820.o
48nd_e820-y += config_check.o
49
50dax-y := $(DAX_SRC)/dax.o
51dax-y += config_check.o
52
53dax_pmem-y := $(DAX_SRC)/pmem.o
54dax_pmem-y += config_check.o
55
56libnvdimm-y := $(NVDIMM_SRC)/core.o
57libnvdimm-y += $(NVDIMM_SRC)/bus.o
58libnvdimm-y += $(NVDIMM_SRC)/dimm_devs.o
59libnvdimm-y += $(NVDIMM_SRC)/dimm.o
60libnvdimm-y += $(NVDIMM_SRC)/region_devs.o
61libnvdimm-y += $(NVDIMM_SRC)/region.o
62libnvdimm-y += $(NVDIMM_SRC)/namespace_devs.o
63libnvdimm-y += $(NVDIMM_SRC)/label.o
64libnvdimm-$(CONFIG_ND_CLAIM) += $(NVDIMM_SRC)/claim.o
65libnvdimm-$(CONFIG_BTT) += $(NVDIMM_SRC)/btt_devs.o
66libnvdimm-$(CONFIG_NVDIMM_PFN) += $(NVDIMM_SRC)/pfn_devs.o
67libnvdimm-$(CONFIG_NVDIMM_DAX) += $(NVDIMM_SRC)/dax_devs.o
68libnvdimm-y += config_check.o
69
70obj-m += test/
71