lkml.org 
[lkml]   [2004]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patches in this message
/
Date
From
SubjectPROBLEM: Cross-compiling fails (patch included)
  Hi there!

When using kernel-package (Debian specific kernel-management) to
cross-compile a kernel in a i386-chroot on my x86_64 laptop
modules_install fails when trying to depmod things. Since we should not
depmod those things if the arch being built isn't the same as 'uname -m'
I wrote a patch for the Makefile to test those conditions.

Sincererly

PS I'm not subscribed to those lists, please CC me on reply. DS
--
Christian .-. Bjälevik
Eskilstuna /v\ [SWEDEN]
ICQ UIN // \\ 60036598
Linux User /( )\ [344682]
GPG Key ID ^^-^^ 23FE8EB7
Jabber & Email
nafallo@magicalforest.se

-----------------------------
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) $$+endif

else # CONFIG_MODULES
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
\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.028 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site