From: "Robert P. J. Day" <rpjday@crashcourse.ca>
To: kbuild devel list <linux-kbuild@vger.kernel.org>
Subject: [PATCH] KBUILD: Centralize the compression tests for BLK_DEV_INITRD.
Date: Wed, 8 Jul 2009 09:33:25 -0400 (EDT) [thread overview]
Message-ID: <alpine.LFD.2.00.0907080933010.25809@localhost> (raw)
Factor out the tests for BLK_DEV_INITRD from the compression entries
and wrap the whole thing in a single test to make it more visually
obvious what's happening.
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
---
diff --git a/usr/Kconfig b/usr/Kconfig
index 1c3039f..a913b3a 100644
--- a/usr/Kconfig
+++ b/usr/Kconfig
@@ -45,10 +45,11 @@ config INITRAMFS_ROOT_GID
If you are not sure, leave it set to "0".
+if BLK_DEV_INITRD
+
config RD_GZIP
bool "Support initial ramdisks compressed using gzip" if EMBEDDED
default y
- depends on BLK_DEV_INITRD
select DECOMPRESS_GZIP
help
Support loading of a gzip encoded initial ramdisk or cpio buffer.
@@ -57,7 +58,6 @@ config RD_GZIP
config RD_BZIP2
bool "Support initial ramdisks compressed using bzip2" if EMBEDDED
default !EMBEDDED
- depends on BLK_DEV_INITRD
select DECOMPRESS_BZIP2
help
Support loading of a bzip2 encoded initial ramdisk or cpio buffer
@@ -66,12 +66,13 @@ config RD_BZIP2
config RD_LZMA
bool "Support initial ramdisks compressed using LZMA" if EMBEDDED
default !EMBEDDED
- depends on BLK_DEV_INITRD
select DECOMPRESS_LZMA
help
Support loading of a LZMA encoded initial ramdisk or cpio buffer
If unsure, say N.
+endif # BLK_DEV_INITRD
+
choice
prompt "Built-in initramfs compression mode" if INITRAMFS_SOURCE!=""
help
========================================================================
Robert P. J. Day Waterloo, Ontario, CANADA
Linux Consulting, Training and Annoying Kernel Pedantry.
Web page: http://crashcourse.ca
Linked In: http://www.linkedin.com/in/rpjday
Twitter: http://twitter.com/rpjday
========================================================================
next reply other threads:[~2009-07-08 13:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-08 13:33 Robert P. J. Day [this message]
2009-07-17 21:15 ` [PATCH] KBUILD: Centralize the compression tests for BLK_DEV_INITRD Sam Ravnborg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LFD.2.00.0907080933010.25809@localhost \
--to=rpjday@crashcourse.ca \
--cc=linux-kbuild@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox