# HG changeset patch # User Rob Landley # Date 1254448244 18000 # Node ID 3116f25406d614f2a1c73a305b6a8b835b340295 # Parent f65196307da04357889bf366d7228ae90b8f9771 Add patch armv4tl needs, and tweak settings to provide equivalent but slightly less confusing binutils/gcc tuple. diff -r f65196307da0 -r 3116f25406d6 sources/patches/gcc-core-unbreak-armv4t.patch --- /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" diff -r f65196307da0 -r 3116f25406d6 sources/targets/armv4tl/settings --- 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() {