From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 02 Jun 2022 14:29:31 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nwjxD-000YZs-PL for lore@lore.pengutronix.de; Thu, 02 Jun 2022 14:29:31 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1nwjxC-0001OA-RX; Thu, 02 Jun 2022 14:29:30 +0200 Received: from mail.thorsis.com ([92.198.35.195]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1nwjwX-00019k-5D for ptxdist@pengutronix.de; Thu, 02 Jun 2022 14:28:49 +0200 Received: from adahl by ada.ifak-system.com with local (Exim 4.92) (envelope-from ) id 1nwjwQ-0006tg-8q for ptxdist@pengutronix.de; Thu, 02 Jun 2022 14:28:42 +0200 From: Alexander Dahl To: ptxdist@pengutronix.de Date: Thu, 2 Jun 2022 14:28:41 +0200 Message-Id: <20220602122842.26465-2-ada@thorsis.com> In-Reply-To: <20220602122842.26465-1-ada@thorsis.com> References: <20220602122842.26465-1-ada@thorsis.com> Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.6 required=4.0 tests=AWL,BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH 1/2] numactl: Add new package X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false This is a requirement for recent releases of the kernel's 'rt-tests' utils. Signed-off-by: Alexander Dahl --- 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 +# +# 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 ") + @$(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