diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2008-02-13 10:20:37 -0800 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2008-02-13 10:20:37 -0800 |
commit | 2b1d02c0e47da31eb995dec66bf75c3ca381eb44 (patch) | |
tree | 3a4c75c556ef1d4b0b83e44aace8da53645b4926 /kernel.c | |
parent | ece22163b2913af4823bc4aad397a7e32dc5d4e0 (diff) |
1.0-71741.0-7174
Diffstat (limited to 'kernel.c')
-rw-r--r-- | kernel.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -655,6 +655,18 @@ int test_kernel_module(Options *op, Package *p) sysctl(name, 2, NULL, 0, &new_loglevel, len); } + /* + * On Linux 2.6 we depend on the AGPGART frontend module unless + * the kernel was configured without support for the Linux AGP + * GART driver. Preload it here to satisfy the dependency, which + * isn't resolved by `insmod`. + */ + if (strncmp(get_kernel_name(op), "2.4", 3) != 0) { + cmd = nvstrcat(op->utils[MODPROBE], " -q agpgart", NULL); + run_command(op, cmd, NULL, FALSE, 0, TRUE); + nvfree(cmd); + } + cmd = nvstrcat(op->utils[INSMOD], " ", p->kernel_module_build_directory, "/", p->kernel_module_filename, NULL); |