summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2012-04-03 13:39:07 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-04 17:17:50 +0100
commitfedad51cb4e141fd9157813ff30e0521cf994f95 (patch)
treeaa8edae17edc6101fa903f9ed057cdaeddfac09d /meta/recipes-devtools
parentcd4d346c0e83fc9bf5497dd0424368e9244b6e08 (diff)
downloadpoky-fedad51cb4e141fd9157813ff30e0521cf994f95.tar.gz
binutils: Inform binutils that armv5e really is valid!
A comment in the binutils sources indicate that it should support all of the -march= parameters that gcc supports. The tune validations noted that gas failed on -march=armv5e. It is not yet clear to me if this patch belongs upstream or not. (From OE-Core rev: 4f2503ebdb5c491b758cbdf6eb7df96d4295c24f) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/binutils/binutils/binutils-armv5e.patch20
-rw-r--r--meta/recipes-devtools/binutils/binutils_2.22.bb3
2 files changed, 22 insertions, 1 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/binutils-armv5e.patch b/meta/recipes-devtools/binutils/binutils/binutils-armv5e.patch
new file mode 100644
index 0000000000..4ac1a9c981
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils/binutils-armv5e.patch
@@ -0,0 +1,20 @@
1Add the armv5e architecture to binutils
2
3Binutils has a comment that indicates it is supposed to match gcc for all of
4the support "-march=" settings, but it was lacking the armv5e setting. This
5was a simple way to add it, as thumb instructions shouldn't be generated by
6the compiler anyway.
7
8Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
9
10diff -urN binutils-2.22.orig/gas/config/tc-arm.c binutils-2.22/gas/config/tc-arm.c
11--- binutils-2.22.orig/gas/config/tc-arm.c 2011-11-21 03:29:31.000000000 -0600
12+++ binutils-2.22/gas/config/tc-arm.c 2012-04-03 12:07:42.230158760 -0500
13@@ -22990,6 +22990,7 @@
14 {"armv4t", ARM_ARCH_V4T, FPU_ARCH_FPA},
15 {"armv4txm", ARM_ARCH_V4TxM, FPU_ARCH_FPA},
16 {"armv5", ARM_ARCH_V5, FPU_ARCH_VFP},
17+ {"armv5e", ARM_ARCH_V5TE, FPU_ARCH_VFP},
18 {"armv5t", ARM_ARCH_V5T, FPU_ARCH_VFP},
19 {"armv5txm", ARM_ARCH_V5TxM, FPU_ARCH_VFP},
20 {"armv5te", ARM_ARCH_V5TE, FPU_ARCH_VFP},
diff --git a/meta/recipes-devtools/binutils/binutils_2.22.bb b/meta/recipes-devtools/binutils/binutils_2.22.bb
index 8b058fe1e1..d6d19a1159 100644
--- a/meta/recipes-devtools/binutils/binutils_2.22.bb
+++ b/meta/recipes-devtools/binutils/binutils_2.22.bb
@@ -1,6 +1,6 @@
1require binutils.inc 1require binutils.inc
2 2
3PR = "r5" 3PR = "r6"
4 4
5LIC_FILES_CHKSUM="\ 5LIC_FILES_CHKSUM="\
6 file://src-release;endline=17;md5=4830a9ef968f3b18dd5e9f2c00db2d35\ 6 file://src-release;endline=17;md5=4830a9ef968f3b18dd5e9f2c00db2d35\
@@ -30,6 +30,7 @@ SRC_URI = "\
30 file://libtool-rpath-fix.patch \ 30 file://libtool-rpath-fix.patch \
31 file://clone-shadow.patch \ 31 file://clone-shadow.patch \
32 file://binutils-powerpc-e5500.patch \ 32 file://binutils-powerpc-e5500.patch \
33 file://binutils-armv5e.patch \
33 " 34 "
34 35
35SRC_URI[md5sum] = "ee0f10756c84979622b992a4a61ea3f5" 36SRC_URI[md5sum] = "ee0f10756c84979622b992a4a61ea3f5"