Gentoo Archives: gentoo-dev

From: John Myers <electronerd@××××××××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Suggestion: ebuilds linked to kernel upgrade
Date: Wed, 19 Oct 2005 17:29:10
Message-Id: 200510191028.43618.electronerd@monolith3d.com
In Reply to: Re: [gentoo-dev] Suggestion: ebuilds linked to kernel upgrade by Henrik Brix Andersen
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

Replies

Subject Author
Re: [gentoo-dev] Suggestion: ebuilds linked to kernel upgrade "Herbert G. Fischer" <herbert.fischer@×××××.com>