Re: kbuild: disable depmod in cross-compile kernel build

From: Geert Uytterhoeven
Date: Sun Oct 21 2007 - 13:53:58 EST


On Fri, 19 Oct 2007, Linux Kernel Mailing List wrote:
> Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=50a8ec31c3a00594ceb7c5f1dcf2ecdaf6a5b847
> Commit: 50a8ec31c3a00594ceb7c5f1dcf2ecdaf6a5b847
> Parent: 6f67a00498abf8f0b29c2cecfce188c70be309d0
> Author: Sam Ravnborg <sam@neptun.(none)>
> AuthorDate: Thu Oct 18 21:24:21 2007 +0200
> Committer: Sam Ravnborg <sam@neptun.(none)>
> CommitDate: Thu Oct 18 23:17:06 2007 +0200
>
> kbuild: disable depmod in cross-compile kernel build
>
> When building embedded systems in a cross-compile environment and
> populating a target's file system image, we don't want to run the
> depmod on the host as we may be building for a completely different
> architecture. Since there's no such thing as a cross-depmod, we
> just disable running depmod in the cross-compile case and we just
> run depmod on the target at bootup.
>
> Inspired by patches from Christian, Armin and Deepak.
>
> This solves: http://bugzilla.kernel.org/show_bug.cgi?id=3881
>
> Signed-off-by: Sam Ravnborg <sam@xxxxxxxxxxxx>
> Cc: Christian BjÃlevik <nafallo@xxxxxxxxxxxxxxxx>
> Cc: Deepak Saxena <dsaxena@xxxxxxxxxx> and
> Cc: Armin Kuster <akuster@xxxxxxxxxx>,

Euh, is these really necessary?

At work I have no problems running depmod on an i386 system for ppc64 modules
after I installed module-init-tools 3.3-pre2 (from Debian).
I did have problems (depmod SEGV) using the depmod that came with CentOS
4 (from module-init-tools 3.1-pre5).

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds