Mailinglist Archive: opensuse-kernel (81 mails)

< Previous Next >
Re: [opensuse-kernel] Need help with a kernel .spec file - its for building a patched kernel
  • From: Jeff Mahoney <jeffm@xxxxxxxx>
  • Date: Thu, 28 Feb 2008 12:52:44 -0500
  • Message-id: <47C6F4EC.5020504@xxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

doiggl@xxxxxxxxxxxxxxxxxx wrote:
Hello,

Can you provide me with a .spec file I can use in the Opensuse Build
Service to do the following things:

- To build a customised, patched kernel in a installable rpm [i586 &
x86_64] formats.

I ask because I want to build the package properly. And I do not have
advanced experience to build the .spec file myself.
Could you provide me with a .spec file to handle the following items:

Sources used:
-------------
linux-2.6.24.3.tar.bz2
[file copied into home/userid/source/linux-2.6.24.3.tar.bz2]

reiser4-for-2.6.24.patch
[file copied into home/userid/source/reiser4-for-2.6.24.patch]

.config [file copied into home/userid/source/.config]
[This has the selected customised kernel configuration options on the
following]
["append to kernel release" e.g -default-reiser4 and [File systems /
Reiser4 (EXPERIMENTAL)]]


Things to do:
-------------
- Unpack the kernel source [home/userid/source/linux-2.6.24.3.tar.bz2]

- Copy in a .config into the unpacked kernel either a i586 or x86_64
.config file from [home/userid/source/.config] so it will compile.

- Apply patch to the unpacked kernel source
[patch -p1 < home/userid/source/reiser4-for-2.6.24.patch]

- Make installable rpm [i586 & x86_64] formats.

- cleanup temporary files

I know its a big learning experience for me, and I would like to
contribute in some way.
Thankyou for your help and time.

Is there anything missing from the HEAD kernel that doesn't let you
build reiser4 as an external module? I added the following patches, to
avoid having to rebuild the kernel to use reiser4:
patches.suse/reiser4-exports
patches.suse/reiser4-sync_inodes

- -Jeff

- --
Jeff Mahoney
SUSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFHxvTrLPWxlyuTD7IRAkSEAJ0Qg/lm2tAiQTvSyUIexgtOha5cUgCdG+sf
/0g1UCLcFUxlVC8aAQhHVmo=
=10JP
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse-kernel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-kernel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References