--8323328-1668911226-902487049=:4371
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.Linu.4.00.9808071332151.752@lightside.ddns.org>
Well, got tired of having to tar/untar my modules each time I wanted to
have a look if/how a SMP kernel worked on a UP mobo.. So here are two
patches, one for the kernel Makefile, and one for modutils 2.1.85.
The makefile patch simply installs the modules in `uname -r`-{SMP,UP}
The modutils patch adds `uname -r`-{SMP,UP} to the path search. The old
`uname -r` is still there, but with lower order than the {SMP,UP}.
I only enabled it for intel arch. The smp detection is very crude, if
anyone has any suggestion besides proc or the strstr..
-- ____/| Ragnar Hojland (ragnar@lightside.ddns.org) Fingerprint 94C4B \ o.O| 2F0D27DE025BE2302C =(_)= "Thou shalt not follow the NULL pointer for 104B78C56 B72F0822 U chaos and madness await thee at its end." hkp://keys.pgp.com
--8323328-1668911226-902487049=:4371 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="Makefile-cpu.diff" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.Linu.4.00.9808071250491.4371@lightside.ddns.org> Content-Description: Content-Disposition: ATTACHMENT; FILENAME="Makefile-cpu.diff"
LS0tIE1ha2VmaWxlLk9SSUcJRnJpIEF1ZyAgNyAxMToxOTo0MSAxOTk4DQor KysgTWFrZWZpbGUJRnJpIEF1ZyAgNyAxMTo0MzoyNiAxOTk4DQpAQCAtMzA2 LDcgKzMwNiw4IEBAIG1vZHVsZXM6IGluY2x1ZGUvbGludXgvdmVyc2lvbi5o DQogDQogbW9kdWxlc19pbnN0YWxsOg0KIAlAKCBcDQotCU1PRExJQj0vbGli L21vZHVsZXMvJChWRVJTSU9OKS4kKFBBVENITEVWRUwpLiQoU1VCTEVWRUwp OyBcDQorCWlmIFsgLW4gIiQoU01QKSIgXTsgdGhlbiBNT0RTVUZGSVg9IlNN UCI7IGVsc2UgTU9EU1VGRklYPSJVUCI7IGZpOyBcDQorCU1PRExJQj0vbGli L21vZHVsZXMvJChWRVJTSU9OKS4kKFBBVENITEVWRUwpLiQoU1VCTEVWRUwp LSQkTU9EU1VGRklYOyBcDQogCWNkIG1vZHVsZXM7IFwNCiAJTU9EVUxFUz0i IjsgXA0KIAlpbnN0X21vZCgpIHsgVGhlc2U9ImBjYXQgJCQxYCI7IE1PRFVM RVM9IiQkTU9EVUxFUyAkJFRoZXNlIjsgXA0K --8323328-1668911226-902487049=:4371 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="modutils-2.1.85-cpu.diff" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.Linu.4.00.9808071332430.752@lightside.ddns.org> Content-Description: Content-Disposition: attachment; filename="modutils-2.1.85-cpu.diff"
ZGlmZiAtdXByIG1vZHV0aWxzLTIuMS44NS5PUklHL2RlcG1vZC9jb25mX2Zp bGUuYyBtb2R1dGlscy0yLjEuODUvZGVwbW9kL2NvbmZfZmlsZS5jDQotLS0g bW9kdXRpbHMtMi4xLjg1Lk9SSUcvZGVwbW9kL2NvbmZfZmlsZS5jCUZyaSBG ZWIgIDYgMTA6MjU6NTYgMTk5OA0KKysrIG1vZHV0aWxzLTIuMS44NS9kZXBt b2QvY29uZl9maWxlLmMJRnJpIEF1ZyAgNyAxMzoyNjo1MyAxOTk4DQpAQCAt Mjg3LDE5ICsyODcsMjggQEAgcmVhZF9jb25maWdfZmlsZSAoY2hhciAqa2Vy bmVsX3ZlcikNCiAgICAgfQ0KIA0KICAgaWYgKGtlcm5lbF92ZXIpDQotICAg IHRtcCA9IGtlcm5lbF92ZXI7DQorICAgIHN0cmNweSAobGluZWJ1Ziwga2Vy bmVsX3Zlcik7DQogICBlbHNlDQogICAgIHsNCiAgICAgICB1bmFtZSAoJnV0 c19pbmZvKTsNCi0gICAgICB0bXAgPSB1dHNfaW5mby5yZWxlYXNlOw0KKyAg ICAgIHN0cmNweSAobGluZWJ1ZiwgdXRzX2luZm8ucmVsZWFzZSk7DQogICAg IH0NCi0gIGRlZl9zZXQgPSAoY2hhciAqKSB4bWFsbG9jIChzdHJsZW4gKCIv bG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KWRlZmF1bHRfcGF0aDsNCiANCkBAIC04 NiwxMyArOTgsMjAgQEAgc2VhcmNoX21vZHVsZV9wYXRoKGNoYXIgKmJhc2Up DQogICBwYXRoID0gbWVtY3B5KHAsIHBhdGgsIGxlbik7DQogDQogICB1bmFt ZSgmdXRzX2luZm8pOw0KKyNpZmRlZiBBUkNIX2kzODYgIA0KKyAgaXNfc21w ID0gISFzdHJzdHIodXRzX2luZm8udmVyc2lvbiwiIFNNUCAiKTsNCisjZW5k aWYgIA0KICAgZmlsZW5hbWUgPSB4bWFsbG9jKFBBVEhfTUFYKTsNCiANCiAg IGZvciAocCA9IHN0cnRvayhwYXRoLCAiOiIpOyBwICE9IE5VTEwgOyBwID0g c3RydG9rKE5VTEwsICI6IikpDQogICAgIHsNCiAgICAgICBzdHJ1Y3Qgc3Rh dCBzYjsNCi0NCi0gICAgICBsZW4gPSBzbnByaW50ZihmaWxlbmFtZSwgUEFU SF9NQVgsIHAsIHV0c19pbmZvLnJlbGVhc2UpOw0KKyAgICAgIA0KKyAgICAg IGxlbiA9IHNucHJpbnRmKGZpbGVuYW1lLCBQQVRIX01BWCwgcCwgdXRzX2lu Zm8ucmVsZWFzZSwNCisjaWZkZWYgQVJDSF9pMzg2DQorCQkgICAgIGlzX3Nt cCA/ICItU01QIiA6ICItVVAiDQorI2VuZGlmCQkgICAgIA0KKwkJICAgICAp Ow0KICAgICAgIGxlbiArPSBzbnByaW50ZihmaWxlbmFtZStsZW4sIFBBVEhf TUFYLWxlbiwgIi8lcyIsIGJhc2UpOw0KIA0KICAgICAgIGlmIChzdGF0KGZp bGVuYW1lLCAmc2IpID09IDAgJiYgU19JU1JFRyhzYi5zdF9tb2RlKSkNCg== --8323328-1668911226-902487049=:4371--
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html