diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2008-10-20 21:49:00 +0000 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2008-10-20 21:49:00 +0000 |
commit | d62e0ad0be1b335b17e59bb708b6af2292f55109 (patch) | |
tree | cd12b1c7442dfd69745e13dafc5b09ba6af0b320 | |
parent | 7131c112a85b295484661d5d6fbc32aaa27e142a (diff) | |
download | OSELAS.Toolchain-d62e0ad0be1b335b17e59bb708b6af2292f55109.tar.gz OSELAS.Toolchain-d62e0ad0be1b335b17e59bb708b6af2292f55109.tar.xz |
* patches/linux-2.6.18:
fix powerpc
git-svn-id: https://svn.pengutronix.de/svn/oselas/toolchain/trunks/OSELAS.Toolchain-trunk@7881 f8d472c7-5700-0410-ac5a-87979cec3adf
-rw-r--r-- | patches/linux-2.6.18/generic/0001--POWERPC-Select-proper-defconfig-for-crosscompiles.patch | 42 | ||||
-rw-r--r-- | patches/linux-2.6.18/generic/series | 1 |
2 files changed, 43 insertions, 0 deletions
diff --git a/patches/linux-2.6.18/generic/0001--POWERPC-Select-proper-defconfig-for-crosscompiles.patch b/patches/linux-2.6.18/generic/0001--POWERPC-Select-proper-defconfig-for-crosscompiles.patch new file mode 100644 index 0000000..b6ce1dc --- /dev/null +++ b/patches/linux-2.6.18/generic/0001--POWERPC-Select-proper-defconfig-for-crosscompiles.patch @@ -0,0 +1,42 @@ +From ca786f83a97d7897b013b1e9b290c9010b69af9b Mon Sep 17 00:00:00 2001 +From: Adrian Bunk <bunk@kernel.org> +Date: Tue, 2 Oct 2007 13:30:09 -0700 +Subject: [PATCH] [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 <bunk@kernel.org> +Acked-by: Sam Ravnborg <sam@ravnborg.org> +Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> +Cc: Olof Johansson <olof@lixom.net> +Signed-off-by: Andrew Morton <akpm@linux-foundation.org> +Signed-off-by: Paul Mackerras <paulus@samba.org> +--- + 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 +-- +1.5.6.5 + diff --git a/patches/linux-2.6.18/generic/series b/patches/linux-2.6.18/generic/series new file mode 100644 index 0000000..458ce5e --- /dev/null +++ b/patches/linux-2.6.18/generic/series @@ -0,0 +1 @@ +0001--POWERPC-Select-proper-defconfig-for-crosscompiles.patch |