[Buildroot] [git commit master] libarchive: make bsdtar and bsdcpio binaries configurable

Peter Korsgaard jacmet at sunsite.dk
Tue Oct 20 20:37:49 UTC 2009


commit: http://git.buildroot.net/buildroot/commit/?id=683a964c8f6bcf2b1ecc58460661e9d3bb98908b
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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 at raumfeld.com>
Signed-off-by: Peter Korsgaard <jacmet at sunsite.dk>
---
 package/libarchive/Config.in     |   15 +++++++++++++++
 package/libarchive/libarchive.mk |    4 ++++
 2 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/package/libarchive/Config.in b/package/libarchive/Config.in
index 9154861..38928b0 100644
--- a/package/libarchive/Config.in
+++ b/package/libarchive/Config.in
@@ -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'.
+
diff --git a/package/libarchive/libarchive.mk b/package/libarchive/libarchive.mk
index 472e34b..32f68f7 100644
--- a/package/libarchive/libarchive.mk
+++ b/package/libarchive/libarchive.mk
@@ -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))
-- 
1.6.3.3



More information about the buildroot mailing list