[OpenAFS-devel] Support linux built in directory separate from the kernel source tree
Stefaan
stefaan.deroeck@gmail.com
Sun, 12 Oct 2008 15:15:07 +0200
------=_Part_115831_30071693.1223817307922
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Attached is a simple patch which I believe adds support for
KBUILD_OUTPUT=... linux builds without breaking support for the
already working builds. I hope you find it useful,
Stefaan
------=_Part_115831_30071693.1223817307922
Content-Type: application/octet-stream; name=012_all_kbuild.patch
Content-Transfer-Encoding: base64
X-Attachment-Id: f_fm7p212d0
Content-Disposition: attachment; filename=012_all_kbuild.patch
c3VwcG9ydCBzZXBhcmF0ZSBsaW51eCBrZXJuZWwgc291cmNlIGFuZCBidWlsZCBkaXJzCgpkaWZm
IC11ciAyL29wZW5hZnMtMS40LjhwcmUyL2FjaW5jbHVkZS5tNCAxL29wZW5hZnMtMS40LjhwcmUy
L2FjaW5jbHVkZS5tNAotLS0gMi9vcGVuYWZzLTEuNC44cHJlMi9hY2luY2x1ZGUubTQJMjAwOC0x
MC0wNyAyMDo1MTo0NS4wMDAwMDAwMDAgKzAyMDAKKysrIDEvb3BlbmFmcy0xLjQuOHByZTIvYWNp
bmNsdWRlLm00CTIwMDgtMTAtMDggMTc6NDQ6MjguMDAwMDAwMDAwICswMjAwCkBAIC0xMjEsNiAr
MTIxLDkgQEAKIEFDX0FSR19XSVRIKGxpbnV4LWtlcm5lbC1oZWFkZXJzLAogWyAgLS13aXRoLWxp
bnV4LWtlcm5lbC1oZWFkZXJzPXBhdGggICAgCXVzZSB0aGUga2VybmVsIGhlYWRlcnMgZm91bmQg
YXQgcGF0aChvcHRpb25hbCwgZGVmYXVsdHMgdG8gL3Vzci9zcmMvbGludXgtMi40LCB0aGVuIC91
c3Ivc3JjL2xpbnV4KV0KICkKK0FDX0FSR19XSVRIKGxpbnV4LWtlcm5lbC1idWlsZCwKK1sgIC0t
d2l0aC1saW51eC1rZXJuZWwtYnVpbGQ9cGF0aCAgICAJ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