summaryrefslogtreecommitdiffstats
path: root/package/zlib/Config.in
diff options
context:
space:
mode:
authorStefan Fröberg <stefan.froberg@petroprogram.com>2017-11-29 23:17:13 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2018-01-03 22:42:04 +0100
commiteb1a657880992a9eafb639a666a8b3ec0928f14c (patch)
tree7dd8a4c673037b486698025dcd47cf8267a3b512 /package/zlib/Config.in
parent287775d241b90993de3d0da3af11e72b5c406084 (diff)
downloadbuildroot-eb1a657880992a9eafb639a666a8b3ec0928f14c.tar.gz
buildroot-eb1a657880992a9eafb639a666a8b3ec0928f14c.zip
zlib: switch to a virtual package
The existing zlib package is renamed to libzlib, and zlib is turned into a virtual package. This is done in preparation to the introduction of zlib-ng as an alternative implementation. Signed-off-by: Stefan Fröberg <stefan.froberg@petroprogram.com> [Thomas: define BR2_PACKAGE_PROVIDES_HOST_ZLIB as suggested by Yann E. Morin.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/zlib/Config.in')
-rw-r--r--package/zlib/Config.in30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/zlib/Config.in b/package/zlib/Config.in
index 6201aba142..bdc1da6056 100644
--- a/package/zlib/Config.in
+++ b/package/zlib/Config.in
@@ -1,7 +1,37 @@
config BR2_PACKAGE_ZLIB
+ bool "zlib support"
+ help
+ Select the desired Zlib library provider.
+
+if BR2_PACKAGE_ZLIB
+
+choice
+ prompt "zlib variant"
+ default BR2_PACKAGE_LIBZLIB
+ help
+ Select the desired Zlib library provider.
+
+config BR2_PACKAGE_LIBZLIB
bool "zlib"
+ select BR2_PACKAGE_HAS_ZLIB
help
Standard (de)compression library. Used by things like
gzip and libpng.
http://www.zlib.net
+
+endchoice
+
+config BR2_PACKAGE_HAS_ZLIB
+ bool
+
+config BR2_PACKAGE_PROVIDES_ZLIB
+ string
+ default "libzlib" if BR2_PACKAGE_LIBZLIB
+
+endif
+
+# ensure libzlib is used for the host variant
+config BR2_PACKAGE_PROVIDES_HOST_ZLIB
+ string
+ default "host-libzlib"
OpenPOWER on IntegriCloud