From: Peter Seiderer Date: Mon, 16 Apr 2018 19:39:49 +0000 (+0200) Subject: zstd: add host libzstd support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ce2a065afe7cfab68f802f540258047069ef609a;p=buildroot.git 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 Reviewed-by: "Yann E. MORIN" [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 --- 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))