]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
kbuild: soften modpost checks when doing cross builds
authorSam Ravnborg <sam@uranus.ravnborg.org>
Sun, 23 Mar 2008 20:38:54 +0000 (21:38 +0100)
committerSam Ravnborg <sam@uranus.ravnborg.org>
Sun, 23 Mar 2008 20:38:54 +0000 (21:38 +0100)
commit4ce6efed48d736e3384c39ff87bda723e1f8e041
tree961601d69caf571c5d3350d8d9f9075b844486b6
parentd2532dd20a126020de407c1c2476a75b53fce7ac
kbuild: soften modpost checks when doing cross builds

The module alias support in the kernel have a consistency
check where it is checked that the size of a structure
in the kernel and on the build host are the same.
For cross builds this check does not make sense so detect
when we do cross builds and silently skip the check in these
situations.
This fixes a build bug for a wireless driver when cross building
for arm.

Acked-by: Michael Buesch <mb@bu3sch.de>
Tested-by: Gordon Farquharson <gordonfarquharson@gmail.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: stable@kernel.org
Makefile
scripts/Makefile.modpost
scripts/mod/file2alias.c
scripts/mod/modpost.c
scripts/mod/modpost.h