1ldflags-y += --wrap=ioremap_wt 2ldflags-y += --wrap=ioremap_wc 3ldflags-y += --wrap=devm_ioremap_nocache 4ldflags-y += --wrap=ioremap_cache 5ldflags-y += --wrap=ioremap_nocache 6ldflags-y += --wrap=iounmap 7ldflags-y += --wrap=__request_region 8ldflags-y += --wrap=__release_region 9 10DRIVERS := ../../../drivers 11NVDIMM_SRC := $(DRIVERS)/nvdimm 12ACPI_SRC := $(DRIVERS)/acpi 13 14obj-$(CONFIG_LIBNVDIMM) += libnvdimm.o 15obj-$(CONFIG_BLK_DEV_PMEM) += nd_pmem.o 16obj-$(CONFIG_ND_BTT) += nd_btt.o 17obj-$(CONFIG_ND_BLK) += nd_blk.o 18obj-$(CONFIG_ACPI_NFIT) += nfit.o 19 20nfit-y := $(ACPI_SRC)/nfit.o 21nfit-y += config_check.o 22 23nd_pmem-y := $(NVDIMM_SRC)/pmem.o 24nd_pmem-y += config_check.o 25 26nd_btt-y := $(NVDIMM_SRC)/btt.o 27nd_btt-y += config_check.o 28 29nd_blk-y := $(NVDIMM_SRC)/blk.o 30nd_blk-y += config_check.o 31 32libnvdimm-y := $(NVDIMM_SRC)/core.o 33libnvdimm-y += $(NVDIMM_SRC)/bus.o 34libnvdimm-y += $(NVDIMM_SRC)/dimm_devs.o 35libnvdimm-y += $(NVDIMM_SRC)/dimm.o 36libnvdimm-y += $(NVDIMM_SRC)/region_devs.o 37libnvdimm-y += $(NVDIMM_SRC)/region.o 38libnvdimm-y += $(NVDIMM_SRC)/namespace_devs.o 39libnvdimm-y += $(NVDIMM_SRC)/label.o 40libnvdimm-$(CONFIG_BTT) += $(NVDIMM_SRC)/btt_devs.o 41libnvdimm-y += config_check.o 42 43obj-m += test/ 44