From: Randy Dunlap <randy.dunlap@oracle.com>
To: "Robert P. J. Day" <rpjday@crashcourse.ca>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>
Subject: Re: [PATCH] KBUILD: Extend "menuconfig" for modules to simplify Kconfig file.
Date: Mon, 4 Aug 2008 10:45:11 -0700 [thread overview]
Message-ID: <20080804104511.2e02f15e.randy.dunlap@oracle.com> (raw)
In-Reply-To: <alpine.LFD.1.10.0808041328440.6174@localhost.localdomain>
On Mon, 4 Aug 2008 13:31:32 -0400 (EDT) Robert P. J. Day wrote:
>
> Given that the init/Kconfig file uses a "menuconfig" directive for
> modules already, might as well wrap all the submenu entries in an "if"
> to toss all those dependencies.
>
> Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Looks good to me. and tested.
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
> ---
>
> diff --git a/init/Kconfig b/init/Kconfig
> index 7e6dae1..b678803 100644
> --- a/init/Kconfig
> +++ b/init/Kconfig
> @@ -845,9 +845,10 @@ menuconfig MODULES
>
> If unsure, say Y.
>
> +if MODULES
> +
> config MODULE_FORCE_LOAD
> bool "Forced module loading"
> - depends on MODULES
> default n
> help
> Allow loading of modules without version information (ie. modprobe
> @@ -856,7 +857,6 @@ config MODULE_FORCE_LOAD
>
> config MODULE_UNLOAD
> bool "Module unloading"
> - depends on MODULES
> help
> Without this option you will not be able to unload any
> modules (note that some modules may not be unloadable
> @@ -875,7 +875,6 @@ config MODULE_FORCE_UNLOAD
>
> config MODVERSIONS
> bool "Module versioning support"
> - depends on MODULES
> help
> Usually, you have to use modules compiled with your kernel.
> Saying Y here makes it sometimes possible to use modules
> @@ -886,7 +885,6 @@ config MODVERSIONS
>
> config MODULE_SRCVERSION_ALL
> bool "Source checksum for all modules"
> - depends on MODULES
> help
> Modules which contain a MODULE_VERSION get an extra "srcversion"
> field inserted into their modinfo section, which contains a
> @@ -898,11 +896,12 @@ config MODULE_SRCVERSION_ALL
>
> config KMOD
> def_bool y
> - depends on MODULES
> help
> This is being removed soon. These days, CONFIG_MODULES
> implies CONFIG_KMOD, so use that instead.
>
> +endif # MODULES
> +
> config STOP_MACHINE
> bool
> default y
---
~Randy
Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
http://linuxplumbersconf.org/
next prev parent reply other threads:[~2008-08-04 17:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-04 17:31 Robert P. J. Day
2008-08-04 17:45 ` Randy Dunlap [this message]
2008-08-06 20:14 ` 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=20080804104511.2e02f15e.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rpjday@crashcourse.ca \
/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
Powered by JetHome