Re: [RFC] KBUILD 2.5 issues/regressions

From: Andrey Borzenkov
Date: Sun Nov 09 2003 - 05:20:54 EST


On Thursday 06 November 2003 20:23, Sam Ravnborg wrote:
> > So it is still an issue. I am thinking about some way to direct modpost
> > to extract versions out of /boot/vmlinuz and /lib/modules if it detects
> > pristine distribution sources
> >
> > To recap - currently under Mandrake and RH it is possible to do
> >
> > rpm -i kernel-source
> > cd /external/module/src
> > make
> >
> > and it will automatically create module for currently running kernel as
> > long as kernel is distribution kernel without any extra configuration.
>
> I am in the process of addressing this issue.
> What I plan to do is to provide a script solely for the purpose of building
> modules. This script will be simple but allow us to change the build
> process, without changing the way modules are build.
> In order to use module versioning the distributor needs to ship all
> modules. Otherwise the build process cannot look up a symbol exported
> in module A, used by module B.
>

sure. But distributor already has shipped all the modules as part of kernel
package. Given the number of different kernels in Mandrake currently shipping
yet another copy of binary modules for kernel sources would easily fill up
the whole CD alone.

besides it is not the only problem. Even without MODVERSIONS build process
attempts to write in temporary directory in kernel build tree making it
impossible for non-root to build module.

> I have the basics implemented. Building a module with src located
> away from the kernel src, and output files located a third place.
> I simply need some spare time to do the rest....
>
> The idea comes from Kai Germaschewski - but I like it and will try to
> implement it.
>

Could you point to posts that describe this idea? Also we could join efforts
:)

Thank you

-andrey

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/