lkml.org 
[lkml]   [1997]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRe: config procfs patch
Date
On 24 May 1997 11:10:45 -0700, 
o.r.c@p.e.l.l.p.o.r.t.l.a.n.d.o.r.u.s (david parsons) wrote:
>In article <linux.kernel.udlk9kpvlyg.fsf@tux.mit.edu>,
>Aaron M. Ucko <amu@mit.edu> wrote:
>>Unless I'm mistaken, the reason is that it would be redundant;
>>you should already have the .config.
>
> One place I can see this breaking badly is where you do kernel builds
> on one machine and then install these kernels on other machines (I
> do this) or where you have a collection of different kernels that
> you boot on one machine with differing capacities (I do this, too.)

Assuming you still maintain a separate System.map for each kernel, this
one line addition to Makefile will append the current config to the
map. No kernel changes required. Extract the config by "grep CONFIG_
System.map". Is this method was standard, a simple change to syslogd
could extract it automatically. If you don't have a separate
System.map for each kernel, my commiserations.

--- linux-2.1.40/Makefile Sat May 24 23:42:32 1997
+++ linux/Makefile Sat May 24 23:43:38 1997
@@ -182,6 +182,7 @@
$(LIBS) \
-o vmlinux
$(NM) vmlinux | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aU] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map
+ sed -ne "/^CONFIG_/s/^/`sed -ne '/ _end$$/s/ .*//p' System.map` ? /p" .config >> System.map

symlinks:
rm -f include/asm


\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.063 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site