summaryrefslogtreecommitdiffstats
path: root/tools/testing/nvdimm/test/Kbuild
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/nvdimm/test/Kbuild')
-rw-r--r--tools/testing/nvdimm/test/Kbuild13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/testing/nvdimm/test/Kbuild b/tools/testing/nvdimm/test/Kbuild
new file mode 100644
index 000000000..197bcb2b7
--- /dev/null
+++ b/tools/testing/nvdimm/test/Kbuild
@@ -0,0 +1,13 @@
+# SPDX-License-Identifier: GPL-2.0
+ccflags-y := -I$(srctree)/drivers/nvdimm/
+ccflags-y += -I$(srctree)/drivers/acpi/nfit/
+
+obj-m += nfit_test.o
+obj-m += nfit_test_iomap.o
+
+ifeq ($(CONFIG_ACPI_NFIT),m)
+ nfit_test-y := nfit.o
+else
+ nfit_test-y := ndtest.o
+endif
+nfit_test_iomap-y := iomap.o