Skip to content

Commit

Permalink
nvme-cli: Add port
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisbonke committed Dec 24, 2024
1 parent 90ebc38 commit 0fbeb28
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
43 changes: 43 additions & 0 deletions bootstrap.d/sys-apps.y4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,49 @@ packages:
environ:
DESTDIR: '@THIS_COLLECT_DIR@'

- name: nvme-cli
architecture: '@OPTION:arch@'
metadata:
summary: NVM-Express user space tooling for Linux
description: NVM-Express user space tooling for Linux.
spdx: 'GPL-2.0-or-later'
website: 'https://github.com/linux-nvme/nvme-cli'
maintainer: "Dennis Bonke <[email protected]>"
categories: ['sys-apps']
source:
subdir: 'ports'
git: 'https://github.com/linux-nvme/nvme-cli.git'
tag: 'v2.11'
version: '2.11'
tools_required:
- system-gcc
- virtual: pkgconfig-for-target
triple: "@OPTION:arch-triple@"
pkgs_required:
- mlibc
- libnvme
- json-c
- zlib
revision: 1
configure:
- args:
- 'meson'
- 'setup'
- '--cross-file'
- '@SOURCE_ROOT@/scripts/meson-@OPTION:[email protected]'
- '--prefix=/usr'
- '--sysconfdir=/etc'
- '--buildtype=release'
- '@THIS_SOURCE_DIR@'
build:
- args: ['ninja']
- args: ['ninja', 'install']
environ:
DESTDIR: '@THIS_COLLECT_DIR@'
- args: ['rm', '-r', '@THIS_COLLECT_DIR@/usr/share/zsh'] # Nuke zsh
- args: ['rm', '-r', '@THIS_COLLECT_DIR@/usr/lib/systemd'] # Nuke systemd
- args: ['rm', '-r', '@THIS_COLLECT_DIR@/usr/lib/dracut'] # Nuke dracut

- name: pciutils
architecture: '@OPTION:arch@'
metadata:
Expand Down
25 changes: 25 additions & 0 deletions patches/nvme-cli/0001-Add-missing-include.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From 1da5792c2a07b44ca88564bd6f0a2338d2df9b8a Mon Sep 17 00:00:00 2001
From: Dennis Bonke <[email protected]>
Date: Tue, 24 Dec 2024 01:39:32 +0100
Subject: [PATCH] Add missing include

Signed-off-by: Dennis Bonke <[email protected]>
---
plugins/sed/sedopal_cmd.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/plugins/sed/sedopal_cmd.c b/plugins/sed/sedopal_cmd.c
index 017649d..ba64c39 100644
--- a/plugins/sed/sedopal_cmd.c
+++ b/plugins/sed/sedopal_cmd.c
@@ -7,6 +7,7 @@
#include <string.h>
#include <unistd.h>
#include <errno.h>
+#include <endian.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/mount.h>
--
2.45.2

0 comments on commit 0fbeb28

Please sign in to comment.