Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Kernel Modules
Date: Thu, 09 Jun 2011 11:08:34
Message-Id: 201106091306.16707.alan.mckinnon@gmail.com
In Reply to: [gentoo-user] Kernel Modules by Ignas Anikevicius
1 Apparently, though unproven, at 12:52 on Thursday 09 June 2011, Ignas
2 Anikevicius did opine thusly:
3
4 > Hello list,
5 >
6 > I was wondering if it is possible to have a tool with which it would be
7 > possible to have external modules installed for _all_ kernel versions in
8 > my computer. Now I am using 2.6.38 kernel, but would like to try 2.6.39
9 > and the thing is that I would like to have tp_smapi and phc-intel
10 > modules in both kernels. Is it possible to have it without any serious
11 > hacking?
12 >
13 > I have only 3 ideas how I could achieve that:
14 > * Making a custom ebuild, which would build the modules, but install
15 > itself as a different package depending on the kernel version (eg
16 > tp_smapi-2.6.39-gentoo)?
17 > * Making a custom ebuild, which would build the modules for all kernel
18 > versions in one go... (is this possible?)
19 > * patching the gentoo-sources each time.
20
21 why you making so much work for yourself?
22
23 set the /usr/src/linux symlink to each set of installed sources in turn,
24 run emerge @module-rebuild
25 or run module-rebuild rebuild
26
27 you could even script it
28
29 cd /usr/src
30 for I in linux-*
31 do
32 ln -sfn $I linux
33 module-rebuild rebuils
34 done
35
36 Fixing my bash syntax errors is left as an exercise for the interested reader
37
38
39 --
40 alan dot mckinnon at gmail dot com

Replies

Subject Author
Re: [gentoo-user] Kernel Modules Ignas Anikevicius <anikevicius@×××××.com>