Kbuild 1.4 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 6
ldflags-y += --wrap=ioremap_nocache
ldflags-y += --wrap=iounmap
7
ldflags-y += --wrap=memunmap
8
ldflags-y += --wrap=__devm_request_region
9 10 11 12 13 14 15 16 17 18 19
ldflags-y += --wrap=__request_region
ldflags-y += --wrap=__release_region

DRIVERS := ../../../drivers
NVDIMM_SRC := $(DRIVERS)/nvdimm
ACPI_SRC := $(DRIVERS)/acpi

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
20
obj-$(CONFIG_X86_PMEM_LEGACY) += nd_e820.o
21 22 23 24 25 26 27 28 29 30 31 32 33 34
obj-$(CONFIG_ACPI_NFIT) += nfit.o

nfit-y := $(ACPI_SRC)/nfit.o
nfit-y += config_check.o

nd_pmem-y := $(NVDIMM_SRC)/pmem.o
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

35 36 37
nd_e820-y := $(NVDIMM_SRC)/e820.o
nd_e820-y += config_check.o

38 39 40 41 42 43 44 45
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
46
libnvdimm-$(CONFIG_ND_CLAIM) += $(NVDIMM_SRC)/claim.o
47
libnvdimm-$(CONFIG_BTT) += $(NVDIMM_SRC)/btt_devs.o
48
libnvdimm-$(CONFIG_NVDIMM_PFN) += $(NVDIMM_SRC)/pfn_devs.o
49 50 51
libnvdimm-y += config_check.o

obj-m += test/