From 8a2edb9856344cb562e044146267bedc7cb99ba9 Mon Sep 17 00:00:00 2001 From: Jagadeesh Krishnanjanappa Date: Wed, 9 Sep 2015 01:32:01 +0530 Subject: 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 Signed-off-by: Richard Purdie --- .../binutils/add-thunderx-support-for-gas.patch | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 meta/recipes-devtools/binutils/binutils/add-thunderx-support-for-gas.patch (limited to 'meta/recipes-devtools/binutils/binutils') 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 @@ +Add thunderx support to gas + +Upstream-Status: Submitted [https://sourceware.org/ml/binutils/2014-10/msg00170.html] + +Signed-off-by: Jagadeesh Krishnanjanappa + +Author: Andrew Pinski +Date: Mon, 20 Oct 2014 11:42:58 -0700 + + This patch adds -mcpu=thunderx support to gas. + +diff -Naurp git_org/gas/config/tc-aarch64.c git/gas/config/tc-aarch64.c +--- git_org/gas/config/tc-aarch64.c 2015-09-07 02:13:51.988973523 -0700 ++++ git/gas/config/tc-aarch64.c 2015-09-07 02:15:21.705981540 -0700 +@@ -7206,6 +7206,7 @@ static const struct aarch64_cpu_option_t + AARCH64_FEATURE_CRC), "Cortex-A57"}, + {"cortex-a72", AARCH64_FEATURE (AARCH64_ARCH_V8, + AARCH64_FEATURE_CRC), "Cortex-A72"}, ++ {"thunderx", AARCH64_ARCH_V8, "Cavium ThunderX"}, + {"exynos-m1", AARCH64_FEATURE (AARCH64_ARCH_V8, + AARCH64_FEATURE_CRC | AARCH64_FEATURE_CRYPTO), + "Samsung Exynos M1"}, +diff -Naurp git_org/gas/doc/c-aarch64.texi git/gas/doc/c-aarch64.texi +--- git_org/gas/doc/c-aarch64.texi 2015-09-07 02:13:51.969973522 -0700 ++++ git/gas/doc/c-aarch64.texi 2015-09-07 02:16:03.364985262 -0700 +@@ -58,6 +58,7 @@ on the target processor. The following + @code{cortex-a53}, + @code{cortex-a57}, + @code{cortex-a72}, ++@code{thunderx}, + @code{exynos-m1}, + @code{xgene1}, + and -- cgit v1.2.3-54-g00ecf