Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ca786f83a97d7897b013b1e9b290c9010b69af9b
Commit:     ca786f83a97d7897b013b1e9b290c9010b69af9b
Parent:     3049ea7e04408abf35dc295014cb6f1eabcf9b8c
Author:     Adrian Bunk <[EMAIL PROTECTED]>
AuthorDate: Tue Oct 2 13:30:09 2007 -0700
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Wed Oct 3 12:02:44 2007 +1000

    [POWERPC] Select proper defconfig for crosscompiles
    
    The trick for finding the right defconfig is neat, but you forgot to
    provide an i686_defconfig.  ;-)
    
    More seriously, cross compiling the defconfig is often useful, e.g. for
    testing the compilation of patches that touch multiple architectures,
    and this patch therefore chooses g5_defconfig if $(CROSS_COMPILE) is
    non-empty.
    
    Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]>
    Acked-by: Sam Ravnborg <[EMAIL PROTECTED]>
    Cc: Benjamin Herrenschmidt <[EMAIL PROTECTED]>
    Cc: Olof Johansson <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
---
 arch/powerpc/Makefile |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
index dc2d18e..643839a 100644
--- a/arch/powerpc/Makefile
+++ b/arch/powerpc/Makefile
@@ -35,7 +35,11 @@ endif
 
 export CROSS32CC CROSS32AS CROSS32LD CROSS32AR CROSS32OBJCOPY
 
+ifeq ($(CROSS_COMPILE),)
 KBUILD_DEFCONFIG := $(shell uname -m)_defconfig
+else
+KBUILD_DEFCONFIG := ppc64_defconfig
+endif
 
 ifeq ($(CONFIG_PPC64),y)
 OLDARCH        := ppc64
-
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  http://vger.kernel.org/majordomo-info.html

Reply via email to