xref: /OK3568_Linux_fs/buildroot/package/zlib/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1config BR2_PACKAGE_ZLIB_NG_ARCH_SUPPORTS
2	bool
3	default y if BR2_arm
4	default y if BR2_aarch64
5	default y if BR2_i386
6	default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
7	default y if BR2_s390x
8	default y if BR2_x86_64
9
10config BR2_PACKAGE_ZLIB
11	bool "zlib support"
12	help
13	  Select the desired Zlib library provider.
14
15if BR2_PACKAGE_ZLIB
16
17choice
18	prompt "zlib variant"
19	default BR2_PACKAGE_LIBZLIB
20	help
21	  Select the desired Zlib library provider.
22
23config BR2_PACKAGE_LIBZLIB
24	bool "zlib"
25	select BR2_PACKAGE_HAS_ZLIB
26	help
27	  Standard (de)compression library. Used by things like
28	  gzip and libpng.
29
30	  http://www.zlib.net
31
32config BR2_PACKAGE_ZLIB_NG
33	bool "zlib-ng"
34	depends on BR2_PACKAGE_ZLIB_NG_ARCH_SUPPORTS
35	select BR2_PACKAGE_HAS_ZLIB
36	help
37	  Zlib replacement with optimizations for
38	  "next generation" systems.
39
40	  https://github.com/zlib-ng/zlib-ng
41
42endchoice
43
44config BR2_PACKAGE_HAS_ZLIB
45	bool
46
47config BR2_PACKAGE_PROVIDES_ZLIB
48	string
49	default "libzlib" if BR2_PACKAGE_LIBZLIB
50	default "zlib-ng" if BR2_PACKAGE_ZLIB_NG
51
52endif
53
54# ensure libzlib is used for the host variant
55config BR2_PACKAGE_PROVIDES_HOST_ZLIB
56	string
57	default "host-libzlib"
58