Commit 683a964c authored by Sven Neumann's avatar Sven Neumann Committed by Peter Korsgaard
Browse files

libarchive: make bsdtar and bsdcpio binaries configurable



libarchive comes with two binaries, bsdtar and bsdcpio that used
to be installed by default. This change makes this configurable
with the default not to build and install the binaries.

Signed-off-by: default avatarSven Neumann <s.neumann@raumfeld.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent d7f5f04b
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -9,3 +9,18 @@ config BR2_PACKAGE_LIBARCHIVE

comment "libarchive requires a toolchain with WCHAR support"
	depends on !BR2_USE_WCHAR

config BR2_PACKAGE_LIBARCHIVE_BSDTAR
	bool "bsdtar"
	depends on BR2_PACKAGE_LIBARCHIVE
	help
	  The 'bsdtar' program is a full-featured 'tar'
	  replacement built on libarchive.

config BR2_PACKAGE_LIBARCHIVE_BSDCPIO
	bool "bsdcpio"
	depends on BR2_PACKAGE_LIBARCHIVE
	help
	  The 'bsdcpio' program is a different interface to
	  essentially the same functionality as 'bsdtar'.
+4 −0
Original line number Diff line number Diff line
@@ -10,4 +10,8 @@ LIBARCHIVE_LIBTOOL_PATCH = NO
LIBARCHIVE_INSTALL_STAGING = YES
LIBARCHIVE_INSTALL_TARGET = YES

LIBARCHIVE_CONF_OPT = \
	$(if $(BR2_PACKAGE_LIBARCHIVE_BSDTAR),--enable-bsdtar,--disable-bsdtar) \
	$(if $(BR2_PACKAGE_LIBARCHIVE_BSDCPIO),--enable-bsdcpio,--disable-bsdcpio)

$(eval $(call AUTOTARGETS,package,libarchive))