[PATCH] Small number of aesthetic/dependency cleanups in usr/Kconfig

Robert P. J. Day rpjday at crashcourse.ca
Mon Jun 20 07:38:54 EDT 2016


* Remove superfluous dependencies on BLK_DEV_INITRD.
* Couple grammar fixes.
* Add proper hyphenation.
* Add periods at end of some help sentences.

Signed-off-by: Robert P. J. Day <rpjday at crashcourse.ca>

---

  only place i'm not absolutely confident is the removal of those
dependency lines but, AFAICT, this Kconfig file is sourced only from
init/Kconfig, which contains:

  if BLK_DEV_INITRD

  source "usr/Kconfig"

  endif

so unless that Kconfig file is sourced from elsewhere, this should be
fine.


diff --git a/usr/Kconfig b/usr/Kconfig
index 572dcf7..392021d 100644
--- a/usr/Kconfig
+++ b/usr/Kconfig
@@ -26,7 +26,7 @@ config INITRAMFS_ROOT_UID
 	depends on INITRAMFS_SOURCE!=""
 	default "0"
 	help
-	  This setting is only meaningful if the INITRAMFS_SOURCE is
+	  This setting is only meaningful if the INITRAMFS_SOURCE
 	  contains a directory.  Setting this user ID (UID) to something
 	  other than "0" will cause all files owned by that UID to be
 	  owned by user root in the initial ramdisk image.
@@ -38,7 +38,7 @@ config INITRAMFS_ROOT_GID
 	depends on INITRAMFS_SOURCE!=""
 	default "0"
 	help
-	  This setting is only meaningful if the INITRAMFS_SOURCE is
+	  This setting is only meaningful if the INITRAMFS_SOURCE
 	  contains a directory.  Setting this group ID (GID) to something
 	  other than "0" will cause all files owned by that GID to be
 	  owned by group root in the initial ramdisk image.
@@ -47,54 +47,48 @@ config INITRAMFS_ROOT_GID

 config RD_GZIP
 	bool "Support initial ramdisks compressed using gzip"
-	depends on BLK_DEV_INITRD
 	default y
 	select DECOMPRESS_GZIP
 	help
-	  Support loading of a gzip encoded initial ramdisk or cpio buffer.
+	  Support loading of a gzip-encoded initial ramdisk or cpio buffer.
 	  If unsure, say Y.

 config RD_BZIP2
 	bool "Support initial ramdisks compressed using bzip2"
 	default y
-	depends on BLK_DEV_INITRD
 	select DECOMPRESS_BZIP2
 	help
-	  Support loading of a bzip2 encoded initial ramdisk or cpio buffer
+	  Support loading of a bzip2-encoded initial ramdisk or cpio buffer.
 	  If unsure, say N.

 config RD_LZMA
 	bool "Support initial ramdisks compressed using LZMA"
 	default y
-	depends on BLK_DEV_INITRD
 	select DECOMPRESS_LZMA
 	help
-	  Support loading of a LZMA encoded initial ramdisk or cpio buffer
+	  Support loading of a LZMA-encoded initial ramdisk or cpio buffer.
 	  If unsure, say N.

 config RD_XZ
 	bool "Support initial ramdisks compressed using XZ"
-	depends on BLK_DEV_INITRD
 	default y
 	select DECOMPRESS_XZ
 	help
-	  Support loading of a XZ encoded initial ramdisk or cpio buffer.
+	  Support loading of a XZ-encoded initial ramdisk or cpio buffer.
 	  If unsure, say N.

 config RD_LZO
 	bool "Support initial ramdisks compressed using LZO"
 	default y
-	depends on BLK_DEV_INITRD
 	select DECOMPRESS_LZO
 	help
-	  Support loading of a LZO encoded initial ramdisk or cpio buffer
+	  Support loading of a LZO-encoded initial ramdisk or cpio buffer.
 	  If unsure, say N.

 config RD_LZ4
 	bool "Support initial ramdisks compressed using LZ4"
 	default y
-	depends on BLK_DEV_INITRD
 	select DECOMPRESS_LZ4
 	help
-	  Support loading of a LZ4 encoded initial ramdisk or cpio buffer
+	  Support loading of a LZ4-encoded initial ramdisk or cpio buffer.
 	  If unsure, say N.

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================




More information about the Kernelnewbies mailing list