Skip to content

Compile the source code

Ping Huang edited this page May 17, 2016 · 5 revisions

The source package includes 4 components:

  • NVMe driver
  • nvme-cli
  • esxcli-nvme-plugin
  • NOTE: nvme-test can not be built since latest DDK doesn't provide libraries needed by it.

Work Environment

To compile these source code, you need

  • VMware Workbench
  • Native DDK (previously referred to as the VMKAPI DDK)
  • Host Extensions development kit to build esxcli-nvme-plugin or nvme-cli

Compile Steps

  • Copy the source code to the directory /opt/vmware/your-ddk-version/src/partner

NVMe driver

  • Enter the driver module directory:

    $ cd nvme/native/kernel

  • Copy the Makefile from a sample driver to current directory:

    $ cp /opt/vmware/your-ddk-version/src/partners/samples/sample-driver-name/Makefile Makefile

  • Edit "VMKAPIDDK_VERSION" in nvme.sc to match your DDK version

    $ make

  • A build directory including the driver vib and other files is generated in the current directory

nvme-cli

  • Enter the nvme-cli directory:

    $ cd nvme/native/user/nvme-cli

    $ make

  • A build directory including the nvme-cli vib and other files is generated in the current directory

esxcli-nvme-plugin

  • Enter the nvme-cli directory:

    $ cd nvme/native/user/esxcli-nvme-plugin

    $ make

  • A build directory including the esxcli plugin vib and other files is generated in the current directory

Clone this wiki locally