diff mbox

[ndctl] ndctl: fix unit test build instructions

Message ID 20160309185506.21843.92160.stgit@dwillia2-desk3.jf.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Dan Williams March 9, 2016, 6:55 p.m. UTC
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.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
 README.md |    9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
diff mbox

Patch

diff --git a/README.md b/README.md
index 3f62adce2f92..af2d7881ec51 100644
--- a/README.md
+++ b/README.md
@@ -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`.