Initial Commit
- initial default booting image
This commit is contained in:
15
package/xz/Config.in
Normal file
15
package/xz/Config.in
Normal file
@@ -0,0 +1,15 @@
|
||||
config BR2_PACKAGE_XZ
|
||||
bool "xz-utils"
|
||||
help
|
||||
XZ is the successor to the Lempel-Ziv/Markov-chain Algorithm
|
||||
compression format, which provides memory-hungry but
|
||||
powerful compression (often better than bzip2) and fast,
|
||||
easy decompression.
|
||||
|
||||
This package provides the command line tools for working
|
||||
with XZ compression, including xz, unxz, xzcat, xzgrep, and
|
||||
so on. They can also handle the older LZMA format, and if
|
||||
invoked via appropriate symlinks will emulate the behavior
|
||||
of the commands in the lzma package.
|
||||
|
||||
https://tukaani.org/xz/
|
||||
9
package/xz/xz.hash
Normal file
9
package/xz/xz.hash
Normal file
@@ -0,0 +1,9 @@
|
||||
# From https://github.com/tukaani-project/xz/releases/tag/v5.8.3
|
||||
sha256 33bf69c0d6c698e83a68f77e6c1f465778e418ca0b3d59860d3ab446f4ac99a6 xz-5.8.3.tar.bz2
|
||||
|
||||
# Hash for license files
|
||||
sha256 616a3ad264ce29b8f1cb97e53037b139d406899ca8d1f799651e17bfa09830b8 COPYING
|
||||
sha256 0b01625d853911cd0e2e088dcfb743261034a091bb379246cb25a14cc4c74bf1 COPYING.0BSD
|
||||
sha256 edaef632cbb643e4e7a221717a6c441a4c1a7c918e6e4d56debc3d8739b233f6 COPYING.GPLv2
|
||||
sha256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986 COPYING.GPLv3
|
||||
sha256 20e50fe7aae3e56378ebf0417d9de904f55a0e61e4df315333e632a4d3555d95 COPYING.LGPLv2.1
|
||||
81
package/xz/xz.mk
Normal file
81
package/xz/xz.mk
Normal file
@@ -0,0 +1,81 @@
|
||||
################################################################################
|
||||
#
|
||||
# xz
|
||||
#
|
||||
################################################################################
|
||||
|
||||
XZ_VERSION = 5.8.3
|
||||
XZ_SOURCE = xz-$(XZ_VERSION).tar.bz2
|
||||
XZ_SITE = https://github.com/tukaani-project/xz/releases/download/v$(XZ_VERSION)
|
||||
XZ_INSTALL_STAGING = YES
|
||||
XZ_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
|
||||
XZ_LICENSE = 0BSD, GPL-2.0+, GPL-3.0+, LGPL-2.1+, FSFUL, FSFULLR, Public Domain
|
||||
XZ_LICENSE_FILES = COPYING COPYING.0BSD COPYING.GPLv2 COPYING.GPLv3 COPYING.LGPLv2.1
|
||||
XZ_CPE_ID_VENDOR = tukaani
|
||||
# autoreconf needed to fix a musl static build failure
|
||||
XZ_AUTORECONF = YES
|
||||
|
||||
# The package is a dependency to ccache so ccache cannot be a dependency
|
||||
HOST_XZ_ADD_CCACHE_DEPENDENCY = NO
|
||||
|
||||
XZ_CONF_OPTS = \
|
||||
--enable-encoders=lzma1,lzma2,delta,x86,powerpc,ia64,arm,armthumb,arm64,sparc,riscv \
|
||||
--enable-decoders=lzma1,lzma2,delta,x86,powerpc,ia64,arm,armthumb,arm64,sparc,riscv \
|
||||
--enable-match-finders=hc3,hc4,bt2,bt3,bt4 \
|
||||
--enable-checks=crc32,crc64,sha256 \
|
||||
--disable-external-sha256 \
|
||||
--enable-microlzma \
|
||||
--enable-lzip-decoder \
|
||||
--enable-assembler \
|
||||
--enable-clmul-crc \
|
||||
--enable-arm64-crc32 \
|
||||
--disable-small \
|
||||
--enable-assume-ram=128 \
|
||||
--enable-xz \
|
||||
--enable-xzdec \
|
||||
--enable-lzmadec \
|
||||
--enable-lzmainfo \
|
||||
--enable-lzma-links \
|
||||
--enable-scripts \
|
||||
--enable-sandbox=auto \
|
||||
--enable-symbol-versions \
|
||||
--enable-rpath \
|
||||
--enable-largefile \
|
||||
--enable-unaligned-access=auto \
|
||||
--disable-unsafe-type-punning \
|
||||
--disable-werror \
|
||||
--enable-year2038
|
||||
|
||||
ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
|
||||
XZ_CONF_OPTS += --enable-nls
|
||||
else
|
||||
XZ_CONF_OPTS += --disable-nls
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
||||
XZ_CONF_OPTS += --enable-threads
|
||||
else
|
||||
XZ_CONF_OPTS += --disable-threads
|
||||
endif
|
||||
|
||||
HOST_XZ_CONF_OPTS = \
|
||||
$(XZ_CONF_OPTS) \
|
||||
--enable-nls \
|
||||
--enable-threads
|
||||
|
||||
# we are built before ccache
|
||||
HOST_XZ_CONF_ENV = \
|
||||
CC="$(HOSTCC_NOCCACHE)" \
|
||||
CXX="$(HOSTCXX_NOCCACHE)"
|
||||
|
||||
# We need to prevent XZ_AUTORECONF for host builds or we end up with a
|
||||
# circular dependency. Since the autoconf build needs to extract a
|
||||
# tar.xz archive, autoconf has an implicit dependency on HOST_XZ. By
|
||||
# enabling XZ_AUTORECONF we also make host-xz depend on autoconf,
|
||||
# which we can't do. It is also not necessary as we're autoreconfuring
|
||||
# the target package to fix static build with musl, which is
|
||||
# irrelevant for the host package.
|
||||
HOST_XZ_AUTORECONF = NO
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
Reference in New Issue
Block a user