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