* [2.6 patch] powerpc: proper defconfig for crosscompiles
@ 2007-09-09 18:21 Adrian Bunk
2007-09-09 18:39 ` Sam Ravnborg
2007-09-09 20:40 ` Olof Johansson
0 siblings, 2 replies; 3+ messages in thread
From: Adrian Bunk @ 2007-09-09 18:21 UTC (permalink / raw)
To: paulus; +Cc: linuxppc-dev, linux-kernel, Sam Ravnborg
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 <bunk@kernel.org>
---
0b0e6e0e3a16f48348cb9c40ef1bb55ef42f92eb
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
index 2065138..a39bac4 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 := g5_defconfig
+endif
ifeq ($(CONFIG_PPC64),y)
OLDARCH := ppc64
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [2.6 patch] powerpc: proper defconfig for crosscompiles
2007-09-09 18:21 [2.6 patch] powerpc: proper defconfig for crosscompiles Adrian Bunk
@ 2007-09-09 18:39 ` Sam Ravnborg
2007-09-09 20:40 ` Olof Johansson
1 sibling, 0 replies; 3+ messages in thread
From: Sam Ravnborg @ 2007-09-09 18:39 UTC (permalink / raw)
To: Adrian Bunk; +Cc: paulus, linuxppc-dev, linux-kernel
On Sun, Sep 09, 2007 at 08:21:17PM +0200, Adrian Bunk wrote:
> 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.
Thanks - much appreciated.
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Sam
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [2.6 patch] powerpc: proper defconfig for crosscompiles
2007-09-09 18:21 [2.6 patch] powerpc: proper defconfig for crosscompiles Adrian Bunk
2007-09-09 18:39 ` Sam Ravnborg
@ 2007-09-09 20:40 ` Olof Johansson
1 sibling, 0 replies; 3+ messages in thread
From: Olof Johansson @ 2007-09-09 20:40 UTC (permalink / raw)
To: Adrian Bunk; +Cc: paulus, linuxppc-dev, Sam Ravnborg, linux-kernel
On Sun, Sep 09, 2007 at 08:21:17PM +0200, Adrian Bunk wrote:
> 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.
You should probably use ppc64_defconfig instead, since it's the "superset"
config that will compile a multiplatform kernel.
-Olof
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-09-09 20:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-09 18:21 [2.6 patch] powerpc: proper defconfig for crosscompiles Adrian Bunk
2007-09-09 18:39 ` Sam Ravnborg
2007-09-09 20:40 ` Olof Johansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox