xref: /openbmc/linux/tools/testing/nvdimm/Kbuild (revision 56a0eccd)
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=__request_region
11ldflags-y += --wrap=__release_region
12ldflags-y += --wrap=devm_memremap_pages
13ldflags-y += --wrap=phys_to_pfn_t
14
15DRIVERS := ../../../drivers
16NVDIMM_SRC := $(DRIVERS)/nvdimm
17ACPI_SRC := $(DRIVERS)/acpi
18
19obj-$(CONFIG_LIBNVDIMM) += libnvdimm.o
20obj-$(CONFIG_BLK_DEV_PMEM) += nd_pmem.o
21obj-$(CONFIG_ND_BTT) += nd_btt.o
22obj-$(CONFIG_ND_BLK) += nd_blk.o
23obj-$(CONFIG_X86_PMEM_LEGACY) += nd_e820.o
24obj-$(CONFIG_ACPI_NFIT) += nfit.o
25
26nfit-y := $(ACPI_SRC)/nfit.o
27nfit-y += config_check.o
28
29nd_pmem-y := $(NVDIMM_SRC)/pmem.o
30nd_pmem-y += config_check.o
31
32nd_btt-y := $(NVDIMM_SRC)/btt.o
33nd_btt-y += config_check.o
34
35nd_blk-y := $(NVDIMM_SRC)/blk.o
36nd_blk-y += config_check.o
37
38nd_e820-y := $(NVDIMM_SRC)/e820.o
39nd_e820-y += config_check.o
40
41libnvdimm-y := $(NVDIMM_SRC)/core.o
42libnvdimm-y += $(NVDIMM_SRC)/bus.o
43libnvdimm-y += $(NVDIMM_SRC)/dimm_devs.o
44libnvdimm-y += $(NVDIMM_SRC)/dimm.o
45libnvdimm-y += $(NVDIMM_SRC)/region_devs.o
46libnvdimm-y += $(NVDIMM_SRC)/region.o
47libnvdimm-y += $(NVDIMM_SRC)/namespace_devs.o
48libnvdimm-y += $(NVDIMM_SRC)/label.o
49libnvdimm-$(CONFIG_ND_CLAIM) += $(NVDIMM_SRC)/claim.o
50libnvdimm-$(CONFIG_BTT) += $(NVDIMM_SRC)/btt_devs.o
51libnvdimm-$(CONFIG_NVDIMM_PFN) += $(NVDIMM_SRC)/pfn_devs.o
52libnvdimm-y += config_check.o
53
54obj-m += test/
55