]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kbuild: soften modpost checks when doing cross builds
authorSam Ravnborg <sam@uranus.ravnborg.org>
Tue, 25 Mar 2008 02:40:08 +0000 (02:40 +0000)
committerChris Wright <chrisw@sous-sol.org>
Sat, 19 Apr 2008 01:53:18 +0000 (18:53 -0700)
commit05c65923c9ca3052b110281099543bdd35d385af
tree9b842325f956352060f3fa4a8bafcec391cd8d47
parent8512564b498417a1e6e9a4a228c20ffc667c3c0b
kbuild: soften modpost checks when doing cross builds

upstream commit: 4ce6efed48d736e3384c39ff87bda723e1f8e041

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>
[chrisw@sous-sol.org: backport to 2.6.24.4]
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Makefile
scripts/Makefile.modpost
scripts/mod/file2alias.c
scripts/mod/modpost.c
scripts/mod/modpost.h