Skip to contentSkip to conversation

Enable CONFIG_KLIBC_ZLIB (now required to build kinit)

PATCH In review H. Peter Anvin 2 participants 3 messages Jun 26, 2006 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 12/43 Enable CONFIG_KLIBC_ZLIB (now required to build kinit)

After removing the private copy of zlib in kinit, we need CONFIG_KLIBC_ZLIB in order to build klibc. zlib is required in order to decompress classical ramdisks.

In the future this should maybe be made conditional on CONFIG_BLK_DEV_RAM.

---
commit baacd5d81ff7151e8df3893850ec363441886a1e
tree 0075da4cf5c328f29a89c98e053a5b2cd5e50afe
parent d669be433cc9bc413d958e140f8ec47211498a2a
author H. Peter Anvin <[email protected]> Mon, 01 May 2006 02:51:52 -0700 committer H. Peter Anvin <[email protected]> Sun, 18 Jun 2006 18:47:36 -0700

 usr/Kconfig |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
usr/Kconfig +4 -0
index ea3b520..4103a02 100644
@@ -48,3 +48,7 @@ config INITRAMFS_ROOT_GID
 config KLIBC_ERRLIST
 	bool
 	default y
+
+config KLIBC_ZLIB
+	bool
+	default y
#1 lore raw

usr/Kconfig config INITRAMFS_ROOT_GID · line 54

Quoted 9 lines · H. Peter Anvin

After removing the private copy of zlib in kinit, we need CONFIG_KLIBC_ZLIB in order to build klibc. zlib is required in order to decompress classical ramdisks.

In the future this should maybe be made conditional on CONFIG_BLK_DEV_RAM.

usr/Kconfig +3 -0
+config KLIBC_ZLIB
+	bool
+	default y

Dumb question, then: why not make it conditional on rd now?

Jeff

#2 lore raw
Quoted 5 lines · Jeff Garzik
Quoted 4 lines · H. Peter Anvin

After removing the private copy of zlib in kinit, we need CONFIG_KLIBC_ZLIB in order to build klibc. zlib is required in order to decompress classical ramdisks.

Quoted 9 lines

usr/Kconfig config INITRAMFS_ROOT_GID · line 54

Quoted 5 lines

In the future this should maybe be made conditional on CONFIG_BLK_DEV_RAM.

usr/Kconfig +3 -0
+config KLIBC_ZLIB
+    bool
+    default y

Dumb question, then: why not make it conditional on rd now?

Mostly because I haven't yet broken down kinit in configurable chunks; it's somewhat messy to do as long as I'm maintaining a standalone distribution as well as the out-of-mainline kernel tree. Not difficult by any means, but I've wanted to avoid combinatorics and code churn as long as I have a limited testing base (although -mm has vastly increased it.)

It's also unclear to me if it's the right thing to omit it from the library, ever; the only users that are affected are the ones that are using the shared klibc and don't have any use of zlib.

-hpa