aboutsummaryrefslogtreecommitdiff
path: root/package/xxhash
diff options
context:
space:
mode:
authorGravatar Ed Swierk <eswierk@skyportsystems.com>2015-07-16 13:59:35 -0700
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-09-19 15:52:40 +0200
commit2d6a1575acdcc0740a7f9f1517dd846746b10e62 (patch)
tree9469edf3b19c2e773c8eef2bf80b6a0d08ceadb6 /package/xxhash
parent9ebb123893db56ef402a742aca0eeda4224da987 (diff)
downloadbuildroot-2d6a1575acdcc0740a7f9f1517dd846746b10e62.tar.gz
buildroot-2d6a1575acdcc0740a7f9f1517dd846746b10e62.tar.bz2
xxhash: new package
"xxHash is an extremely fast hash algorithm, running at RAM speed limits." [Thomas: - tweak commit log title - add correct license and license files information, using the suggestion from Yann E. Morin - add $(TARGET_MAKE_ENV) in the environment in the build step.] Signed-off-by: Ed Swierk <eswierk@skyportsystems.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/xxhash')
-rw-r--r--package/xxhash/Config.in7
-rw-r--r--package/xxhash/xxhash.mk20
2 files changed, 27 insertions, 0 deletions
diff --git a/package/xxhash/Config.in b/package/xxhash/Config.in
new file mode 100644
index 0000000000..f2cccda2c5
--- /dev/null
+++ b/package/xxhash/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_XXHASH
+ bool "xxhash"
+ help
+ xxHash is an extremely fast hash algorithm, running at RAM
+ speed limits.
+
+ https://github.com/Cyan4973/xxHash
diff --git a/package/xxhash/xxhash.mk b/package/xxhash/xxhash.mk
new file mode 100644
index 0000000000..47ead7507e
--- /dev/null
+++ b/package/xxhash/xxhash.mk
@@ -0,0 +1,20 @@
+################################################################################
+#
+# xxhash
+#
+################################################################################
+
+XXHASH_VERSION = r40
+XXHASH_SITE = $(call github,Cyan4973,xxHash,$(XXHASH_VERSION))
+XXHASH_LICENSE = BSD-2c, GPLv2+
+XXHASH_LICENSE_FILES = LICENSE xxhsum.c
+
+define XXHASH_BUILD_CMDS
+ $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) xxhsum
+endef
+
+define XXHASH_INSTALL_TARGET_CMDS
+ $(INSTALL) -m 0755 -D $(@D)/xxhsum $(TARGET_DIR)/usr/bin/xxhsum
+endef
+
+$(eval $(generic-package))