--346823425-89287989-1015016499=:7850
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Tue, 26 Feb 2002, Andreas Ferber wrote:
| On Sat, Feb 23, 2002 at 08:02:24AM +0100, Andreas Ferber wrote:
|
| > At the moment I'm just writing a tool which does all parts in one turn
| > (using zlib), to make it faster and more robust (the script above may
| > fail for example if the kernel image has more than one block of gzip
| > compressed data embedded). (It's actually working already, but the
| > code needs some heavy cleanup before it can be released to the public
| > ;-) Come back in a few days for news...
|
| Here we go again. Attached to this mail you find the announced kernel
| config extractor. It is also available via HTTP:
|
| http://www.myipv6.de/patches/kconfig/dumpkconfig.c
Good!
and here's an alternative, which doesn't put .config in
/proc/ at all, although that's probably better for some
environments or people.
This patch (along with the attached 'binoffset.c' program, which
I didn't stick into linux/scripts/) gives one the option to
have the kernel .config file saved in the kernel image file
(as __initdata) and then use 'extract-ikconfig' to read it from
the kernel image file and re-use it.
Notes:
1. I didn't zip any of the text since kernel Makefiles (can) do that
on the entire image.
2. I haven't stripped the leading "CONFIG_" from .config lines.
3. I strip out (omit) all lines *except* those that begin with
"CONFIG_" or "# CONFIG_". Keeping the commented CONFIG_ lines
keeps make oldconfig happy. Otherwise one has to answer for all
unspecified CONFIGs, or use "yes n | make oldconfig" [which is
just as good IMHO, but some users might want to know about new
kernel config options].
4. The output file from 'extract-ikconfig' contains the CONFIG_
data in reversed order, but oldconfig doesn't care about this.
My test case (.config is around 25000 bytes) increased the
kernel bzImage file size by about 8 KB.
-- ~Randy--346823425-89287989-1015016499=:7850 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="ikconfigv4.patch" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.LNX.4.33L2.0203011301390.7850@dragon.pdx.osdl.net> Content-Description: Content-Disposition: attachment; filename="ikconfigv4.patch"
LS0tIGxpbnV4L2tlcm5lbC9NYWtlZmlsZS5pa2MJU3VuIFNlcCAxNiAyMToy Mjo0MCAyMDAxDQorKysgbGludXgva2VybmVsL01ha2VmaWxlCVRodSBGZWIg MjggMTU6MDg6MjAgMjAwMg0KQEAgLTE5LDYgKzE5LDcgQEANCiBvYmotJChD T05GSUdfVUlEMTYpICs9IHVpZDE2Lm8NCiBvYmotJChDT05GSUdfTU9EVUxF UykgKz0ga3N5bXMubw0KIG9iai0kKENPTkZJR19QTSkgKz0gcG0ubw0KK29i ai0kKENPTkZJR19JS0NPTkZJRykgKz0gY29uZmlncy5vDQogDQogaWZuZXEg KCQoQ09ORklHX0lBNjQpLHkpDQogIyBBY2NvcmRpbmcgdG8gQWxhbiBNb2Ry YSA8YWxhbkBsaW51eGNhcmUuY29tLmF1PiwgdGhlIC1mbm8tb21pdC1mcmFt ZS1wb2ludGVyIGlzDQpAQCAtMzAsMyArMzEsMTQgQEANCiBlbmRpZg0KIA0K IGluY2x1ZGUgJChUT1BESVIpL1J1bGVzLm1ha2UNCisNCitjb25maWdzLm86 ICQoVE9QRElSKS9zY3JpcHRzL21rY29uZmlncyBjb25maWdzLmMNCisJZWNo byBvYmoteSA9PSAkKG9iai15KQ0KKwkkKENDKSAkKENGTEFHUykgJChDRkxB R1NfS0VSTkVMKSAtREVYUE9SVF9TWU1UQUIgLWMgLW8gY29uZmlncy5vIGNv bmZpZ3MuYw0KKw0KKyQoVE9QRElSKS9zY3JpcHRzL21rY29uZmlnczogJChU T1BESVIpL3NjcmlwdHMvbWtjb25maWdzLmMNCisJJChIT1NUQ0MpICQoSE9T VENGTEFHUykgLW8gJChUT1BESVIpL3NjcmlwdHMvbWtjb25maWdzICQoVE9Q RElSKS9zY3JpcHRzL21rY29uZmlncy5jDQorDQorY29uZmlncy5jOiAkKFRP UERJUikvLmNvbmZpZyAkKFRPUERJUikvc2NyaXB0cy9ta2NvbmZpZ3MNCisJ JChUT1BESVIpL3NjcmlwdHMvbWtjb25maWdzICQoVE9QRElSKS8uY29uZmln IGNvbmZpZ3MuYw0KKw0KLS0tIGxpbnV4L2FyY2gvaTM4Ni9kZWZjb25maWcu aWtjCU1vbiBGZWIgMjUgMTE6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ha2VmaWxlCVRodSBGZWIgMjggMTQ6 MjY6MDkgMjAwMg0KQEAgLTE5NCw2ICsxOTQsNyBAQA0KIAlrZXJuZWwva3N5 bXMubHN0IGluY2x1ZGUvbGludXgvY29tcGlsZS5oIFwNCiAJdm1saW51eCBT eXN0ZW0ubWFwIFwNCiAJLnRtcCogXA0KKwlzY3JpcHRzL21rY29uZmlncyBr ZXJuZWwvY29uZmlncy5jIGtlcm5lbC9jb25maWdzLm8gXA0KIAlkcml2ZXJz L2NoYXIvY29uc29sZW1hcF9kZWZ0YmwuYyBkcml2ZXJzL3ZpZGVvL3Byb21j b25fdGJsLmMgXA0KIAlkcml2ZXJzL2NoYXIvY29ubWFrZWhhc2ggXA0KIAlk cml2ZXJzL2NoYXIvZHJtLyotbW9kLmMgXA0KQEAgLTIzMyw2ICsyMzQsNyBA QA0KIAlpbmNsdWRlL2FzbSBcDQogCS5oZGVwZW5kIHNjcmlwdHMvbWtkZXAg c2NyaXB0cy9zcGxpdC1pbmNsdWRlIHNjcmlwdHMvZG9jcHJvYyBcDQogCSQo VE9QRElSKS9pbmNsdWRlL2xpbnV4L21vZHZlcnNpb25zLmggXA0KKwlzY3Jp cHRzL21rY29uZmlncyBrZXJuZWwvY29uZmlncy5jIGtlcm5lbC9jb25maWdz Lm8gXA0KIAlrZXJuZWwuc3BlYw0KIA0KICMgZGlyZWN0b3JpZXMgcmVtb3Zl ZCB3aXRoICdtYWtlIG1ycHJvcGVyJw0K --346823425-89287989-1015016499=:7850 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="binoffset.c" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.LNX.4.33L2.0203011301391.7850@dragon.pdx.osdl.net> Content-Description: Content-Disposition: attachment; filename="binoffset.c"
LyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KICogYmlub2Zmc2V0 LmMNCiAqIChDKSAyMDAyIFJhbmR5IER1b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oJZnByaW50ZiAoc3Rk ZXJyLCAiJWRcbiIsIGZpcnN0bG9jKTsNCg0KCWV4aXQgKG51bV9tYXRjaGVz ID8gMCA6IDIpOw0KfQ0KDQovKiBlbmQgYmlub2Zmc2V0LmMgKi8NCg== --346823425-89287989-1015016499=:7850-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/