Skip to contentSkip to conversation

ndctl: fix unit test build instructions

PATCH New Dan Williams 1 participant 1 message Mar 9, 2016 libnvdimm: non-volatile memory device

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ndctl: fix unit test build instructions

Use "M=tools/testing/nvdimm" from the kernel build directory rather than "-C tools/testing/nvdimm". This arranges for the unit test modules to honor a "localversion" file like the one distributed by the -next tree. Also switch from 'install' to 'modules_install' to trigger depmod to run after the modules are installed.

---
 README.md |    9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
README.md +3 -6
index 3f62adce2f92..af2d7881ec51 100644
@@ -40,12 +40,9 @@ This will be used to emulate DAX.
 `CONFIG_ND_BLK=m`  
 `CONFIG_ND_BTT=m`  
 
-4. Build and install the unit test enabled libnvdimm modules in the
-   following order.  The unit test modules need to be in place prior to
-   the `depmod` that runs during the final `modules_install`  
-`make -C tools/testing/nvdimm/`  
-`sudo make -C tools/testing/nvdimm/ install`  
-`sudo make modules_install`
+4. Build and install the unit test enabled libnvdimm modules.
+`make M=tools/testing/nvdimm/`  
+`sudo make M=tools/testing/nvdimm/ modules_install`  
 
 5. Now run `make check` in the ndctl source directory, or `ndctl test`,
    if ndctl was built with `--enable-test`.

_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm