Kbuild 2.3 KB
Newer Older
1
ldflags-y += --wrap=ioremap_wc
2
ldflags-y += --wrap=memremap
3
ldflags-y += --wrap=devm_ioremap_nocache
4
ldflags-y += --wrap=devm_memremap
5
ldflags-y += --wrap=devm_memunmap
6 7
ldflags-y += --wrap=ioremap_nocache
ldflags-y += --wrap=iounmap
8
ldflags-y += --wrap=memunmap
9
ldflags-y += --wrap=__devm_request_region
10
ldflags-y += --wrap=__devm_release_region
11 12
ldflags-y += --wrap=__request_region
ldflags-y += --wrap=__release_region
13
ldflags-y += --wrap=devm_memremap_pages
14 15
ldflags-y += --wrap=insert_resource
ldflags-y += --wrap=remove_resource
16
ldflags-y += --wrap=acpi_evaluate_object
17
ldflags-y += --wrap=acpi_evaluate_dsm
18 19 20

DRIVERS := ../../../drivers
NVDIMM_SRC := $(DRIVERS)/nvdimm
D
Dan Williams 已提交
21
ACPI_SRC := $(DRIVERS)/acpi/nfit
22
DAX_SRC := $(DRIVERS)/dax
23
ccflags-y := -I$(src)/$(NVDIMM_SRC)/
24 25 26 27 28

obj-$(CONFIG_LIBNVDIMM) += libnvdimm.o
obj-$(CONFIG_BLK_DEV_PMEM) += nd_pmem.o
obj-$(CONFIG_ND_BTT) += nd_btt.o
obj-$(CONFIG_ND_BLK) += nd_blk.o
29
obj-$(CONFIG_X86_PMEM_LEGACY) += nd_e820.o
30
obj-$(CONFIG_ACPI_NFIT) += nfit.o
31 32 33 34
ifeq ($(CONFIG_DAX),m)
obj-$(CONFIG_DAX) += dax.o
endif
obj-$(CONFIG_DEV_DAX) += device_dax.o
35
obj-$(CONFIG_DEV_DAX_PMEM) += dax_pmem.o
36

D
Dan Williams 已提交
37
nfit-y := $(ACPI_SRC)/core.o
38
nfit-$(CONFIG_X86_MCE) += $(ACPI_SRC)/mce.o
39 40 41
nfit-y += config_check.o

nd_pmem-y := $(NVDIMM_SRC)/pmem.o
42
nd_pmem-y += pmem-dax.o
43 44 45 46 47 48 49 50
nd_pmem-y += config_check.o

nd_btt-y := $(NVDIMM_SRC)/btt.o
nd_btt-y += config_check.o

nd_blk-y := $(NVDIMM_SRC)/blk.o
nd_blk-y += config_check.o

51 52 53
nd_e820-y := $(NVDIMM_SRC)/e820.o
nd_e820-y += config_check.o

54
dax-y := $(DAX_SRC)/super.o
55 56
dax-y += config_check.o

57
device_dax-y := $(DAX_SRC)/device.o
58
device_dax-y += dax-dev.o
59 60
device_dax-y += config_check.o

61 62 63
dax_pmem-y := $(DAX_SRC)/pmem.o
dax_pmem-y += config_check.o

64 65 66 67 68 69 70 71
libnvdimm-y := $(NVDIMM_SRC)/core.o
libnvdimm-y += $(NVDIMM_SRC)/bus.o
libnvdimm-y += $(NVDIMM_SRC)/dimm_devs.o
libnvdimm-y += $(NVDIMM_SRC)/dimm.o
libnvdimm-y += $(NVDIMM_SRC)/region_devs.o
libnvdimm-y += $(NVDIMM_SRC)/region.o
libnvdimm-y += $(NVDIMM_SRC)/namespace_devs.o
libnvdimm-y += $(NVDIMM_SRC)/label.o
72
libnvdimm-y += $(NVDIMM_SRC)/badrange.o
73
libnvdimm-$(CONFIG_ND_CLAIM) += $(NVDIMM_SRC)/claim.o
74
libnvdimm-$(CONFIG_BTT) += $(NVDIMM_SRC)/btt_devs.o
75
libnvdimm-$(CONFIG_NVDIMM_PFN) += $(NVDIMM_SRC)/pfn_devs.o
76
libnvdimm-$(CONFIG_NVDIMM_DAX) += $(NVDIMM_SRC)/dax_devs.o
77 78 79
libnvdimm-y += config_check.o

obj-m += test/