Skip to contentSkip to conversation

Kernel configurator request

DISCUSSION John Bradford 2 participants 3 messages Jan 6, 2003 – Jan 9, 2003

lore
Share & tools
lore
#0 lore raw

Traditionally, kernel configurators have produced .config files like this:

#
# Automatically generated make config: don't edit
#
[Very general options]

#
# Code maturity level options
#
[Code maturity level options]

#
# General setup
#
[General setup options]

..etc...

My kernel bug database parses .config files, and currently, if it detects comments, (which don't appear to be commented out options), it uses them to present a sorted list of options to the user. (If there are no comments, it remains uncategorised).

The problem is that at the moment the first, very general options, get categorised under "Automatically generated make config: don't edit".

Obviously I can work around this, but it would seem to me to be better to have the kernel configurators generate .config files like this:

#
# Automatically generated make config: don't edit
#

#
# Very general options
#
[Very general options]

#
# Code maturity level options
#
[Code maturity level options]

#
# General setup
#
[General setup options]

..etc...

John.

#1 lore raw
Quoted 5 lines

[[email protected]]

Obviously I can work around this, but it would seem to me to be better to have the kernel configurators generate .config files like this:

Quoted 8 lines

#
# Automatically generated make config: don't edit
#

#
# Very general options
#
[Very general options]

[snip]

John,

AFAIK all you have to do to make this reality is add a "comment" clause where you need it.

Signature · 1 line
Tomas Szepe <[email protected]>
#2 lore raw
Quoted 12 lines
Quoted 11 lines

Obviously I can work around this, but it would seem to me to be better to have the kernel configurators generate .config files like this:

#
# Automatically generated make config: don't edit
#

#
# Very general options
#
[Very general options]

Quoted 6 lines

[snip]

John,

AFAIK all you have to do to make this reality is add a "comment" clause where you need it.

Excellent...

John.

arch/i386/Kconfig +2 -0
@@ -3,6 +3,8 @@
 # see Documentation/kbuild/kconfig-language.txt.
 #
 
+comment "General options"
+
 mainmenu "Linux Kernel Configuration"
 
 config X86