Skip to contentSkip to conversation

zstd: add new package

PATCH New Andrey Smirnov 2 participants 2 messages Jul 25, 2017 Zstd

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 zstd: add new package

Add package to provide Zstandard compression tools (see https://facebook.github.io/zstd)

Minimal config snippet for utils/test-pkg is as follows:

BR2_PACKAGE_ZSTD=y

---

Changes since [v3]:

- Add license files' hashes and move URL to the end of help text as per feedback from Baruch Siach

Changes since [v2]:

- Bump package version to the latest release: 1.3.0

Changes since [v1]:

- Remove all excessive configuration options and simplify installation rules to just calling "make install"

- Add support for HAVE_LZ4

- Add missing hash file

[v1] http://lists.busybox.net/pipermail/buildroot/2017-July/196739.html
[v2] http://lists.busybox.net/pipermail/buildroot/2017-July/197641.html
[v3] http://lists.busybox.net/pipermail/buildroot/2017-July/199044.html

 DEVELOPERS             |  1 +
 package/Config.in      |  1 +
 package/zstd/Config.in | 13 +++++++++++++
 package/zstd/zstd.hash |  7 +++++++
 package/zstd/zstd.mk   | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 71 insertions(+)
 create mode 100644 package/zstd/Config.in
 create mode 100644 package/zstd/zstd.hash
 create mode 100644 package/zstd/zstd.mk
DEVELOPERS +1 -0
index 7c9b5ed6e3..7e5c878a81 100644
@@ -100,6 +100,7 @@ F:	package/python-scandir/
 F:	package/python-simplegeneric/
 F:	package/python-systemd/
 F:	package/python-traitlets/
+F:	package/zstd/
 
 N:	Andrey Yurovsky <[email protected]>
 F:	package/rauc/
package/Config.in +1 -0
index 59db51e20c..390477072d 100644
@@ -73,6 +73,7 @@ menu "Compressors and decompressors"
 	source "package/unzip/Config.in"
 	source "package/xz/Config.in"
 	source "package/zip/Config.in"
+	source "package/zstd/Config.in"
 endmenu
 
 menu "Debugging, profiling and benchmark"
package/zstd/Config.in new file +13 -0
new file mode 100644
index 0000000000..340a06969a
@@ -0,0 +1,13 @@
+menuconfig BR2_PACKAGE_ZSTD
+	bool "zstd"
+	help
+	  Zstandard, or zstd as short version, is a fast lossless
+	  compression algorithm, targeting real-time compression
+	  scenarios at zlib-level and better compression ratios
+
+	  The selection of other packages will enable some features:
+
+	  - xz, lz4 and/or zlib will enable support for corresponding
+	    compression formats
+
+	  https://facebook.github.io/zstd
\ No newline at end of file
package/zstd/zstd.hash new file +7 -0
new file mode 100644
index 0000000000..f8c56fbced
@@ -0,0 +1,7 @@
+# Locally computed
+sha256 0fdba643b438b7cbce700dcc0e7b3e3da6d829088c63757a5984930e2f70b348 zstd-v1.3.0.tar.gz
+
+# License files (locally computed as well)
+sha256 2c1a7fa704df8f3a606f6fc010b8b5aaebf403f3aeec339a12048f1ba7331a0b LICENSE
+sha256 3a508245dd3c486bb9d78a8269091322359443ea54612c3648327a0b3512f23f PATENTS
+
package/zstd/zstd.mk new file +49 -0

49 lines not on this page · raw message

Signature · 1 line
2.13.3
#1 lore raw

PATCH v4 1/1 zstd: add new package

Hello,

Quoted 9 lines · Andrey Smirnov

Add package to provide Zstandard compression tools (see https://facebook.github.io/zstd)

Minimal config snippet for utils/test-pkg is as follows:

BR2_PACKAGE_ZSTD=y

---

Applied with the following changes:

[Thomas:
- use "config" instead of "menuconfig" in Config.in
- add missing final newline in Config.in
- pass DESTDIR=$(TARGET_DIR) only at install time
- wrap too long lines in the .mk file
- remove useless empty newline at end of .hash file.]

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com