Initial Commit
- initial default booting image
This commit is contained in:
39
package/libarchive/Config.in
Normal file
39
package/libarchive/Config.in
Normal file
@@ -0,0 +1,39 @@
|
||||
comment "libarchive needs a toolchain w/ wchar"
|
||||
depends on !BR2_USE_WCHAR
|
||||
|
||||
config BR2_PACKAGE_LIBARCHIVE
|
||||
bool "libarchive"
|
||||
depends on BR2_USE_WCHAR
|
||||
help
|
||||
Libarchive is a reusable C library for reading and writing a
|
||||
variety of streaming archive formats.
|
||||
|
||||
https://www.libarchive.org/
|
||||
|
||||
if BR2_PACKAGE_LIBARCHIVE
|
||||
|
||||
config BR2_PACKAGE_LIBARCHIVE_BSDTAR
|
||||
bool "bsdtar"
|
||||
help
|
||||
The 'bsdtar' program is a full-featured 'tar'
|
||||
replacement built on libarchive.
|
||||
|
||||
config BR2_PACKAGE_LIBARCHIVE_BSDCPIO
|
||||
bool "bsdcpio"
|
||||
help
|
||||
The 'bsdcpio' program is a different interface to
|
||||
essentially the same functionality as 'bsdtar'.
|
||||
|
||||
config BR2_PACKAGE_LIBARCHIVE_BSDCAT
|
||||
bool "bsdcat"
|
||||
help
|
||||
The 'bsdcat' program is a simple replacement tool
|
||||
for zcat, bzcat, xzcat, and such.
|
||||
|
||||
config BR2_PACKAGE_LIBARCHIVE_BSDUNZIP
|
||||
bool "bsdunzip"
|
||||
help
|
||||
The 'bsdunzip' program is a simple replacement tool
|
||||
for Info-ZIP.
|
||||
|
||||
endif
|
||||
6
package/libarchive/libarchive.hash
Normal file
6
package/libarchive/libarchive.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# From https://github.com/libarchive/libarchive/releases/tag/v3.8.9
|
||||
# After verifying the pgp signature from:
|
||||
# https://www.libarchive.de/downloads/libarchive-3.8.9.tar.xz.asc
|
||||
sha256 888c934f9d95648ecb9163dc8e23ab80a476ecb81a8f1154704a227b5b676dde libarchive-3.8.9.tar.xz
|
||||
# Locally computed:
|
||||
sha256 30e556b3959e3985d66efefec5eaac51d4995053caa1d3cffe6eb916f146f229 COPYING
|
||||
170
package/libarchive/libarchive.mk
Normal file
170
package/libarchive/libarchive.mk
Normal file
@@ -0,0 +1,170 @@
|
||||
################################################################################
|
||||
#
|
||||
# libarchive
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBARCHIVE_VERSION = 3.8.9
|
||||
LIBARCHIVE_SOURCE = libarchive-$(LIBARCHIVE_VERSION).tar.xz
|
||||
LIBARCHIVE_SITE = https://www.libarchive.de/downloads
|
||||
LIBARCHIVE_INSTALL_STAGING = YES
|
||||
LIBARCHIVE_LICENSE = BSD-2-Clause, BSD-3-Clause, CC0-1.0, OpenSSL, Apache-2.0
|
||||
LIBARCHIVE_LICENSE_FILES = COPYING
|
||||
LIBARCHIVE_CPE_ID_VENDOR = libarchive
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBARCHIVE_BSDTAR),y)
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
LIBARCHIVE_CONF_OPTS += --enable-bsdtar=static
|
||||
else
|
||||
LIBARCHIVE_CONF_OPTS += --enable-bsdtar=shared
|
||||
endif
|
||||
else
|
||||
LIBARCHIVE_CONF_OPTS += --disable-bsdtar
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBARCHIVE_BSDCPIO),y)
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
LIBARCHIVE_CONF_OPTS += --enable-bsdcpio=static
|
||||
else
|
||||
LIBARCHIVE_CONF_OPTS += --enable-bsdcpio=shared
|
||||
endif
|
||||
else
|
||||
LIBARCHIVE_CONF_OPTS += --disable-bsdcpio
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBARCHIVE_BSDCAT),y)
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
LIBARCHIVE_CONF_OPTS += --enable-bsdcat=static
|
||||
else
|
||||
LIBARCHIVE_CONF_OPTS += --enable-bsdcat=shared
|
||||
endif
|
||||
else
|
||||
LIBARCHIVE_CONF_OPTS += --disable-bsdcat
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBARCHIVE_BSDUNZIP),y)
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
LIBARCHIVE_CONF_OPTS += --enable-bsdunzip=static
|
||||
else
|
||||
LIBARCHIVE_CONF_OPTS += --enable-bsdunzip=shared
|
||||
endif
|
||||
else
|
||||
LIBARCHIVE_CONF_OPTS += --disable-bsdunzip
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ACL),y)
|
||||
LIBARCHIVE_DEPENDENCIES += acl
|
||||
else
|
||||
LIBARCHIVE_CONF_OPTS += --disable-acl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ATTR),y)
|
||||
LIBARCHIVE_DEPENDENCIES += attr
|
||||
else
|
||||
LIBARCHIVE_CONF_OPTS += --disable-xattr
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
||||
LIBARCHIVE_CONF_OPTS += --with-bz2lib
|
||||
LIBARCHIVE_DEPENDENCIES += bzip2
|
||||
else
|
||||
LIBARCHIVE_CONF_OPTS += --without-bz2lib
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_EXPAT),y)
|
||||
LIBARCHIVE_DEPENDENCIES += expat
|
||||
else
|
||||
LIBARCHIVE_CONF_OPTS += --without-expat
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
||||
LIBARCHIVE_DEPENDENCIES += libiconv
|
||||
else
|
||||
LIBARCHIVE_CONF_OPTS += --without-libiconv-prefix
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBXML2),y)
|
||||
LIBARCHIVE_DEPENDENCIES += libxml2
|
||||
LIBARCHIVE_CONF_ENV += XML2_CONFIG=$(STAGING_DIR)/usr/bin/xml2-config
|
||||
else
|
||||
LIBARCHIVE_CONF_OPTS += --without-xml2
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LZ4),y)
|
||||
LIBARCHIVE_CONF_OPTS += --with-lz4
|
||||
LIBARCHIVE_DEPENDENCIES += lz4
|
||||
else
|
||||
LIBARCHIVE_CONF_OPTS += --without-lz4
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LZO),y)
|
||||
LIBARCHIVE_DEPENDENCIES += lzo
|
||||
else
|
||||
LIBARCHIVE_CONF_OPTS += --without-lzo2
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MBEDTLS),y)
|
||||
LIBARCHIVE_DEPENDENCIES += mbedtls
|
||||
LIBARCHIVE_CONF_OPTS += --with-mbedtls
|
||||
else
|
||||
LIBARCHIVE_CONF_OPTS += --without-mbedtls
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_NETTLE),y)
|
||||
LIBARCHIVE_DEPENDENCIES += nettle
|
||||
LIBARCHIVE_CONF_OPTS += --with-nettle
|
||||
else
|
||||
LIBARCHIVE_CONF_OPTS += --without-nettle
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
LIBARCHIVE_DEPENDENCIES += openssl
|
||||
else
|
||||
LIBARCHIVE_CONF_OPTS += --without-openssl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
LIBARCHIVE_DEPENDENCIES += zlib
|
||||
else
|
||||
LIBARCHIVE_CONF_OPTS += --without-zlib
|
||||
endif
|
||||
|
||||
# libarchive requires LZMA with thread support in the toolchain
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS)$(BR2_PACKAGE_XZ),yy)
|
||||
LIBARCHIVE_DEPENDENCIES += xz
|
||||
LIBARCHIVE_CONF_OPTS += --with-lzma
|
||||
else
|
||||
LIBARCHIVE_CONF_OPTS += --without-lzma
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZSTD),y)
|
||||
LIBARCHIVE_DEPENDENCIES += zstd
|
||||
LIBARCHIVE_CONF_OPTS += --with-zstd
|
||||
else
|
||||
LIBARCHIVE_CONF_OPTS += --without-zstd
|
||||
endif
|
||||
|
||||
# The only user of host-libarchive needs zlib support
|
||||
HOST_LIBARCHIVE_DEPENDENCIES = host-zlib
|
||||
# needed for autoreconf
|
||||
HOST_LIBARCHIVE_DEPENDENCIES += host-pkgconf
|
||||
HOST_LIBARCHIVE_CONF_OPTS = \
|
||||
--disable-bsdtar \
|
||||
--disable-bsdcpio \
|
||||
--disable-bsdcat \
|
||||
--disable-acl \
|
||||
--disable-xattr \
|
||||
--without-bz2lib \
|
||||
--without-expat \
|
||||
--without-libiconv-prefix \
|
||||
--without-xml2 \
|
||||
--without-lz4 \
|
||||
--without-lzo2 \
|
||||
--without-mbedtls \
|
||||
--without-nettle \
|
||||
--without-openssl \
|
||||
--without-lzma \
|
||||
--without-zstd
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
Reference in New Issue
Block a user