Re: [PATCH] Add module_name Kconfig shortcut

From: Sam Ravnborg
Date: Thu Oct 30 2008 - 17:06:14 EST


On Tue, Oct 28, 2008 at 03:46:04AM +0300, Alexey Dobriyan wrote:
> As correctly noticed in bug 11446 (http://bugzilla.kernel.org/show_bug.cgi?id=11446)
> "To compile this driver as a module, blah-blah" boilerplate is being
> copy-pasted to death with slight variations.
>
> Add Kconfig token "module_name" to supply module's name. Example:
>
> config FOO
> tristate "foo"
> module_name foo
> ---help---
> foo
>
> Print module's name as following on menuconfigs help screen (press 'h'):
>
> Module name: foo
>
> 8139too driver converted to show real-life example.
>
> P.S.: menuconfig only, no checking wrt modular/standalone code et al.

Hi Alexey.

This is a baby step towards moving simple module stuff to Kconfig.
This is the way we want to go when someone cooks up proper support for that.

But we should do it in one go so when someone decide to visit the
8139too driver then they can do a full conversion to the "keep all
module definition in Kconfig" in one step.

Please see a few mails from Roman Zippel outlining his ideas.
I do not recall the details but I do recall that he suggested
to name the source files in Kconfig.

And when we do it we shall at least support it in menuconfig and xconfig.
config and gconfig can come later.

config and gconfig shall at least generate a correct config but may not
show all relavent info.

Sam

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/