[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-kernel
Subject:    one line patch to save .config information
From:       Keith Owens <kaos () ocs ! com ! au>
Date:       1997-01-31 13:48:33
[Download RAW message or body]

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



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic