1 |
On Wednesday 19 October 2005 06:36, Henrik Brix Andersen wrote: |
2 |
> On Wed, Oct 19, 2005 at 11:32:19AM -0200, Herbert G. Fischer wrote: |
3 |
[snip] |
4 |
> > - Patch kernel's "make" to warn at the end of "make modules_install" |
5 |
[snip] |
6 |
> I think you should check out sys-kernel/module-rebuild |
7 |
Actually, a combination of these might not be a bad idea. |
8 |
|
9 |
Something like this (not tested): |
10 |
|
11 |
if [ -n "$(which module-rebuild 2>/dev/null)" ] ; then |
12 |
if [ -n "${AUTO_MODULE_REBUILD}" ] ; then |
13 |
echo "Rebuilding external modules:" |
14 |
module-rebuild ${MODULE_REBUILD_OPTIONS} rebuild |
15 |
else |
16 |
echo "You might want to rebuild the following external modules:" |
17 |
module-rebuild -XC list | tail -n +2 |
18 |
echo |
19 |
echo "You can use module-rebuild to do that." |
20 |
echo "If you want to have your external modules automatically rebuilt" |
21 |
echo "when making a kernel's modules_install target, set" |
22 |
echo "AUTO_MODULE_REBUILD in your environment. You can set" |
23 |
echo "MODULE_REBUILD_OPTIONS to options to pass to module-rebuild." |
24 |
echo "(-X for example)" |
25 |
fi |
26 |
else |
27 |
echo "You might want to emerge sys-kernel/module-rebuild to keep track of" |
28 |
echo "kernel modules you've installed with emerge" |
29 |
fi |