summaryrefslogtreecommitdiff
path: root/recipes/gcc/gcc-svn/debian/arm-unbreak-eabi-armv4t.dpatch
diff options
context:
space:
mode:
authorLuke Gox <luke@box0.(none)>2009-04-09 20:07:55 +0200
committerLuke Gox <luke@box0.(none)>2009-04-09 20:07:55 +0200
commitb2418f27304b215acd011f0b3e4f258329f21545 (patch)
tree58361e035aa81827d57c3ee9f39dfcf0f105d5c4 /recipes/gcc/gcc-svn/debian/arm-unbreak-eabi-armv4t.dpatch
parent6255cd11b01d03599cb9c1e9391c8c5da1467af2 (diff)
parentcf68d88dc9a23665ac8cb8bf7599d4f210d52718 (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/gcc/gcc-svn/debian/arm-unbreak-eabi-armv4t.dpatch')
-rw-r--r--recipes/gcc/gcc-svn/debian/arm-unbreak-eabi-armv4t.dpatch36
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes/gcc/gcc-svn/debian/arm-unbreak-eabi-armv4t.dpatch b/recipes/gcc/gcc-svn/debian/arm-unbreak-eabi-armv4t.dpatch
new file mode 100644
index 0000000000..7bb8887068
--- /dev/null
+++ b/recipes/gcc/gcc-svn/debian/arm-unbreak-eabi-armv4t.dpatch
@@ -0,0 +1,36 @@
+#! /bin/sh -e
+
+# DP: Fix armv4t build on ARM
+
+dir=
+if [ $# -eq 3 -a "$2" = '-d' ]; then
+ pdir="-d $3"
+ dir="$3/"
+elif [ $# -ne 1 ]; then
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+fi
+case "$1" in
+ -patch)
+ patch $pdir -f --no-backup-if-mismatch -p1 < $0
+ ;;
+ -unpatch)
+ patch $pdir -f --no-backup-if-mismatch -R -p1 < $0
+ ;;
+ *)
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+esac
+exit 0
+
+--- src/gcc/config/arm/linux-eabi.h.orig 2007-11-24 12:37:38.000000000 +0000
++++ src/gcc/config/arm/linux-eabi.h 2007-11-24 12:39:41.000000000 +0000
+@@ -44,7 +44,7 @@
+ 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
++#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm9tdmi
+
+ /* TARGET_BIG_ENDIAN_DEFAULT is set in
+ config.gcc for big endian configurations. */