Commit 05c65923 authored by Sam Ravnborg's avatar Sam Ravnborg Committed by Chris Wright
Browse files

kbuild: soften modpost checks when doing cross builds



upstream commit: 4ce6efed

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: default avatarMichael Buesch <mb@bu3sch.de>
Tested-by: default avatarGordon Farquharson <gordonfarquharson@gmail.com>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
[chrisw@sous-sol.org: backport to 2.6.24.4]
Signed-off-by: default avatarChris Wright <chrisw@sous-sol.org>
parent 8512564b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment