This is a requirement for recent releases of the kernel's 'rt-tests'
utils.

Signed-off-by: Alexander Dahl <[email protected]>
---
 rules/numactl.in   | 18 ++++++++++++++
 rules/numactl.make | 59 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+)
 create mode 100644 rules/numactl.in
 create mode 100644 rules/numactl.make

diff --git a/rules/numactl.in b/rules/numactl.in
new file mode 100644
index 000000000..66e2645f2
--- /dev/null
+++ b/rules/numactl.in
@@ -0,0 +1,18 @@
+## SECTION=shell_and_console
+
+menuconfig NUMACTL
+       tristate
+       prompt "numactl                       "
+       help
+         NUMA policy support for Linux.
+         Consists of a 'numactl' program and a 'libnuma' shared library.
+
+if NUMACTL
+
+config NUMACTL_NUMACTL
+       bool
+       prompt "numactl"
+       help
+         Program to run other programs with a specific NUMA policy.
+
+endif
diff --git a/rules/numactl.make b/rules/numactl.make
new file mode 100644
index 000000000..6db1c2707
--- /dev/null
+++ b/rules/numactl.make
@@ -0,0 +1,59 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2022 by Alexander Dahl <[email protected]>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_NUMACTL) += numactl
+
+#
+# Paths and names
+#
+NUMACTL_VERSION        := 2.0.14
+NUMACTL_MD5    := f65f3501a82df8c3ee7cc74dc6a55636
+NUMACTL                := numactl-$(NUMACTL_VERSION)
+NUMACTL_SUFFIX := tar.gz
+NUMACTL_URL    := 
https://github.com/numactl/numactl/releases/download/v$(NUMACTL_VERSION)/$(NUMACTL).$(NUMACTL_SUFFIX)
+NUMACTL_SOURCE := $(SRCDIR)/$(NUMACTL).$(NUMACTL_SUFFIX)
+NUMACTL_DIR    := $(BUILDDIR)/$(NUMACTL)
+NUMACTL_LICENSE        := LGPL-2.1 AND GPL-2.0
+NUMACTL_LICENSE_FILES := \
+       
file://README.md;startline=25;endline=47;md5=0ca89e009b5e838824a114916c20e382 \
+       file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe \
+       file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+NUMACTL_CONF_TOOL      := autoconf
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/numactl.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init, numactl)
+       @$(call install_fixup, numactl,PRIORITY,optional)
+       @$(call install_fixup, numactl,SECTION,base)
+       @$(call install_fixup, numactl,AUTHOR,"Alexander Dahl 
<[email protected]>")
+       @$(call install_fixup, numactl,DESCRIPTION,missing)
+
+ifdef PTXCONF_NUMACTL_NUMACTL
+       @$(call install_copy, numactl, 0, 0, 0755, -, /usr/bin/numactl)
+endif
+
+       @$(call install_lib, numactl, 0, 0, 0644, libnuma)
+
+       @$(call install_finish, numactl)
+
+       @$(call touch)
+
+# vim: ft=make noet tw=72 ts=8 sw=8
-- 
2.30.2


Reply via email to