Bump buidlroot version to 2018.02.6
This commit is contained in:
12
bsp/buildroot/package/zstd/Config.in
Normal file
12
bsp/buildroot/package/zstd/Config.in
Normal file
@@ -0,0 +1,12 @@
|
||||
config 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
|
||||
6
bsp/buildroot/package/zstd/zstd.hash
Normal file
6
bsp/buildroot/package/zstd/zstd.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# Locally computed
|
||||
sha256 a77c47153ee7de02626c5b2a097005786b71688be61e9fb81806a011f90b297b zstd-v1.3.3.tar.gz
|
||||
|
||||
# License files (locally computed as well)
|
||||
sha256 2c1a7fa704df8f3a606f6fc010b8b5aaebf403f3aeec339a12048f1ba7331a0b LICENSE
|
||||
sha256 f9c375a1be4a41f7b70301dd83c91cb89e41567478859b77eef375a52d782505 COPYING
|
||||
49
bsp/buildroot/package/zstd/zstd.mk
Normal file
49
bsp/buildroot/package/zstd/zstd.mk
Normal file
@@ -0,0 +1,49 @@
|
||||
################################################################################
|
||||
#
|
||||
# zstd
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ZSTD_VERSION = v1.3.3
|
||||
ZSTD_SITE = $(call github,facebook,zstd,$(ZSTD_VERSION))
|
||||
ZSTD_LICENSE = BSD-3-Clause or GPL-2.0
|
||||
ZSTD_LICENSE_FILES = LICENSE COPYING
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
||||
ZSTD_OPTS += HAVE_THREAD=1
|
||||
else
|
||||
ZSTD_OPTS += HAVE_THREAD=0
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
ZSTD_DEPENDENCIES += zlib
|
||||
ZSTD_OPTS += HAVE_ZLIB=1
|
||||
else
|
||||
ZSTD_OPTS += HAVE_ZLIB=0
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XZ),y)
|
||||
ZSTD_DEPENDENCIES += xz
|
||||
ZSTD_OPTS += HAVE_LZMA=1
|
||||
else
|
||||
ZSTD_OPTS += HAVE_LZMA=0
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LZ4),y)
|
||||
ZSTD_DEPENDENCIES += lz4
|
||||
ZSTD_OPTS += HAVE_LZ4=1
|
||||
else
|
||||
ZSTD_OPTS += HAVE_LZ4=0
|
||||
endif
|
||||
|
||||
define ZSTD_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) $(ZSTD_OPTS) \
|
||||
-C $(@D) zstd
|
||||
endef
|
||||
|
||||
define ZSTD_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) $(ZSTD_OPTS) \
|
||||
DESTDIR=$(TARGET_DIR) PREFIX=/usr -C $(@D)/programs install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user