[ATrpms-users] atrpms kernel module for centosplus build

Axel Thimm Axel.Thimm at ATrpms.net
Wed Oct 24 16:04:27 CEST 2007


On Tue, Oct 23, 2007 at 10:38:17AM +1000, Jean-Yves Avenard wrote:
> > rpmbuild --rebuild --define 'kmdl_userland 0' foo....src.rpm
> 
> 
> I should look into that. This method will build the atrpms package for
> the centosplus kernel ?

Yes, it will build them for the currently running kernel. If you want
to do that for another kernel there are more knobs to push, but I
presented the simplest method of an end user creating the kmdls he/she
needs.

> What I did so far, is just get the latest centos kernel src.rpm ,
> modify the config file so it includes JFS support and recompiled the
> rom using the same version name and install it.
> 
> That way your kmdl work without a single modification.

OK, as long as no important structures were changed this always works.

> > I would prefer jfs kmdls if someone wanted to attack this that way,
> > but probably noone would want to do that. Maybe the rpmrepo work will
> > produce something like that, but that far in the future.
> 
> If you tell me how to produce kmdl from the linux source code ; I
> could do it ...

The kmdls are probably the easiest part - as you just wrap up your
hard work in a recipe. The real work is to manage to build jfs
out-of-tree, e.g. not during the kernel build proper, but afterwards
and by having only some kernel headers to your disposal. Usually this
means extracting the jfs kernel code into its own src.rpm and
performing the "kernel" build there.

The drawback is that one needs to check on every kernel upgrade
whether the jfs code was touched and if so propagate the changes. But
since Red Hat does not build jfs at all they will never patch it, so
this is a rather safe bet.

But this drifts a bit from atrpms-users charter into atrpms-devel
charter. If you'd be interested in attacking this (it isn't the
easiest start into kmdl-building), please join up at atrpms-devel.
-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.atrpms.net/pipermail/atrpms-users/attachments/20071024/eba87e1a/attachment.bin 


More information about the atrpms-users mailing list