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