An alternate means of building kernels.

Zephaniah E. Hull warp at aehallh.com
Thu Aug 9 01:55:04 EDT 2007


After getting frustrated by the lack of ways to rapidly test kernel
patches, I cooked up the following.

1. Find yourself a nice kernel source tree, say,
'git clone git://dev.laptop.org/olpc-2.6', then configure it,
'make ARCH=i386 olpc_defconfig' should do that trick, remember what
directory you left the source in.
1. Run: cd
2. Run: wget http://aehallh.com/~warp/olpc/build-olpc-custom.tar.gz
3. Run: tar -zxvf build-olpc-custom.tar.gz
4. Run: ~/build-olpc-custom.sh <path to the kernel source tree>
5. Watch it compile, barring errors you should eventually get a rpm or
two off in ~/olpc-custom-rpms/RPMS/i586/.

Note, this does not make a useful SRPM, nor does it build the debugging
packages.

It also isn't a perfect replacement for
'make-kpkg kernel_image' from the Debian world.

On the other hand, it works in place on the source tree you specified,
doesn't do anything to the config except for a 'make oldconfig', and
doesn't do any sort of a 'make clean' or 'make distclean' on the tree.

Which means that you can test slight modifications without major issues,
though don't expect the versions to be in sync with the official OLPC rpm
versions.

If this is popular and any major issues get ironed out, this should all
go into a wiki and the code into git, or something along those lines.

Let me know if there are any issues,

Zephaniah E. Hull.

-- 
	  1024D/E65A7801 Zephaniah E. Hull <warp at aehallh.com>
	   92ED 94E4 B1E6 3624 226D  5727 4453 008B E65A 7801
	    CCs of replies from mailing lists are requested.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.laptop.org/pipermail/devel/attachments/20070809/5ac89fe1/attachment.sig>


More information about the Devel mailing list