You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-29Lines changed: 16 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,8 @@ NVM-Express user space tooling for Linux.
7
7
8
8
## Build from source
9
9
10
-
nvme-cli uses meson as build system. There is more than one way to configure and
11
-
build the project in order to mitigate meson dependency on the build
12
-
environment.
10
+
nvme-cli uses meson as its build system. There is more than one way to configure and
11
+
build the project in order to mitigate meson dependency on the build environment.
13
12
14
13
If you build on a relative modern system, either use meson directly or the
15
14
Makefile wrapper.
@@ -20,30 +19,29 @@ and [muon](https://github.com/annacrombie/muon). Both build tools have only a
20
19
minimal dependency on the build environment. Too easy this step there is a build
21
20
script which helps to setup a build environment.
22
21
23
-
### nvme-cli dependencies:
22
+
### nvme-cli dependencies (3.x and later):
24
23
25
-
| Library | Dependency | Notes |
26
-
|---------|------------|-------|
27
-
| libnvme, libnvme-mi| yes | be either installed or included into the build via meson fallback feature |
28
-
| json-c | optional | recommended, without all plugins are disabled and json-c output format is disabled |
24
+
Starting with nvme-cli 3.x, the libnvme library is fully integrated into the nvme-cli source tree. There is no longer any dependency on an external libnvme repository or package. All required libnvme and libnvme-mi code is included and built as part of nvme-cli.
25
+
26
+
| Library | Dependency | Notes |
27
+
|---------|------------|-------|
28
+
| libnvme, libnvme-mi | integrated | No external dependency, included in nvme-cli |
29
+
| json-c | optional | Recommended; without it, all plugins are disabled and json-c output format is disabled |
29
30
30
31
31
32
### Build with meson
32
33
33
34
#### Configuring
34
35
35
-
In case libnvme is not installed on the system, it possible to use meson's
36
-
fallback feature to resolve the dependency.
37
-
38
-
$ meson setup --force-fallback-for=libnvme .build
36
+
#### Configuring
39
37
40
-
If the libnvme is already installed on the system meson is using pkg-config to
41
-
find the dependency. In this case a plain setup call is enough:
38
+
No special configuration is required for libnvme, as it is now part of the
39
+
nvme-cli source tree. Simply run:
42
40
43
41
$ meson setup .build
44
42
45
-
With meson's --wrap-mode argument it's possible to control if the additional
46
-
dependencies should also resolved or not. The options are
43
+
With meson's --wrap-mode argument it's possible to control if additional
0 commit comments