-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 08/17/2010 11:49 AM, doiggl@velocitynet.com.au wrote:
Hello, I have been wondering if this is possible as I was unsuccessful the past to get a kernel built with the reiser4-for-2.6.35.patch applied. I am now wondering of this would work ?.
1. Set up a home project called <kernel-vanilla> in my-home-location 2. Link it to the sources of the package kernel-source of project Kernel:HEAD - Details <link project='Kernel:HEAD' package='kernel-source' cicount='copy'/> 3. copy in to my-home-location:<kernel-vanilla> the file kernel-vanilla.spec. - I will need to alter it later to add/apply the patch.
4. Add the patch file reiser4-for-2.6.35.patch.bz2 to the project my-home-location<kernel-vanilla>
5. Add/change to lines Add extra line to .spec file Source121: reiser4-for-2.6.35.patch.bz2
Add to end of setup line -a 121 %setup -q -c -T -a 0 -a 100 -a 101 -a 102 -a 103 -a 104 -a 105 -a 106 -a 107 -a 108 -a 109 -a 110 -a 111 -a 112 -a 113 -a 120
The patch doesn't actually have to be bzipped, but that's not really important.
5. Use the script apply-patches [1] to apply the patch into the kernel [1] https://build.opensuse.org/package/view_file?file=apply-patches&package=kernel-source&project=Kernel%3AHEAD
6. Some how copy in a reiser4 enabled .config file to /usr/src/linux
The kernel isn't built from /usr/src/linux. It's built in the rpm build dir, so you can just patch your config changes in there. patches.addon is only added when flavor != vanilla but config.addon is used always. You can create config.addon/$ARCH/vanilla files, tar them up, and it should just work.
7. Build the patched kernel.
The restrictions are these. - I have to use a vanilla based kernel based on reiser4-for-2.6.35.
What are your thoughts on this approach,would it work, if not what method would work ?
It should work, but if I were you, I'd just cheat. Create the patches.addon.tar.bz2 archive but don't actually have it contain patches.addon. Just have it contain patches.rpmify/reiser4-for-2.6.35 and then add it to series.conf. patches.kernel.org and patches.rpmify are applied to the vanilla kernel too. - -Jeff - -- Jeff Mahoney SUSE Labs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAkxqvSIACgkQLPWxlyuTD7LmvgCcDDCEMS8q5pKlFfhYVQcrfw8V VXsAn3DhawtM9PtUgoOhOctPhz+tyk8r =A0TJ -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org