* [Buildroot] [PATCH] libarchive: make bsdtar and bsdcpio binaries configurable
@ 2009-10-20 20:31 Sven Neumann
2009-10-20 20:37 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Sven Neumann @ 2009-10-20 20:31 UTC (permalink / raw)
To: buildroot
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.
---
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..079e0f8 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.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] libarchive: make bsdtar and bsdcpio binaries configurable
2009-10-20 20:31 [Buildroot] [PATCH] libarchive: make bsdtar and bsdcpio binaries configurable Sven Neumann
@ 2009-10-20 20:37 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2009-10-20 20:37 UTC (permalink / raw)
To: buildroot
>>>>> "Sven" == Sven Neumann <s.neumann@raumfeld.com> writes:
Sven> libarchive comes with two binaries, bsdtar and bsdcpio that used
Sven> to be installed by default. This change makes this configurable
Sven> with the default not to build and install the binaries.
Sven> ---
Sven> package/libarchive/Config.in | 15 +++++++++++++++
Sven> package/libarchive/libarchive.mk | 4 ++++
Sven> 2 files changed, 19 insertions(+), 0 deletions(-)
Sven> diff --git a/package/libarchive/Config.in b/package/libarchive/Config.in
Sven> index 9154861..079e0f8 100644
Sven> --- a/package/libarchive/Config.in
Sven> +++ b/package/libarchive/Config.in
Sven> @@ -9,3 +9,18 @@ config BR2_PACKAGE_LIBARCHIVE
Sven> comment "libarchive requires a toolchain with WCHAR support"
Sven> depends on !BR2_USE_WCHAR
Sven> +
Sven> +config BR2_PACKAGE_LIBARCHIVE_BSDTAR
Sven> + bool "bsdtar"
Sven> + depends on BR2_PACKAGE_LIBARCHIVE
Sven> + help
Sven> + The 'bsdtar' program is a full-featured 'tar'
Sven> + replacement built on libarchive.
Indentation of 2nd line here and below is wrong - Other than that it
looks good, committed.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-10-20 20:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-20 20:31 [Buildroot] [PATCH] libarchive: make bsdtar and bsdcpio binaries configurable Sven Neumann
2009-10-20 20:37 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox