Commit:     011e3a9ad4891ba1b27e281e085228189c56b137
Parent:     dd47ea755693228bf842c779e8afdfa47efb20a3
Author:     Jeff Dike <[EMAIL PROTECTED]>
AuthorDate: Wed Dec 13 00:34:12 2006 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed Dec 13 09:05:48 2006 -0800

    [PATCH] Fix crossbuilding checkstack
    The previous checkstack fix for UML, which needs to use the host's tools,
    was wrong in the crossbuilding case.  It would use the build host's, rather
    than the target's, toolchain.
    This patch removes the old fix and adds an explicit special case for UML,
    leaving everyone else alone.
    Signed-off-by: Jeff Dike <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 Makefile |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 4eabaa8..f732e75 100644
--- a/Makefile
+++ b/Makefile
@@ -1390,12 +1390,18 @@ endif #ifeq ($(mixed-targets),1)
 PHONY += checkstack kernelrelease kernelversion
-# Use $(SUBARCH) here instead of $(ARCH) so that this works for UML.
-# In the UML case, $(SUBARCH) is the name of the underlying
-# architecture, while for all other arches, it is the same as $(ARCH).
+# UML needs a little special treatment here.  It wants to use the host
+# toolchain, so needs $(SUBARCH) passed to  Everyone
+# else wants $(ARCH), including people doing cross-builds, which means
+# that $(SUBARCH) doesn't work here.
+ifeq ($(ARCH), um)
        $(OBJDUMP) -d vmlinux $$(find . -name '*.ko') | \
-       $(PERL) $(src)/scripts/ $(SUBARCH)
+       $(PERL) $(src)/scripts/ $(CHECKSTACK_ARCH)
        $(if $(wildcard include/config/kernel.release), $(Q)echo 
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to