Distribution: Ubuntu Warty Hardware Environment: AMD64 Software Environment: Debian sarge chroot Problem Description: When cross-compiling modules_install fails because depmod -ae is run from Makefile. When using tools like for example kernel-package in Debian we need to install those to make a kernel-package out of it. But that fails cause you can't depmod i386 modules on x86_64 ;-). Steps to reproduce: Just try to make modules_install under a chroot on another architecture. Patch for wrapping depmod -ae in the makefile in a ifeq: diff -puN Makefile.orig Makefile --- Makefile.orig 2004-12-09 00:08:43.000000000 +0100 +++ Makefile 2004-12-08 23:59:34.000000000 +0100 @@ -788,7 +788,9 @@ depmod_opts := -b $(INSTALL_MOD_PATH) -r endif .PHONY: _modinst_post _modinst_post: _modinst_ +ifeq ([ uname -m ],$(ARCH)) if [ -r System.map ]; then $(DEPMOD) -ae -F System.map $(depmod_opts) $(KERNELRELEASE); fi +endif else # CONFIG_MODULES
Created attachment 4250 [details] Wraps an ifeq around depmod -ae in the Makefile I'll send it as a .patch also :-).
The patch itself is wrong (note that e.g. i386 != i686), but I'm reassigning it to Sam who should be able to comment on the problem.
Sam, can you comment on this issue?
Any updates on this issue? Thanks.
Fixed - see: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=50a8ec31c3a00594ceb7c5f1dcf2ecdaf6a5b847