summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/nvdimm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/nvdimm/Makefile')
-rw-r--r--kernel/drivers/nvdimm/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/kernel/drivers/nvdimm/Makefile b/kernel/drivers/nvdimm/Makefile
new file mode 100644
index 000000000..ea84d3c4e
--- /dev/null
+++ b/kernel/drivers/nvdimm/Makefile
@@ -0,0 +1,25 @@
+obj-$(CONFIG_LIBNVDIMM) += libnvdimm.o
+obj-$(CONFIG_BLK_DEV_PMEM) += nd_pmem.o
+obj-$(CONFIG_ND_BTT) += nd_btt.o
+obj-$(CONFIG_ND_BLK) += nd_blk.o
+obj-$(CONFIG_X86_PMEM_LEGACY) += nd_e820.o
+
+nd_pmem-y := pmem.o
+
+nd_btt-y := btt.o
+
+nd_blk-y := blk.o
+
+nd_e820-y := e820.o
+
+libnvdimm-y := core.o
+libnvdimm-y += bus.o
+libnvdimm-y += dimm_devs.o
+libnvdimm-y += dimm.o
+libnvdimm-y += region_devs.o
+libnvdimm-y += region.o
+libnvdimm-y += namespace_devs.o
+libnvdimm-y += label.o
+libnvdimm-$(CONFIG_ND_CLAIM) += claim.o
+libnvdimm-$(CONFIG_BTT) += btt_devs.o
+libnvdimm-$(CONFIG_NVDIMM_PFN) += pfn_devs.o