From: Christian Melki <christian.melki@t2data.com>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] xxhash: Add new package. Version 0.8.1.
Date: Thu, 20 Jan 2022 11:56:06 +0100 [thread overview]
Message-ID: <20220120105607.300271-1-christian.melki@t2data.com> (raw)
xxhash is a library consisting of, an extremely fast,
non-cryptographic hash function.
The hash is implemented in a few variants with slightly
different capabilities.
xxhash is also very usable for small data sets such
as hash tables / indexes etc.
Signed-off-by: Christian Melki <christian.melki@t2data.com>
---
rules/xxhash.in | 7 ++++++
rules/xxhash.make | 56 +++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 63 insertions(+)
create mode 100644 rules/xxhash.in
create mode 100644 rules/xxhash.make
diff --git a/rules/xxhash.in b/rules/xxhash.in
new file mode 100644
index 000000000..47e9c672a
--- /dev/null
+++ b/rules/xxhash.in
@@ -0,0 +1,7 @@
+## SECTION=system_libraries
+
+config XXHASH
+ tristate
+ prompt "xxhash"
+ help
+ Extremely fast non-cryptographic hash library.
diff --git a/rules/xxhash.make b/rules/xxhash.make
new file mode 100644
index 000000000..792fe58f0
--- /dev/null
+++ b/rules/xxhash.make
@@ -0,0 +1,56 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Christian Melki <christian.melki@t2data.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_XXHASH) += xxhash
+
+#
+# Paths and names
+#
+XXHASH_VERSION := 0.8.1
+XXHASH_MD5 := b67c587f5ff4894253da0095ba7ea393
+XXHASH := xxhash-$(XXHASH_VERSION)
+XXHASH_SUFFIX := tar.gz
+XXHASH_URL := https://github.com/Cyan4973/xxHash/archive/refs/tags/v$(XXHASH_VERSION).$(XXHASH_SUFFIX)
+XXHASH_SOURCE := $(SRCDIR)/$(XXHASH).$(XXHASH_SUFFIX)
+XXHASH_DIR := $(BUILDDIR)/$(XXHASH)
+XXHASH_LICENSE := BSD-2-Clause
+XXHASH_LICENSE_FILES := \
+ file://LICENSE;md5=cdfe7764d5685d8e08b3df302885d7f3
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+XXHASH_CONF_TOOL := NO
+
+XXHASH_MAKE_ENV := \
+ $(CROSS_ENV) \
+ prefix=/usr
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/xxhash.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, xxhash)
+ @$(call install_fixup, xxhash,PRIORITY,optional)
+ @$(call install_fixup, xxhash,SECTION,base)
+ @$(call install_fixup, xxhash,AUTHOR,"Christian Melki <christian.melki@t2data.com>")
+ @$(call install_fixup, xxhash,DESCRIPTION,missing)
+
+ @$(call install_lib, xxhash, 0, 0, 0644, libxxhash)
+
+ @$(call install_finish, xxhash)
+ @$(call touch)
+
+# vim: syntax=make
--
2.30.2
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
next reply other threads:[~2022-01-20 10:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-20 10:56 Christian Melki [this message]
2022-01-21 14:24 ` [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=20220120105607.300271-1-christian.melki@t2data.com \
--to=christian.melki@t2data.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