Messages in this thread |  | | Date | Thu, 31 Aug 2000 05:19:08 -0400 | From | Paul Gortmaker <> | Subject | Re: [PATCH] 2.2: /proc/config.gz |
| |
Chip Salzenberg wrote: > > This is a 2.2.17pre20 refresh of the /proc/config.gz patch
[...]
> +include/linux/config_data.h: newversion scripts/bin2c > + gzip -9 < .config | scripts/bin2c kernel_config_data > $@ > +
If you are going to store options the kernel was built with, you might as well get rid of all the cruft so you don't run into size problems. For example:
sed '/=m/d;s/=y//;/^CONFIG_/s///p;d' .config | \ gzip -9 | scripts/bin2c kernel_config_data > $@
maintains all the useful information and will be less than 1/2kB. (things marked as not set or modular aren't relevant to the zImage)
You can reconstruct it back with:
gzip -d < /proc/config.gz | sed '/=/\!s/$/=y/;s/^/CONFIG_/' > .config
Run 'make oldconfig' and hold down the Enter key for a few seconds.
Paul.
_________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
|  |