diff mbox series

[RFC] ndtest: Make ndtest a module on its own

Message ID 165025849452.2974989.6131145460098517848.stgit@lep8c.aus.stglabs.ibm.com (mailing list archive)
State New, archived
Headers show
Series [RFC] ndtest: Make ndtest a module on its own | expand

Commit Message

Shivaprasad G Bhat April 18, 2022, 5:08 a.m. UTC
Today ndtest module is compiled as nfit_test.ko depending on
if the CONFIG_ACPI_NFIT defined or not.

It is more advantageous to make ndtest a module on its own
so that the unit tests can be run serially on the same host
without a need for recompilation of sources.

The patch modifies the Kbuild file to take care of that.

Signed-off-by: Shivaprasad G Bhat <sbhat@linux.ibm.com>
Signed-off-by: Vaibhav Jain <vaibhav@linux.ibm.com>
---
 tools/testing/nvdimm/test/Kbuild |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/tools/testing/nvdimm/test/Kbuild b/tools/testing/nvdimm/test/Kbuild
index 197bcb2b7f35..4d4835f73b46 100644
--- a/tools/testing/nvdimm/test/Kbuild
+++ b/tools/testing/nvdimm/test/Kbuild
@@ -2,12 +2,12 @@ 
 ccflags-y := -I$(srctree)/drivers/nvdimm/
 ccflags-y += -I$(srctree)/drivers/acpi/nfit/
 
-obj-m += nfit_test.o
+obj-m += ndtest.o
 obj-m += nfit_test_iomap.o
 
 ifeq  ($(CONFIG_ACPI_NFIT),m)
+	obj-m += nfit_test.o
 	nfit_test-y := nfit.o
-else
-	nfit_test-y := ndtest.o
 endif
+
 nfit_test_iomap-y := iomap.o