summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Seiderer <ps.report@gmx.net>2018-04-16 21:39:49 +0200
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-04-25 23:36:48 +0200
commitce2a065afe7cfab68f802f540258047069ef609a (patch)
treeb751e9d2a482f99f735e0eb31f3f80a4bda281ec
parent10d4c1222ae99abf409a471b4649fdb1861bcf80 (diff)
downloadbuildroot-ce2a065afe7cfab68f802f540258047069ef609a.tar.gz
buildroot-ce2a065afe7cfab68f802f540258047069ef609a.zip
zstd: add host libzstd support
For the host only the libzstd library is built (no need for host-lz4 host-xz host-zlib dependencies because they affect only the cmdline tool). Signed-off-by: Peter Seiderer <ps.report@gmx.net> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> [Thomas: use '-C $(@D)/lib' instead of '-C $(@D) lib' at build time, to be consistent with what is done at install time, as suggested by Yann E. Morin.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/zstd/zstd.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/zstd/zstd.mk b/package/zstd/zstd.mk
index c0fa88026c..5376e86c43 100644
--- a/package/zstd/zstd.mk
+++ b/package/zstd/zstd.mk
@@ -46,4 +46,16 @@ define ZSTD_INSTALL_TARGET_CMDS
DESTDIR=$(TARGET_DIR) PREFIX=/usr -C $(@D)/programs install
endef
+# note: no 'HAVE_...' options for host library build only
+define HOST_ZSTD_BUILD_CMDS
+ $(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) \
+ -C $(@D)/lib
+endef
+
+define HOST_ZSTD_INSTALL_CMDS
+ $(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) \
+ DESTDIR=$(HOST_DIR) PREFIX=/usr -C $(@D)/lib install
+endef
+
$(eval $(generic-package))
+$(eval $(host-generic-package))
OpenPOWER on IntegriCloud