diff options
| author | Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> | 2018-07-04 09:07:37 +0200 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@bootlin.com> | 2018-07-04 21:53:37 +0200 |
| commit | c76380dd7c5d7c7a0827ea9619413664fd5c9773 (patch) | |
| tree | 8ea66ea1ee8c4b03dac9cdb2c037ce2ec9593ef5 /package/zstd | |
| parent | 63d76c6f2f04c836af24098e26f2befe1e8e4cc4 (diff) | |
| download | buildroot-c76380dd7c5d7c7a0827ea9619413664fd5c9773.tar.gz buildroot-c76380dd7c5d7c7a0827ea9619413664fd5c9773.zip | |
zstd: build program and add menuconfig entry for host variant
The zstd (de)compression tool may be used in post-image scripts to
compress certain elements of the final image.
In order to allow that, make host-zstd selectable in the 'Host
utilities' menu, and build the binary in addition to the library.
Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/zstd')
| -rw-r--r-- | package/zstd/Config.in.host | 8 | ||||
| -rw-r--r-- | package/zstd/zstd.mk | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/package/zstd/Config.in.host b/package/zstd/Config.in.host new file mode 100644 index 0000000000..05751f8fbf --- /dev/null +++ b/package/zstd/Config.in.host @@ -0,0 +1,8 @@ +config BR2_PACKAGE_HOST_ZSTD + bool "host 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 + + https://facebook.github.io/zstd diff --git a/package/zstd/zstd.mk b/package/zstd/zstd.mk index 4915cee07d..0b613a6da4 100644 --- a/package/zstd/zstd.mk +++ b/package/zstd/zstd.mk @@ -72,11 +72,15 @@ endef define HOST_ZSTD_BUILD_CMDS $(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) \ -C $(@D)/lib + $(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) \ + -C $(@D) zstd endef define HOST_ZSTD_INSTALL_CMDS $(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) \ DESTDIR=$(HOST_DIR) PREFIX=/usr -C $(@D)/lib install + $(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) \ + DESTDIR=$(HOST_DIR) PREFIX=/usr -C $(@D)/programs install endef $(eval $(generic-package)) |

