Re: Portable binary modules

Horst von Brand (vonbrand@sleipnir.valparaiso.cl)
Sun, 12 Dec 1999 00:58:07 -0300


Willy Tarreau <willy@novworld.Novecom.Fr> said:
> > How about mechanisms which tag the variant in the module directory?
> > E.g., make it possible to keep both the SMP version and the UP version
> > around without doing manual labour when switching kernels. The
> > information could be kept in either the directory name or the file
> > name. I favour the former, because its easier to make it fall back on
> > the old directory if the specific directory doesn't exist.

> > The big question is: What _are_ the variables? I know of:

> > SMP/UP
> > 386/486/586/586TSC/686/K7
> > old gcc/new gcc

> well, in this case, you can simply modify your early boot scripts (eg. rc.S)
> to link /lib/modules/`uname -r` to /lib/modules/`uname-r`-something, where
> 'something' is determined from some information grabbed in /proc
> (/proc/version ?) or anything that can give you enough knowledge about
> your running kernel.

Simpler still: Hack your main Makefile (the EXTRAVERSION line), it takes
care of all this stuff automatically. Then copy your .config to somewhere
safe keyed to the VERSION + EXTRAVERSION, and you are done.

-- 
Horst von Brand                             vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile                               +56 32 672616

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