Bump buildroot to 2019.02
This commit is contained in:
8
bsp/buildroot/package/zstd/Config.in.host
Normal file
8
bsp/buildroot/package/zstd/Config.in.host
Normal file
@@ -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
|
||||
@@ -1,5 +1,5 @@
|
||||
# Locally computed
|
||||
sha256 a77c47153ee7de02626c5b2a097005786b71688be61e9fb81806a011f90b297b zstd-v1.3.3.tar.gz
|
||||
sha256 d6e1559e4cdb7c4226767d4ddc990bff5f9aab77085ff0d0490c828b025e2eea zstd-v1.3.5.tar.gz
|
||||
|
||||
# License files (locally computed as well)
|
||||
sha256 2c1a7fa704df8f3a606f6fc010b8b5aaebf403f3aeec339a12048f1ba7331a0b LICENSE
|
||||
|
||||
@@ -4,8 +4,9 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ZSTD_VERSION = v1.3.3
|
||||
ZSTD_VERSION = v1.3.5
|
||||
ZSTD_SITE = $(call github,facebook,zstd,$(ZSTD_VERSION))
|
||||
ZSTD_INSTALL_STAGING = YES
|
||||
ZSTD_LICENSE = BSD-3-Clause or GPL-2.0
|
||||
ZSTD_LICENSE_FILES = LICENSE COPYING
|
||||
|
||||
@@ -36,14 +37,51 @@ else
|
||||
ZSTD_OPTS += HAVE_LZ4=0
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
ZSTD_BUILD_LIBS = libzstd.a
|
||||
ZSTD_INSTALL_LIBS = install-static
|
||||
else ifeq ($(BR2_SHARED_LIBS),y)
|
||||
ZSTD_BUILD_LIBS = libzstd
|
||||
ZSTD_INSTALL_LIBS = install-shared
|
||||
else
|
||||
ZSTD_BUILD_LIBS = libzstd.a libzstd
|
||||
ZSTD_INSTALL_LIBS = install-static install-shared
|
||||
endif
|
||||
|
||||
define ZSTD_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) $(ZSTD_OPTS) \
|
||||
-C $(@D)/lib $(ZSTD_BUILD_LIBS)
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) $(ZSTD_OPTS) \
|
||||
-C $(@D) zstd
|
||||
endef
|
||||
|
||||
define ZSTD_INSTALL_STAGING_CMDS
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) $(ZSTD_OPTS) \
|
||||
DESTDIR=$(STAGING_DIR) PREFIX=/usr -C $(@D)/lib \
|
||||
install-pc install-includes $(ZSTD_INSTALL_LIBS)
|
||||
endef
|
||||
|
||||
define ZSTD_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) $(ZSTD_OPTS) \
|
||||
DESTDIR=$(TARGET_DIR) PREFIX=/usr -C $(@D)/programs install
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) $(ZSTD_OPTS) \
|
||||
DESTDIR=$(TARGET_DIR) PREFIX=/usr -C $(@D)/lib $(ZSTD_INSTALL_LIBS)
|
||||
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
|
||||
$(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))
|
||||
$(eval $(host-generic-package))
|
||||
|
||||
Reference in New Issue
Block a user