Mailing List Archive

Re: Building .config into kernel
To see how big .config might be in the kernel, I stripped blanks, # prefixed
lines, and CONFIG_, and it came to 739 bytes, or 397 gzipped.
Or, for a more compact format:
[a-z][!-Z]OPTION_IN_CAPS
Where the first two chars are a tag (1500 possible options, maybe a third
char would be wise, the char set is chosen, so it might
even be possible to convey it to another human in native form. Then, after
the tag, the option in upper-cased text and numbers.
This could be parsed with either a special tool, or, perhaps more
appropriately, a module (If it's for the same kernel version, the config
options would likely be the same, so the numbers would be right)
I don't know what the number of non-conflicting config options would be,
but it's not going to be over 1024, or 4K total data, and with that number,
the kernel would bloat so much, that the increase would not be very
noticable.
The more I think of this, the more it would be handy, for very little
overhead.
I wonder if this format might even be appropriate, in even terser form
(only module settings of modules are listed, not their presence)
in /proc/version
It's already over 80 chars, would 100 more really be a problem?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
Re: Building .config into kernel [ In reply to ]
>On Fri, 15 Jan 1999, Ian Stirling wrote:
In article <Pine.LNX.4.09.9.9901141935530.30431-100000@twinlark.arctic.o
>> To see how big .config might be in the kernel, I stripped blanks, # prefixed
>> lines, and CONFIG_, and it came to 739 bytes, or 397 gzipped.
>>
>That seems like too much work. Something like
>
>twinlark%jauderho% grep "CONFIG_.*=" /usr/src/linux/.config | sed -e 's/=.*//'
>
>should work just fine.
No, this gives you the config of the last kernel you built, Not the
config of the currently running kernel.
If you use on machine to build kernel for many others (say your
enterprise servers and routers) I would expect:-
1) The machines to have differing configs.
2) You to need to be able to find the config of any machine.
Currently I place the .configs in my home dir under he machine name, as
a solution, so the problem is not huge.
The proposed scheme has the advantage the correct config is kept with
the kernel it refers to, but with the time to develop and kernel bloat
disadvantages which are not insignificant.
TBH the arguments, to me at least, aren't clear cut either way and the
telling point is that I don't know whether I'd use it. Though I'd have
liked a similar option in samba last week when I had problems with it
and couldn't remember which compile options it had been built with.
(And know I couldn't just check the Makefile, since I deleted the source
in favour of a later version)
TTFN
--
Roger Gammans
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/