Skip to contentSkip to conversation

chumby-kernel: add a patch to remove hard setting CROSS_COMPILE from Makefile

PATCH In review Guo Hongruan 2 participants 2 messages Feb 1, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 chumby-kernel: add a patch to remove hard setting CROSS_COMPILE from Makefile

* linux-2.6.16-chumby-1.2.tar.gz set CROSS_COMPILE as arm-linux- hardly.
* It causes the AR used to compile chumby-kernel is arm-linux-, but it should be set dynamically
* according CROSS_COMPILE passed by openembedded

---
 ...akefile-remove-hard-setting-CROSS_COMPILE.patch |   18 ++++++++++++++++++
 recipes/linux/chumby-kernel_2.6.16-chumby-1.2.bb   |    1 +
 2 files changed, 19 insertions(+), 0 deletions(-)
 create mode 100644 recipes/linux/chumby-kernel/Makefile-remove-hard-setting-CROSS_COMPILE.patch
recipes/linux/chumby-kernel/Makefile-remove-hard-setting-CROSS_COMPILE.patch new file +18 -0
new file mode 100644
index 0000000..9a0be9a
@@ -0,0 +1,18 @@
+Makefile: remove hard setting CROSS_COMPILE
+
+* linux-2.6.16-chumby-1.2.tar.gz set CROSS_COMPILE as arm-linux- hardly
+* It causes the AR used to compiling linux kernel is arm-linux-ar, which doesn't exist in openembedded at all
+Index: linux-2.6.16/Makefile
+===================================================================
+--- linux-2.6.16.orig/Makefile	2010-02-01 16:19:36.000000000 +0800
++++ linux-2.6.16/Makefile	2010-02-01 16:20:02.000000000 +0800
+@@ -173,8 +173,7 @@
+ # Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile
+ 
+ ARCH		?= $(SUBARCH)
+-#CROSS_COMPILE	?=
+-CROSS_COMPILE = arm-linux-
++CROSS_COMPILE	?=
+ 
+ # Architecture as present in compile.h
+ UTS_MACHINE := $(ARCH)
recipes/linux/chumby-kernel_2.6.16-chumby-1.2.bb +1 -0
index b6cdf48..4967c1e 100644
@@ -9,6 +9,7 @@ SRC_URI = "http://files.chumby.com/source/ironforge/build396/linux-2.6.16-chumby
            http://files.chumby.com/source/ironforge/build396/align.pl \
            file://chumby-override-cmdline.patch;patch=1 \
            file://disable-fbchanging.patch;patch=1 \
+           file://Makefile-remove-hard-setting-CROSS_COMPILE.patch;patch=1 \
            file://defconfig \
            "
 
Signature · 1 line
1.5.4.3
#1 lore raw

Dnia poniedziałek, 1 lutego 2010 o 10:10:18 Guo Hongruan napisał(a):

Quoted 5 lines

* linux-2.6.16-chumby-1.2.tar.gz set CROSS_COMPILE as arm-linux- hardly.
* It causes the AR used to compile chumby-kernel is arm-linux-, but it should be set dynamically * according CROSS_COMPILE passed by openembedded

pushed

Regards,

Signature · 3 lines
JID:      [email protected]
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz