mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Alexander Dahl <ada@thorsis.com>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 1/2] numactl: Add new package
Date: Thu,  2 Jun 2022 14:28:41 +0200	[thread overview]
Message-ID: <20220602122842.26465-2-ada@thorsis.com> (raw)
In-Reply-To: <20220602122842.26465-1-ada@thorsis.com>

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

Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
 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 <ada@thorsis.com>
+#
+# 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 <ada@thorsis.com>")
+	@$(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	other threads:[~2022-06-02 12:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-02 12:28 [ptxdist] [PATCH 0/2] rt-tests: version bump Alexander Dahl
2022-06-02 12:28 ` Alexander Dahl [this message]
2022-06-10  6:49   ` [ptxdist] [APPLIED] numactl: Add new package Michael Olbrich
2022-06-02 12:28 ` [ptxdist] [PATCH 2/2] rt-tests: version bump 1.0 -> 2.3 Alexander Dahl
2022-06-10  6:49   ` [ptxdist] [APPLIED] " Michael Olbrich

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=20220602122842.26465-2-ada@thorsis.com \
    --to=ada@thorsis.com \
    --cc=ptxdist@pengutronix.de \
    /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