2022-04-18 11:35:32

by Shivaprasad G Bhat

[permalink] [raw]
Subject: [RFC PATCH] ndtest: Make ndtest a module on its own

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 <[email protected]>
Signed-off-by: Vaibhav Jain <[email protected]>
---
tools/testing/nvdimm/test/Kbuild | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

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