summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils
diff options
context:
space:
mode:
authorJagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>2015-09-09 01:32:01 +0530
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-09 14:27:47 +0100
commit8a2edb9856344cb562e044146267bedc7cb99ba9 (patch)
treea8568b2a4d305fe9ae1a7b09922720b25dd64391 /meta/recipes-devtools/binutils
parent8ad2c024f3cad67768fbc4ab0f99461255dc9ad5 (diff)
downloadpoky-8a2edb9856344cb562e044146267bedc7cb99ba9.tar.gz
binutils: Add thunderx support to gas
Without this patch, cross compiling for AArch64 with "-mcpu=thunderx" fails with below error, -- snip -- Assembler messages: Error: unknown cpu `thunderx' Error: unrecognized option -mcpu=thunderx -- CUT -- (From OE-Core rev: 0cdf96013f66ee3a695038af633e3160b7f720dc) Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/binutils')
-rw-r--r--meta/recipes-devtools/binutils/binutils-2.25.1.inc1
-rw-r--r--meta/recipes-devtools/binutils/binutils/add-thunderx-support-for-gas.patch33
2 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.25.1.inc b/meta/recipes-devtools/binutils/binutils-2.25.1.inc
index 120db87e1a..f3817fafb6 100644
--- a/meta/recipes-devtools/binutils/binutils-2.25.1.inc
+++ b/meta/recipes-devtools/binutils/binutils-2.25.1.inc
@@ -34,6 +34,7 @@ SRC_URI = "\
34 file://0014-gold-arm-Skip-pic-check-for-R_ARM_REL32.patch \ 34 file://0014-gold-arm-Skip-pic-check-for-R_ARM_REL32.patch \
35 file://0015-Fix-dynamic-list-so-that-symbols-not-in-the-list-are.patch \ 35 file://0015-Fix-dynamic-list-so-that-symbols-not-in-the-list-are.patch \
36 file://binutils-octeon3.patch \ 36 file://binutils-octeon3.patch \
37 file://add-thunderx-support-for-gas.patch \
37 " 38 "
38S = "${WORKDIR}/git" 39S = "${WORKDIR}/git"
39 40
diff --git a/meta/recipes-devtools/binutils/binutils/add-thunderx-support-for-gas.patch b/meta/recipes-devtools/binutils/binutils/add-thunderx-support-for-gas.patch
new file mode 100644
index 0000000000..0f6875e4f2
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils/add-thunderx-support-for-gas.patch
@@ -0,0 +1,33 @@
1Add thunderx support to gas
2
3Upstream-Status: Submitted [https://sourceware.org/ml/binutils/2014-10/msg00170.html]
4
5Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
6
7Author: Andrew Pinski <apinski@cavium.com>
8Date: Mon, 20 Oct 2014 11:42:58 -0700
9
10 This patch adds -mcpu=thunderx support to gas.
11
12diff -Naurp git_org/gas/config/tc-aarch64.c git/gas/config/tc-aarch64.c
13--- git_org/gas/config/tc-aarch64.c 2015-09-07 02:13:51.988973523 -0700
14+++ git/gas/config/tc-aarch64.c 2015-09-07 02:15:21.705981540 -0700
15@@ -7206,6 +7206,7 @@ static const struct aarch64_cpu_option_t
16 AARCH64_FEATURE_CRC), "Cortex-A57"},
17 {"cortex-a72", AARCH64_FEATURE (AARCH64_ARCH_V8,
18 AARCH64_FEATURE_CRC), "Cortex-A72"},
19+ {"thunderx", AARCH64_ARCH_V8, "Cavium ThunderX"},
20 {"exynos-m1", AARCH64_FEATURE (AARCH64_ARCH_V8,
21 AARCH64_FEATURE_CRC | AARCH64_FEATURE_CRYPTO),
22 "Samsung Exynos M1"},
23diff -Naurp git_org/gas/doc/c-aarch64.texi git/gas/doc/c-aarch64.texi
24--- git_org/gas/doc/c-aarch64.texi 2015-09-07 02:13:51.969973522 -0700
25+++ git/gas/doc/c-aarch64.texi 2015-09-07 02:16:03.364985262 -0700
26@@ -58,6 +58,7 @@ on the target processor. The following
27 @code{cortex-a53},
28 @code{cortex-a57},
29 @code{cortex-a72},
30+@code{thunderx},
31 @code{exynos-m1},
32 @code{xgene1},
33 and