libarchive: make bsdtar and bsdcpio binaries configurable
authorSven Neumann <s.neumann@raumfeld.com>
Tue, 20 Oct 2009 20:31:48 +0000 (22:31 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 20 Oct 2009 20:37:49 +0000 (22:37 +0200)
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: Sven Neumann <s.neumann@raumfeld.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/libarchive/Config.in
package/libarchive/libarchive.mk

index 9154861c08d7c87abae2338bcdc56b078d36c917..38928b00f25488234252dee0fcd48dbc88f6189c 100644 (file)
@@ -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'.
+
index 472e34bd4386c36f3a9672475f7bf7b7ad6e4a9f..32f68f7403f333613222804b04737a2a79766cfd 100644 (file)
@@ -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))