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