1# SPDX-License-Identifier: GPL-2.0 2ldflags-y += --wrap=ioremap_wc 3ldflags-y += --wrap=memremap 4ldflags-y += --wrap=devm_ioremap_nocache 5ldflags-y += --wrap=devm_memremap 6ldflags-y += --wrap=devm_memunmap 7ldflags-y += --wrap=ioremap_nocache 8ldflags-y += --wrap=ioremap 9ldflags-y += --wrap=iounmap 10ldflags-y += --wrap=memunmap 11ldflags-y += --wrap=__devm_request_region 12ldflags-y += --wrap=__devm_release_region 13ldflags-y += --wrap=__request_region 14ldflags-y += --wrap=__release_region 15ldflags-y += --wrap=devm_memremap_pages 16ldflags-y += --wrap=insert_resource 17ldflags-y += --wrap=remove_resource 18ldflags-y += --wrap=acpi_evaluate_object 19ldflags-y += --wrap=acpi_evaluate_dsm 20 21DRIVERS := ../../../drivers 22NVDIMM_SRC := $(DRIVERS)/nvdimm 23ACPI_SRC := $(DRIVERS)/acpi/nfit 24DAX_SRC := $(DRIVERS)/dax 25ccflags-y := -I$(src)/$(NVDIMM_SRC)/ 26ccflags-y += -I$(src)/$(ACPI_SRC)/ 27 28obj-$(CONFIG_LIBNVDIMM) += libnvdimm.o 29obj-$(CONFIG_BLK_DEV_PMEM) += nd_pmem.o 30obj-$(CONFIG_ND_BTT) += nd_btt.o 31obj-$(CONFIG_ND_BLK) += nd_blk.o 32obj-$(CONFIG_X86_PMEM_LEGACY) += nd_e820.o 33obj-$(CONFIG_ACPI_NFIT) += nfit.o 34ifeq ($(CONFIG_DAX),m) 35obj-$(CONFIG_DAX) += dax.o 36endif 37obj-$(CONFIG_DEV_DAX) += device_dax.o 38obj-$(CONFIG_DEV_DAX_PMEM) += dax_pmem.o 39obj-$(CONFIG_DEV_DAX_PMEM) += dax_pmem_core.o 40obj-$(CONFIG_DEV_DAX_PMEM_COMPAT) += dax_pmem_compat.o 41 42nfit-y := $(ACPI_SRC)/core.o 43nfit-y += $(ACPI_SRC)/intel.o 44nfit-$(CONFIG_X86_MCE) += $(ACPI_SRC)/mce.o 45nfit-y += acpi_nfit_test.o 46nfit-y += config_check.o 47 48nd_pmem-y := $(NVDIMM_SRC)/pmem.o 49nd_pmem-y += pmem-dax.o 50nd_pmem-y += pmem_test.o 51nd_pmem-y += config_check.o 52 53nd_btt-y := $(NVDIMM_SRC)/btt.o 54nd_btt-y += config_check.o 55 56nd_blk-y := $(NVDIMM_SRC)/blk.o 57nd_blk-y += config_check.o 58 59nd_e820-y := $(NVDIMM_SRC)/e820.o 60nd_e820-y += config_check.o 61 62dax-y := $(DAX_SRC)/super.o 63dax-y += $(DAX_SRC)/bus.o 64dax-y += config_check.o 65 66device_dax-y := $(DAX_SRC)/device.o 67device_dax-y += dax-dev.o 68device_dax-y += device_dax_test.o 69device_dax-y += config_check.o 70 71dax_pmem-y := $(DAX_SRC)/pmem/pmem.o 72dax_pmem-y += dax_pmem_test.o 73dax_pmem_core-y := $(DAX_SRC)/pmem/core.o 74dax_pmem_core-y += dax_pmem_core_test.o 75dax_pmem_compat-y := $(DAX_SRC)/pmem/compat.o 76dax_pmem_compat-y += dax_pmem_compat_test.o 77dax_pmem-y += config_check.o 78 79libnvdimm-y := $(NVDIMM_SRC)/core.o 80libnvdimm-y += $(NVDIMM_SRC)/bus.o 81libnvdimm-y += $(NVDIMM_SRC)/dimm_devs.o 82libnvdimm-y += $(NVDIMM_SRC)/dimm.o 83libnvdimm-y += $(NVDIMM_SRC)/region_devs.o 84libnvdimm-y += $(NVDIMM_SRC)/region.o 85libnvdimm-y += $(NVDIMM_SRC)/namespace_devs.o 86libnvdimm-y += $(NVDIMM_SRC)/label.o 87libnvdimm-y += $(NVDIMM_SRC)/badrange.o 88libnvdimm-$(CONFIG_ND_CLAIM) += $(NVDIMM_SRC)/claim.o 89libnvdimm-$(CONFIG_BTT) += $(NVDIMM_SRC)/btt_devs.o 90libnvdimm-$(CONFIG_NVDIMM_PFN) += $(NVDIMM_SRC)/pfn_devs.o 91libnvdimm-$(CONFIG_NVDIMM_DAX) += $(NVDIMM_SRC)/dax_devs.o 92libnvdimm-$(CONFIG_NVDIMM_KEYS) += $(NVDIMM_SRC)/security.o 93libnvdimm-y += dimm_devs.o 94libnvdimm-y += libnvdimm_test.o 95libnvdimm-y += config_check.o 96 97obj-m += test/ 98