DKMS and weak-modules (kABI)
Matt Domsch
Matt_Domsch at dell.com
Fri Feb 9 16:31:33 CST 2007
On Fri, Feb 09, 2007 at 04:18:17PM -0500, Jon Masters wrote:
> > The whole build-and-compare step is a bit painful too. We do it
> > because at the end of compilation we get a srcversion field out of the
> > resultant module. But, as srcversion isn't calculated by a real
> > preprocessor but by a little C program called 'sumversion' in Kbuild,
> > I suspect we could get Kbuild to generate a srcversion for us without
> > doing the whole compilation, and could then skip real compilation.
> > Could even eliminate the need for a toolchain on the system then if
> > that tool were already in the kernel-devel package. Hmmm...
> > sumversion takes as input dir/.file.o.cmd, which is generated by
> > compiling the .c into a .o. Annoying. Need to think about that some
> > more.
>
> I'm not so sure that's going to be possible since you need the output
> from the real compiler...but I will also have a think too. One thing's
> for sure - we'd need a compelling reason to change upstream for our
> benefit :-)
srcversion _is_ entirely for our benefit. :-) Nothing but DKMS cares.
--
Matt Domsch
Software Architect
Dell Linux Solutions linux.dell.com & www.dell.com/linux
Linux on Dell mailing lists @ http://lists.us.dell.com
More information about the DKMS-devel
mailing list