-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add nvme cli. Fixes: #562 Signed-off-by: Noel Georgi <[email protected]>
- Loading branch information
Showing
12 changed files
with
201 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: libnvme | ||
variant: scratch | ||
shell: /toolchain/bin/bash | ||
dependencies: | ||
- stage: base | ||
- image: "{{ .BUILD_ARG_PKGS_PREFIX }}/openssl:{{ .BUILD_ARG_PKGS }}" | ||
- image: "{{ .BUILD_ARG_PKGS_PREFIX }}/libjson-c:{{ .BUILD_ARG_PKGS }}" | ||
steps: | ||
- sources: | ||
- url: https://github.com/linux-nvme/libnvme/archive/refs/tags/{{ .LIBNVME_VERSION }}.tar.gz | ||
destination: libnvme.tar.gz | ||
sha256: 6d5d8ba2cc4c94a61a994c9f7f25b3b26ef973fb5c0daa37729890903f37a1f1 | ||
sha512: 8720f2907a3d13af44fb3deec883cd6eb247d5861c4459b5fe0e67ff9ecfb565462a5faf39d43e08b5284f3e8ca8e72d41b333984beaa45d3287b1a258f3e59d | ||
prepare: | ||
- | | ||
tar xf libnvme.tar.gz --strip-components=1 | ||
mkdir -p /usr/bin | ||
ln -s /toolchain/bin/env /usr/bin/env | ||
ln -s /toolchain/bin/python3 /toolchain/bin/python | ||
pip3 install ninja | ||
export PKG_CONFIG_PATH=/usr/lib/pkgconfig | ||
meson setup \ | ||
-Db_lto=true \ | ||
-Djson-c=enabled \ | ||
-Dpython=disabled \ | ||
.build | ||
build: | ||
- | | ||
meson compile -C .build | ||
install: | ||
- | | ||
DESTDIR=/rootfs meson install -C .build | ||
finalize: | ||
- from: /rootfs | ||
to: /rootfs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: v1alpha1 | ||
metadata: | ||
name: nvme-cli | ||
version: "$VERSION" | ||
author: Sidero Labs | ||
description: | | ||
This system extension provides the NVMe command line interface. | ||
compatibility: | ||
talos: | ||
version: ">= v1.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/main/nvme-cli/basename.patch | ||
--- a/plugins/netapp/netapp-nvme.c 2024-10-31 10:39:11 | ||
+++ b/plugins/netapp/netapp-nvme.c 2024-11-11 21:02:24 | ||
@@ -22,6 +22,7 @@ | ||
#include <unistd.h> | ||
#include <errno.h> | ||
#include <string.h> | ||
+#include <libgen.h> | ||
|
||
#include "common.h" | ||
#include "nvme.h" |
Oops, something went wrong.