Gentoo Archives: gentoo-kernel

From: Daniel Drake <dsd@g.o>
To: gentoo-kernel@l.g.o
Subject: [gentoo-kernel] linux-mod addition: modules.d file generation
Date: Sun, 05 Dec 2004 15:26:56
Message-Id: 41B34605.6000803@gentoo.org
1 Hi,
2
3 As suggested by cyfred, I've written some code to allow /etc/modules.d files
4 to be created automatically.
5
6 I have attached an updated version of the nvidia-kernel ebuild that uses this,
7 also the nvidia source had to be patched to export parameter descriptions
8 (but any well written module will not require this).
9
10 Here is the /etc/modules.d/nvidia file which gets produced (it has linewrapped
11 in this mail, but hopefully you get the picture)
12
13 ----------
14
15 # Configuration file for nvidia module
16
17 # Internal aliases, do not edit
18 alias char-major-195 nvidia
19 alias /dev/nvidiactl char-major-195
20
21 # Configurable module parameters
22 # For more details, see /usr/share/doc/nvidia-kernel-1.0.6629/README.gz
23 #
24 # silence_nvidia_output - Silence output: 0 (default, verbose) or 1 (silent)
25 # NVreg_EnableVia4x - Enable AGP4x on VIA chipsets (default disabled)
26 # NVreg_EnableALiAGP - Enable AGP on ALi1541/1647 chipsets (default disabled)
27 # NVreg_NvAGP - Select which AGPGART is used if unspecified by X - 0
28 (disable), 1 (use nvidia), 2 (use kernel), 3 (try 2 then 1, default)
29 # NVreg_EnableAGPSBA - Enable AGP Side Band Addressing
30 # NVreg_EnableAGPFW - Enable AGP Fast Writes (default disabled)
31 # NVreg_SoftEDIDs - Enable dynamic generation of EDID info (default enabled)
32 # NVreg_Mobile - Select Mobile registry key when SoftEDIDs is disabled - 0
33 (auto, default), 1 (Dell), 2 (Toshiba), 3 (other), 4 (Compal/Toshiba), 5 (Gateway)
34
35 # To enable Side Band Adressing and Fast Writes, uncomment the example below:
36 # options nvidia NVreg_EnableAGPSBA=1 NVreg_EnableAGPFW=1
37
38 -----------
39
40 I have also attached an eclass diff which implements this. I'm looking for
41 comments on the ebuild interface to this as much as anything else.
42
43 I have also added a CONFIG_CHECK_ERROR variable which can be used to specify a
44 custom message when support for required components is not detected - the
45 attached nvidia module has been converted to using this too.
46
47 Daniel

Attachments

File name MIME type
nvidia-kernel-1.0.6629.ebuild text/plain
nv-parm-descriptions.patch text/plain
eclass-diff text/plain

Replies