aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-01-05 16:48:31 -0500
committerH. Peter Anvin <hpa@zytor.com>2009-01-05 16:48:31 -0500
commitc8531ab343dec88ed8005e403b1b304c710b7494 (patch)
tree40bef451a13ca4b3d54645e69d03c14631364e89
parent2e9f3bddcbc711bb14d86c6f068a779bf3710247 (diff)
bzip2/lzma: proper Kconfig dependencies for the ramdisk options
Impact: Partial resolution of build failure Make all the compression algorithms properly configurable, and make sure the ramdisk options pull in the proper compression algorithms, as they should. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--drivers/block/Kconfig20
-rw-r--r--lib/Kconfig13
-rw-r--r--lib/Makefile7
3 files changed, 29 insertions, 11 deletions
diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig
index 79559444242..cc9fa69c1ce 100644
--- a/drivers/block/Kconfig
+++ b/drivers/block/Kconfig
@@ -358,10 +358,20 @@ config BLK_DEV_XIP
358 will prevent RAM block device backing store memory from being 358 will prevent RAM block device backing store memory from being
359 allocated from highmem (only a problem for highmem systems). 359 allocated from highmem (only a problem for highmem systems).
360 360
361config RD_GZIP
362 bool "Initial ramdisk compressed using gzip"
363 default y
364 depends on BLK_DEV_INITRD=y
365 select DECOMPRESS_GZIP
366 help
367 Support loading of a gzip encoded initial ramdisk or cpio buffer.
368 If unsure, say Y.
369
361config RD_BZIP2 370config RD_BZIP2
362 bool "Initial ramdisk compressed using bzip2" 371 bool "Initial ramdisk compressed using bzip2"
363 default n 372 default n
364 depends on BLK_DEV_INITRD=y 373 depends on BLK_DEV_INITRD=y
374 select DECOMPRESS_BZIP2
365 help 375 help
366 Support loading of a bzip2 encoded initial ramdisk or cpio buffer 376 Support loading of a bzip2 encoded initial ramdisk or cpio buffer
367 If unsure, say N. 377 If unsure, say N.
@@ -370,19 +380,11 @@ config RD_LZMA
370 bool "Initial ramdisk compressed using lzma" 380 bool "Initial ramdisk compressed using lzma"
371 default n 381 default n
372 depends on BLK_DEV_INITRD=y 382 depends on BLK_DEV_INITRD=y
383 select DECOMPRESS_LZMA
373 help 384 help
374 Support loading of a lzma encoded initial ramdisk or cpio buffer 385 Support loading of a lzma encoded initial ramdisk or cpio buffer
375 If unsure, say N. 386 If unsure, say N.
376 387
377config RD_GZIP
378 bool "Initial ramdisk compressed using gzip"
379 default y
380 depends on BLK_DEV_INITRD=y
381 select ZLIB_INFLATE
382 help
383 Support loading of a gzip encoded initial ramdisk or cpio buffer.
384 If unsure, say Y.
385
386config CDROM_PKTCDVD 388config CDROM_PKTCDVD
387 tristate "Packet writing on CD/DVD media" 389 tristate "Packet writing on CD/DVD media"
388 depends on !UML 390 depends on !UML
diff --git a/lib/Kconfig b/lib/Kconfig
index 03c2c24b908..e37f061fd32 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -98,6 +98,19 @@ config LZO_DECOMPRESS
98 tristate 98 tristate
99 99
100# 100#
101# These all provide a common interface (hence the apparent duplication with
102# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.)
103#
104config DECOMPRESS_GZIP
105 tristate
106
107config DECOMPRESS_BZIP2
108 tristate
109
110config DECOMPRESS_LZMA
111 tristate
112
113#
101# Generic allocator support is selected if needed 114# Generic allocator support is selected if needed
102# 115#
103config GENERIC_ALLOCATOR 116config GENERIC_ALLOCATOR
diff --git a/lib/Makefile b/lib/Makefile
index e2a21d5a264..d9ac5a414fa 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -11,8 +11,7 @@ lib-y := ctype.o string.o vsprintf.o cmdline.o \
11 rbtree.o radix-tree.o dump_stack.o \ 11 rbtree.o radix-tree.o dump_stack.o \
12 idr.o int_sqrt.o extable.o prio_tree.o \ 12 idr.o int_sqrt.o extable.o prio_tree.o \
13 sha1.o irq_regs.o reciprocal_div.o argv_split.o \ 13 sha1.o irq_regs.o reciprocal_div.o argv_split.o \
14 proportions.o prio_heap.o ratelimit.o show_mem.o is_single_threaded.o \ 14 proportions.o prio_heap.o ratelimit.o show_mem.o is_single_threaded.o
15 decompress_inflate.o decompress_bunzip2.o decompress_unlzma.o
16 15
17lib-$(CONFIG_MMU) += ioremap.o 16lib-$(CONFIG_MMU) += ioremap.o
18lib-$(CONFIG_SMP) += cpumask.o 17lib-$(CONFIG_SMP) += cpumask.o
@@ -66,6 +65,10 @@ obj-$(CONFIG_REED_SOLOMON) += reed_solomon/
66obj-$(CONFIG_LZO_COMPRESS) += lzo/ 65obj-$(CONFIG_LZO_COMPRESS) += lzo/
67obj-$(CONFIG_LZO_DECOMPRESS) += lzo/ 66obj-$(CONFIG_LZO_DECOMPRESS) += lzo/
68 67
68obj-$(CONFIG_DECOMPRESS_GZIP) += decompress_inflate.o
69obj-$(CONFIG_DECOMPRESS_BZIP2) += decompress_bunzip2.o
70obj-$(CONFIG_DECOMPRESS_LZMA) += decompress_unlzma.o
71
69obj-$(CONFIG_TEXTSEARCH) += textsearch.o 72obj-$(CONFIG_TEXTSEARCH) += textsearch.o
70obj-$(CONFIG_TEXTSEARCH_KMP) += ts_kmp.o 73obj-$(CONFIG_TEXTSEARCH_KMP) += ts_kmp.o
71obj-$(CONFIG_TEXTSEARCH_BM) += ts_bm.o 74obj-$(CONFIG_TEXTSEARCH_BM) += ts_bm.o