[pkg-nvidia-devel] Bug#498499: Using amd64 to compile the module into a i386 chroot

Jordi Pujol jordi_pujol at telefonica.net
Wed Sep 10 14:27:01 UTC 2008


Package: nvidia-kernel-source
Version: 173.14.09-5 and others
Severity: normal

Hello,

when compiling a new kernel into an amd64 machine for the architecture i386 is 
common to use a chroot to an i386 development environment,

in the nvidia-kernel-source package, some scripts detect the machine 
architecture with the command "shell uname" of the main running kernel, and 
therefore the compilation of the nvidia module is not successful,

with the little modifications attached in this message, the module compiles 
correctly, 

The key idea is that the variable ARCH is already defined by the main 
procedure, that is, in make-kpkg or m-a.

that is tested to successful compile in the i386 environment, with make-kpkg 
and module-assistant also,

#make-kpkg -us -uc --initrd --verbose --append-to-version -686-jp1 --added-modules 
nvidia-kernel --added-patches debianlogo  modules

#m-a -t build nvidia-kernel -k /usr/src/linux-2.6.26.5-686-jp1

Please use the attached patch,

Best Regards,

Jordi Pujol
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nvidia-kernel-ARCH.diff
Type: text/x-diff
Size: 1291 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20080910/72e64486/attachment.diff 


More information about the Pkg-nvidia-devel mailing list