public inbox for buildroot@busybox.net
 help / color / mirror / Atom feed
From: cp0613@linux.alibaba.com
To: buildroot@buildroot.org
Cc: ju.o@free.fr, Chen Pei <cp0613@linux.alibaba.com>
Subject: [Buildroot] [PATCH 1/2] package/ndctl: new package
Date: Fri,  6 Mar 2026 11:44:15 +0800	[thread overview]
Message-ID: <20260306034417.613-2-cp0613@linux.alibaba.com> (raw)
In-Reply-To: <20260306034417.613-1-cp0613@linux.alibaba.com>

From: Chen Pei <cp0613@linux.alibaba.com>

A "device memory" enabling project encompassing tools and
libraries for CXL, NVDIMMs, DAX, memory tiering and other
platform memory device topics.

Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
---
 package/Config.in        |  1 +
 package/ndctl/Config.in  | 21 +++++++++++++++++++++
 package/ndctl/ndctl.hash |  3 +++
 package/ndctl/ndctl.mk   | 34 ++++++++++++++++++++++++++++++++++
 4 files changed, 59 insertions(+)
 create mode 100644 package/ndctl/Config.in
 create mode 100644 package/ndctl/ndctl.hash
 create mode 100644 package/ndctl/ndctl.mk

diff --git a/package/Config.in b/package/Config.in
index d1dce9c4d7..ec657d5441 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -2867,6 +2867,7 @@ menu "System tools"
 	source "package/monit/Config.in"
 	source "package/multipath-tools/Config.in"
 	source "package/ncdu/Config.in"
+	source "package/ndctl/Config.in"
 	source "package/nerdctl/Config.in"
 	source "package/netifrc/Config.in"
 	source "package/numactl/Config.in"
diff --git a/package/ndctl/Config.in b/package/ndctl/Config.in
new file mode 100644
index 0000000000..841e9981b8
--- /dev/null
+++ b/package/ndctl/Config.in
@@ -0,0 +1,21 @@
+config BR2_PACKAGE_NDCTL
+	bool "ndctl"
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_USE_MMU
+	depends on BR2_LINUX_KERNEL
+	depends on BR2_PACKAGE_HAS_UDEV
+	select BR2_PACKAGE_KMOD
+	select BR2_PACKAGE_JSON_C
+	select BR2_PACKAGE_UTIL_LINUX
+	select BR2_PACKAGE_UTIL_LINUX_LIBS
+	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
+	select BR2_PACKAGE_LIBTRACEEVENT
+	select BR2_PACKAGE_LIBTRACEFS
+	select BR2_PACKAGE_KEYUTILS
+	select BR2_PACKAGE_INIPARSER
+	help
+	  A "device memory" enabling project encompassing tools and
+	  libraries for CXL, NVDIMMs, DAX, memory tiering and other
+	  platform memory device topics.
+
+	  https://github.com/pmem/ndctl
diff --git a/package/ndctl/ndctl.hash b/package/ndctl/ndctl.hash
new file mode 100644
index 0000000000..a04f0cfa10
--- /dev/null
+++ b/package/ndctl/ndctl.hash
@@ -0,0 +1,3 @@
+# locally computed
+sha256  dd4b9b9a9dc0a15e980670b6f889e910a80ad60f2309e03bfd9cc6071d14dd30  ndctl-83.tar.gz
+sha256  1334f22048052d69647860fe9fb24997dc3b33737cb494297d68949f589fa1cf  COPYING
diff --git a/package/ndctl/ndctl.mk b/package/ndctl/ndctl.mk
new file mode 100644
index 0000000000..5c8ed86da7
--- /dev/null
+++ b/package/ndctl/ndctl.mk
@@ -0,0 +1,34 @@
+################################################################################
+#
+# ndctl
+#
+################################################################################
+
+NDCTL_VERSION = 83
+NDCTL_SITE = $(call github,pmem,ndctl,v$(NDCTL_VERSION))
+NDCTL_LICENSE = LGPL-2.1+, GPL-2.0+
+NDCTL_LICENSE_FILES = COPYING
+
+NDCTL_DEPENDENCIES = \
+	host-meson \
+	host-ninja \
+	util-linux-libs \
+	kmod \
+	json-c \
+	libtraceevent \
+	libtracefs \
+	keyutils \
+	iniparser
+
+NDCTL_CONF_OPTS = \
+	-Ddocs=disabled \
+	-Diniparserdir=$(TARGET_DIR)/usr/include/iniparser
+
+ifeq ($(BR2_PACKAGE_SYSTEMD),y)
+NDCTL_CONF_OPTS += -Dsystemd=enabled
+NDCTL_DEPENDENCIES += systemd
+else
+NDCTL_CONF_OPTS += -Dsystemd=disabled
+endif
+
+$(eval $(meson-package))
-- 
2.50.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2026-03-06  3:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-06  3:44 [Buildroot] [PATCH 0/2] package/ndctl: new package cp0613
2026-03-06  3:44 ` cp0613 [this message]
2026-03-07 12:46   ` [Buildroot] [PATCH 1/2] " Julien Olivain via buildroot
2026-03-09  1:48     ` [Buildroot] [PATCH] " cp0613
2026-03-06  3:44 ` [Buildroot] [PATCH 2/2] DEVELOPERS: Add Chen Pei to ndctl cp0613

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260306034417.613-2-cp0613@linux.alibaba.com \
    --to=cp0613@linux.alibaba.com \
    --cc=buildroot@buildroot.org \
    --cc=ju.o@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox