| # SPDX-License-Identifier: GPL-2.0 |
| obj-$(CONFIG_LIBNVDIMM) += libnvdimm.o |
| obj-$(CONFIG_BLK_DEV_PMEM) += nd_pmem.o |
| obj-$(CONFIG_ND_BTT) += nd_btt.o |
| obj-$(CONFIG_X86_PMEM_LEGACY) += nd_e820.o |
| obj-$(CONFIG_OF_PMEM) += of_pmem.o |
| obj-$(CONFIG_VIRTIO_PMEM) += virtio_pmem.o nd_virtio.o |
| libnvdimm-y += dimm_devs.o |
| libnvdimm-$(CONFIG_PERF_EVENTS) += nd_perf.o |
| libnvdimm-y += region_devs.o |
| libnvdimm-y += namespace_devs.o |
| libnvdimm-y += badrange.o |
| libnvdimm-$(CONFIG_ND_CLAIM) += claim.o |
| libnvdimm-$(CONFIG_BTT) += btt_devs.o |
| libnvdimm-$(CONFIG_NVDIMM_PFN) += pfn_devs.o |
| libnvdimm-$(CONFIG_NVDIMM_DAX) += dax_devs.o |
| libnvdimm-$(CONFIG_NVDIMM_KEYS) += security.o |
| TEST_SRC := $(TOOLS)/testing/nvdimm/test |
| obj-$(CONFIG_NVDIMM_TEST_BUILD) += $(TEST_SRC)/iomap.o |