From: "Linus Walleij" <linus.ml.walleij@gmail.com>
To: linux-embedded@vger.kernel.org
Subject: Re: modules.dep and depmod.pl
Date: Sat, 14 Jun 2008 21:38:56 +0200 [thread overview]
Message-ID: <63386a3d0806141238g1a0c5ef3oada7ae67461fb8d6@mail.gmail.com> (raw)
In-Reply-To: <loom.20080614T092033-823@post.gmane.org>
2008/6/14 Matthieu castet <castet.matthieu@free.fr>:
> What's wrong with using your host depmod to build it.
> When I build a crosscompilation kernel, and I do make module_install,
> modules.dep are generated.
Well I do believe that works for you because you're lucky to
have a host with a recent kernel and module-init-tools.
However I believe that creates an unsound relation between the
host depmod and any cross compilation.
Currently I try to cross-compile a 2.6.25 kernel on an old good
workhorse with a 2.4.x kernel & likewise antique depmod. It
just won't work.
I tried to cross-compile all module-init-tools with --build=i386,
--host=i386, --target=arm-linux,
but that still fails: it checks what version of the kernel it's working
on, and determines that since that is a 2.4.x version it needs
to execute depmod.old instead :-P (Perhaps this is bug?)
I'd _really_ prefer cross-compilation to use the cross compiler
and in-kernel tools only, and currently I think it is actually
only depmod that deviates from that. (OK some scripts may
need a recent version of perl or so, that was just discussed in
another thread.)
Do you think an attempt to patch busybox:s depmod.pl into
scripts/ for the benefit of cross-compilation would be frowned
upon?
Linus Walleij
prev parent reply other threads:[~2008-06-14 19:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <63386a3d0806131611g61ad6ab1t16bc68ab6407a8dc@mail.gmail.com>
2008-06-13 23:33 ` modules.dep and depmod.pl Linus Walleij
2008-06-13 23:45 ` Mike Frysinger
2008-06-14 17:00 ` Bernhard Fischer
2008-06-14 6:51 ` Dave Hylands
2008-06-14 19:23 ` Linus Walleij
2008-06-14 9:26 ` Matthieu castet
2008-06-14 19:38 ` Linus Walleij [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=63386a3d0806141238g1a0c5ef3oada7ae67461fb8d6@mail.gmail.com \
--to=linus.ml.walleij@gmail.com \
--cc=linux-embedded@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).