* PATCH to fix depmod failure for modules-install of a cross compiled kernel. (fwd)
@ 2004-10-18 18:07 Mark Fortescue
2004-10-18 21:07 ` Sam Ravnborg
2004-10-19 8:11 ` Keith Owens
0 siblings, 2 replies; 3+ messages in thread
From: Mark Fortescue @ 2004-10-18 18:07 UTC (permalink / raw)
To: linux-kernel
Opps. Sorry, I did not read all of the lists of things to so for
submitting a patch.
---------- Forwarded message ----------
Date: Sun, 17 Oct 2004 21:30:02 +0100 (BST)
From: Mark Fortescue <mark@mtfhpc.demon.co.uk>
To: kai@germaschewski.name, sam@ravnborg.org
Cc: trivial@rustcorp.com.au
Subject: depmod failure for modules-install of a cross compiled kernel.
Hi all,
I ran into a small but inconvinient problem today when doing a
modules-install. The tempory solution is do disable depmod
when corss compiling. See the patch below.
Regards
Mark Fortescue.
##############################################################################
#
# Mark Fortescue (mark@mtfhpc.demon.co.uk) 17th Oct 2004
#
# (from 2.6.8.1 with patch-2.6.9-rc2 and patch-2.6.9-rc2-bk6 applied.)
#
# When cross compiling for sparc on an i586 system,
# 'depmod' (module-init-tools-3.0) core dumped. The tempory
# solution is to disable 'depmod' when cross compiling.
# The correct solution is to fix 'depmod'.
#
##############################################################################
diff -ruNpd linux-2.6.8.1/Makefile linux-2.6.8.1-p02/Makefile
--- linux-2.6.8.1/Makefile Fri Oct 15 20:19:18 2004
+++ linux-2.6.8.1-p02/Makefile Sun Oct 17 02:38:34 2004
@@ -868,7 +868,7 @@ depmod_opts := -b $(INSTALL_MOD_PATH) -r
endif
.PHONY: _modinst_post
_modinst_post: _modinst_
- if [ -r System.map ]; then $(DEPMOD) -ae -F System.map $(depmod_opts) $(KERNELRELEASE); fi
+ if [ -r System.map -a -z "$(CROSS_COMPILE)" ]; then $(DEPMOD) -ae -F System.map $(depmod_opts) $(KERNELRELEASE); fi
else # CONFIG_MODULES
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PATCH to fix depmod failure for modules-install of a cross compiled kernel. (fwd)
2004-10-18 18:07 PATCH to fix depmod failure for modules-install of a cross compiled kernel. (fwd) Mark Fortescue
@ 2004-10-18 21:07 ` Sam Ravnborg
2004-10-19 8:11 ` Keith Owens
1 sibling, 0 replies; 3+ messages in thread
From: Sam Ravnborg @ 2004-10-18 21:07 UTC (permalink / raw)
To: Mark Fortescue, rusty; +Cc: linux-kernel
On Mon, Oct 18, 2004 at 07:07:07PM +0100, Mark Fortescue wrote:
>
> Hi all,
>
> I ran into a small but inconvinient problem today when doing a
> modules-install. The tempory solution is do disable depmod
> when corss compiling. See the patch below.
I rather keep the present situation in the hope that either depmod is
fixed, or functionality implemented where it blelongs.
Sam
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PATCH to fix depmod failure for modules-install of a cross compiled kernel. (fwd)
2004-10-18 18:07 PATCH to fix depmod failure for modules-install of a cross compiled kernel. (fwd) Mark Fortescue
2004-10-18 21:07 ` Sam Ravnborg
@ 2004-10-19 8:11 ` Keith Owens
1 sibling, 0 replies; 3+ messages in thread
From: Keith Owens @ 2004-10-19 8:11 UTC (permalink / raw)
To: Mark Fortescue; +Cc: linux-kernel
On Mon, 18 Oct 2004 19:07:07 +0100 (BST),
Mark Fortescue <mark@mtfhpc.demon.co.uk> wrote:
># 'depmod' (module-init-tools-3.0) core dumped. The tempory
># solution is to disable 'depmod' when cross compiling.
When cross compiling, specify 'DEPMOD=/bin/true' on the command line to
turn it into a no-op.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-10-19 8:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-18 18:07 PATCH to fix depmod failure for modules-install of a cross compiled kernel. (fwd) Mark Fortescue
2004-10-18 21:07 ` Sam Ravnborg
2004-10-19 8:11 ` Keith Owens
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).