changeset 831:3116f25406d6

Add patch armv4tl needs, and tweak settings to provide equivalent but slightly less confusing binutils/gcc tuple.
author Rob Landley <rob@landley.net>
date Thu, 01 Oct 2009 20:50:44 -0500
parents f65196307da0
children fc498452494a
files sources/patches/gcc-core-unbreak-armv4t.patch sources/targets/armv4tl/settings
diffstat 2 files changed, 14 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sources/patches/gcc-core-unbreak-armv4t.patch	Thu Oct 01 20:50:44 2009 -0500
@@ -0,0 +1,11 @@
+--- gcc-4.2.1/gcc/config/arm/linux-eabi.h	2006-02-17 00:29:10.000000000 +0100
++++ gcc-4.2.1-patched/gcc/config/arm/linux-eabi.h	2009-09-16 13:34:25.000000000 +0200
+@@ -45,8 +45,6 @@
+ /* Default to armv5t so that thumb shared libraries work.
+    The ARM10TDMI core is the default for armv5t, so set
+    SUBTARGET_CPU_DEFAULT to achieve this.  */
+-#undef SUBTARGET_CPU_DEFAULT
+-#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm10tdmi
+ 
+ #undef SUBTARGET_EXTRA_LINK_SPEC
+ #define SUBTARGET_EXTRA_LINK_SPEC " -m armelf_linux_eabi"
--- a/sources/targets/armv4tl/settings	Wed Sep 30 23:26:33 2009 -0500
+++ b/sources/targets/armv4tl/settings	Thu Oct 01 20:50:44 2009 -0500
@@ -4,7 +4,7 @@
 BINUTILS_FLAGS=
 QEMU_TEST=$KARCH
 
-CROSS_TARGET=armv4lt-unknown-linux-gnueabi
+CROSS_TARGET=armv4tl-unknown-linux-gnueabi
 
 ROOT=sda
 CONSOLE=ttyAMA0
@@ -13,8 +13,8 @@
 export target_cpu_cname=arm9tdmi
 
 # Gentoo from Scratch
-GFS_CHOST="armv4lt-unknown-linux-gnueabi"
-GFS_ARCH="arm"
+GFS_CHOST="$CROSS_TARGET"
+GFS_ARCH="$KARCH"
 
 emulator_command()
 {