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/3] libatomic_ops: Add new package
Date: Tue, 10 Oct 2023 08:52:17 +0200	[thread overview]
Message-ID: <20231010065219.43001-2-ada@thorsis.com> (raw)
In-Reply-To: <20231010065219.43001-1-ada@thorsis.com>

Dependency for the upcoming bdwgc.

Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
 rules/libatomic_ops.in   | 11 ++++++
 rules/libatomic_ops.make | 75 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+)
 create mode 100644 rules/libatomic_ops.in
 create mode 100644 rules/libatomic_ops.make

diff --git a/rules/libatomic_ops.in b/rules/libatomic_ops.in
new file mode 100644
index 000000000..23e79c4fd
--- /dev/null
+++ b/rules/libatomic_ops.in
@@ -0,0 +1,11 @@
+## SECTION=system_libraries
+
+config LIBATOMIC_OPS
+	tristate
+	prompt "libatomic_ops"
+	help
+	  Semi-portable access to hardware-provided atomic memory update
+	  operations on a number of architectures.
+	  IN NEW CODE, PLEASE USE C11 OR C++14 STANDARD ATOMICS INSTEAD!
+
+# vim: ft=kconfig noet tw=72 ts=8 sw=8
diff --git a/rules/libatomic_ops.make b/rules/libatomic_ops.make
new file mode 100644
index 000000000..746ab9343
--- /dev/null
+++ b/rules/libatomic_ops.make
@@ -0,0 +1,75 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2023 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_LIBATOMIC_OPS) += libatomic_ops
+
+#
+# Paths and names
+#
+LIBATOMIC_OPS_VERSION	:= 7.8.0
+LIBATOMIC_OPS_MD5	:= a7e51e8041c3e60c298c037b2789c3fa
+LIBATOMIC_OPS		:= libatomic_ops-$(LIBATOMIC_OPS_VERSION)
+LIBATOMIC_OPS_SUFFIX	:= tar.gz
+LIBATOMIC_OPS_URL	:= https://github.com/ivmai/libatomic_ops/releases/download/v$(LIBATOMIC_OPS_VERSION)/$(LIBATOMIC_OPS).$(LIBATOMIC_OPS_SUFFIX)
+LIBATOMIC_OPS_SOURCE	:= $(SRCDIR)/$(LIBATOMIC_OPS).$(LIBATOMIC_OPS_SUFFIX)
+LIBATOMIC_OPS_DIR	:= $(BUILDDIR)/$(LIBATOMIC_OPS)
+# quote from LICENSE:
+#
+# > Our intent is to make it easy to use libatomic_ops, in both free and
+# > proprietary software.  Hence most of code (core library) that we
+# > expect to be linked into a client application is covered by a MIT or
+# > MIT-style license.
+#
+# > However, a few library routines (the gpl extension library) are
+# > covered by the GNU General Public License.  These are put into a
+# > separate library, libatomic_ops_gpl.a file.
+LIBATOMIC_OPS_LICENSE	:= MIT AND Boehm-GC AND GPL-2.0-or-later
+LIBATOMIC_OPS_LICENSE_FILES := \
+	file://LICENSE;md5=5700d28353dfa2f191ca9b1bd707865e \
+	file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+LIBATOMIC_OPS_CONF_TOOL	:= autoconf
+LIBATOMIC_OPS_CONF_OPT	:=  \
+	$(CROSS_AUTOCONF_USR) \
+	--enable-shared \
+	--disable-static \
+	--disable-werror \
+	--disable-assertions \
+	--disable-atomic-intrinsics \
+	--disable-gcov \
+	--enable-gpl \
+	--disable-docs
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libatomic_ops.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, libatomic_ops)
+	@$(call install_fixup, libatomic_ops,PRIORITY,optional)
+	@$(call install_fixup, libatomic_ops,SECTION,base)
+	@$(call install_fixup, libatomic_ops,AUTHOR,"Alexander Dahl <ada@thorsis.com>")
+	@$(call install_fixup, libatomic_ops,DESCRIPTION,missing)
+
+	@$(call install_lib, libatomic_ops, 0, 0, 0644, libatomic_ops)
+	@$(call install_lib, libatomic_ops, 0, 0, 0644, libatomic_ops_gpl)
+
+	@$(call install_finish, libatomic_ops)
+
+	@$(call touch)
+
+# vim: ft=make noet tw=72 ts=8 sw=8
-- 
2.30.2




  reply	other threads:[~2023-10-10  6:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-10  6:52 [ptxdist] [PATCH 0/3] poke: " Alexander Dahl
2023-10-10  6:52 ` Alexander Dahl [this message]
2023-10-18  7:42   ` [ptxdist] [APPLIED] libatomic_ops: " Michael Olbrich
2023-10-10  6:52 ` [ptxdist] [PATCH 2/3] bdwgc: " Alexander Dahl
2023-10-18  7:42   ` [ptxdist] [APPLIED] " Michael Olbrich
2023-10-10  6:52 ` [ptxdist] [PATCH 3/3] poke: " Alexander Dahl
2023-10-18  7:42   ` [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=20231010065219.43001-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