summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSam Ravnborg <sam@uranus.ravnborg.org>2008-03-23 21:38:54 +0100
committerSam Ravnborg <sam@uranus.ravnborg.org>2008-03-23 21:38:54 +0100
commit4ce6efed48d736e3384c39ff87bda723e1f8e041 (patch)
tree961601d69caf571c5d3350d8d9f9075b844486b6 /Makefile
parentd2532dd20a126020de407c1c2476a75b53fce7ac (diff)
downloadlinux-3.10-4ce6efed48d736e3384c39ff87bda723e1f8e041.tar.gz
linux-3.10-4ce6efed48d736e3384c39ff87bda723e1f8e041.tar.bz2
linux-3.10-4ce6efed48d736e3384c39ff87bda723e1f8e041.zip
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7a4d34b91e0..1c4c8f87f6c 100644
--- a/Makefile
+++ b/Makefile
@@ -189,7 +189,7 @@ SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
# Alternatively CROSS_COMPILE can be set in the environment.
# Default value for CROSS_COMPILE is not to prefix executables
# Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile
-
+export KBUILD_BUILDHOST := $(SUBARCH)
ARCH ?= $(SUBARCH)
CROSS_COMPILE ?=