path: root/tools/testing/nvdimm/test/Kbuild
diff options
authorSantosh Sivaraj <santosh@fossix.org>2020-12-22 09:52:34 +0530
committerDan Williams <dan.j.williams@intel.com>2021-01-28 00:22:48 -0800
commit9a27e109a391c9021147553b97c3fe4356e2261c (patch)
tree161d1901f9fc587d221176a5f12f02b1edb02ccd /tools/testing/nvdimm/test/Kbuild
parentlibnvdimm/namespace: Fix visibility of namespace resource attribute (diff)
testing/nvdimm: Add test module for non-nfit platforms
The current test module cannot be used for testing platforms (make check) that do not have support for NFIT. In order to get the ndctl tests working, we need a module which can emulate NVDIMM devices without relying on ACPI/NFIT. The aim of this proposed module is to implement a similar functionality to the existing module but without the ACPI dependencies. This RFC series is split into reviewable and compilable chunks. This patch adds a new driver and registers two nvdimm bus needed for ndctl make check. Signed-off-by: Santosh Sivaraj <santosh@fossix.org> Link: https://lore.kernel.org/r/20201222042240.2983755-2-santosh@fossix.org Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'tools/testing/nvdimm/test/Kbuild')
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/testing/nvdimm/test/Kbuild b/tools/testing/nvdimm/test/Kbuild
index 75baebf8f4ba..197bcb2b7f35 100644
--- a/tools/testing/nvdimm/test/Kbuild
+++ b/tools/testing/nvdimm/test/Kbuild
@@ -5,5 +5,9 @@ ccflags-y += -I$(srctree)/drivers/acpi/nfit/
obj-m += nfit_test.o
obj-m += nfit_test_iomap.o
-nfit_test-y := nfit.o
+ifeq ($(CONFIG_ACPI_NFIT),m)
+ nfit_test-y := nfit.o
+ nfit_test-y := ndtest.o
nfit_test_iomap-y := iomap.o