lkml.org 
[lkml]   [1997]   [Jan]   [31]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
FromKeith Owens <>
Subjectone line patch to save .config information
DateSat, 01 Feb 1997 00:48:33 +1100
Rather than save the .config options in the kernel and bloat it, append
them to System.map with the same address as _end.  Of course if you
have no map for your current kernel you are in trouble anyway.

The patch might affect code that reads System.map.  klogd 1.3-3 does
not object to the extra records.

--- linux-2.1.24/Makefile	Thu Jan 30 22:22:57 1997
+++ linux/Makefile	Sat Feb  1 00:34:35 1997
@@ -179,6 +179,7 @@
 		$(LIBS) \
 		-o vmlinux
 	$(NM) vmlinux | grep -v '\(compiled\)\|\(\.o$$\)\|\( a \)\|\(\.\.ng$$\)' | 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:38    [from the cache]
©2003-2008