* PROBLEM: Cross-compiling fails (patch included)
@ 2004-12-16 18:32 Christian Bjälevik
2004-12-16 23:41 ` Sam Ravnborg
0 siblings, 1 reply; 2+ messages in thread
From: Christian Bjälevik @ 2004-12-16 18:32 UTC (permalink / raw)
To: LKML; +Cc: Debian-Kernel
[-- Attachment #1: Type: text/plain, Size: 1071 bytes --]
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
[-- Attachment #2: cross-compiling.patch --]
[-- Type: text/x-patch, Size: 409 bytes --]
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: PROBLEM: Cross-compiling fails (patch included)
2004-12-16 18:32 PROBLEM: Cross-compiling fails (patch included) Christian Bjälevik
@ 2004-12-16 23:41 ` Sam Ravnborg
0 siblings, 0 replies; 2+ messages in thread
From: Sam Ravnborg @ 2004-12-16 23:41 UTC (permalink / raw)
To: Christian Bj??levik, rusty; +Cc: LKML, Debian-Kernel
On Thu, Dec 16, 2004 at 07:32:05PM +0100, Christian Bj??levik wrote:
> 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.
Similar versions has been posted before.
But the right fix is to fix module-init-tools - therefore they have not
been applied.
Rusty - any progress in this?
Sam
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-12-16 23:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-16 18:32 PROBLEM: Cross-compiling fails (patch included) Christian Bjälevik
2004-12-16 23:41 ` Sam Ravnborg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).