1# SPDX-License-Identifier: GPL-2.0 2obj-$(CONFIG_LIBNVDIMM) += libnvdimm.o 3obj-$(CONFIG_BLK_DEV_PMEM) += nd_pmem.o 4obj-$(CONFIG_ND_BTT) += nd_btt.o 5obj-$(CONFIG_X86_PMEM_LEGACY) += nd_e820.o 6obj-$(CONFIG_OF_PMEM) += of_pmem.o 7obj-$(CONFIG_VIRTIO_PMEM) += virtio_pmem.o nd_virtio.o 8 9nd_pmem-y := pmem.o 10 11nd_btt-y := btt.o 12 13nd_e820-y := e820.o 14 15libnvdimm-y := core.o 16libnvdimm-y += bus.o 17libnvdimm-y += dimm_devs.o 18libnvdimm-$(CONFIG_PERF_EVENTS) += nd_perf.o 19libnvdimm-y += dimm.o 20libnvdimm-y += region_devs.o 21libnvdimm-y += region.o 22libnvdimm-y += namespace_devs.o 23libnvdimm-y += label.o 24libnvdimm-y += badrange.o 25libnvdimm-$(CONFIG_ND_CLAIM) += claim.o 26libnvdimm-$(CONFIG_BTT) += btt_devs.o 27libnvdimm-$(CONFIG_NVDIMM_PFN) += pfn_devs.o 28libnvdimm-$(CONFIG_NVDIMM_DAX) += dax_devs.o 29libnvdimm-$(CONFIG_NVDIMM_KEYS) += security.o 30 31TOOLS := ../../tools 32TEST_SRC := $(TOOLS)/testing/nvdimm/test 33obj-$(CONFIG_NVDIMM_TEST_BUILD) += $(TEST_SRC)/iomap.o 34