* [Buildroot] [PATCH] boost: fix build for sparc
@ 2015-07-22 14:34 Gustavo Zacarias
2015-07-22 15:19 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Gustavo Zacarias @ 2015-07-22 14:34 UTC (permalink / raw)
To: buildroot
Using upstream patch, fixes:
http://autobuild.buildroot.net/results/dd0/dd032aa7b387f3ba5b25bffcaf833ba0ea9ba199/
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
...0003-Remove-bogus-c3-cpu-varant-for-SPARC.patch | 42 ++++++++++++++++++++++
1 file changed, 42 insertions(+)
create mode 100644 package/boost/0003-Remove-bogus-c3-cpu-varant-for-SPARC.patch
diff --git a/package/boost/0003-Remove-bogus-c3-cpu-varant-for-SPARC.patch b/package/boost/0003-Remove-bogus-c3-cpu-varant-for-SPARC.patch
new file mode 100644
index 0000000..a4d39b3
--- /dev/null
+++ b/package/boost/0003-Remove-bogus-c3-cpu-varant-for-SPARC.patch
@@ -0,0 +1,42 @@
+From ec60c37295146bb80aa44a92cf416027b75b5ff7 Mon Sep 17 00:00:00 2001
+From: Vladimir Prus <vladimir@codesourcery.com>
+Date: Mon, 27 Apr 2015 19:12:54 +0300
+Subject: [PATCH] Remove bogus 'c3' cpu varant for SPARC.
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+---
+ src/tools/gcc.jam | 3 +--
+ src/tools/gcc.py | 3 +--
+ 2 files changed, 2 insertions(+), 4 deletions(-)
+
+diff --git a/src/tools/gcc.jam b/src/tools/gcc.jam
+index eff95ae..128ab84 100644
+--- a/tools/build/src/tools/gcc.jam
++++ b/tools/build/src/tools/gcc.jam
+@@ -1138,8 +1138,7 @@ cpu-flags gcc OPTIONS : x86 : c3-2 : -march=c3-2 ;
+ ##
+ cpu-flags gcc OPTIONS : x86 : atom : -march=atom ;
+ # Sparc
+-cpu-flags gcc OPTIONS : sparc : c3 : -mcpu=c3 : default ;
+-cpu-flags gcc OPTIONS : sparc : v7 : -mcpu=v7 ;
++cpu-flags gcc OPTIONS : sparc : v7 : -mcpu=v7 : default ;
+ cpu-flags gcc OPTIONS : sparc : cypress : -mcpu=cypress ;
+ cpu-flags gcc OPTIONS : sparc : v8 : -mcpu=v8 ;
+ cpu-flags gcc OPTIONS : sparc : supersparc : -mcpu=supersparc ;
+diff --git a/src/tools/gcc.py b/src/tools/gcc.py
+index a13ce7a..d2d3294 100644
+--- a/tools/build/src/tools/gcc.py
++++ b/tools/build/src/tools/gcc.py
+@@ -789,8 +789,7 @@ cpu_flags('gcc', 'OPTIONS', 'x86', 'atom', ['-march=atom'])
+ # Sparc
+ flags('gcc', 'OPTIONS', ['<architecture>sparc/<address-model>32'], ['-m32'])
+ flags('gcc', 'OPTIONS', ['<architecture>sparc/<address-model>64'], ['-m64'])
+-cpu_flags('gcc', 'OPTIONS', 'sparc', 'c3', ['-mcpu=c3'], default=True)
+-cpu_flags('gcc', 'OPTIONS', 'sparc', 'v7', ['-mcpu=v7'])
++cpu_flags('gcc', 'OPTIONS', 'sparc', 'v7', ['-mcpu=v7'], default=True)
+ cpu_flags('gcc', 'OPTIONS', 'sparc', 'cypress', ['-mcpu=cypress'])
+ cpu_flags('gcc', 'OPTIONS', 'sparc', 'v8', ['-mcpu=v8'])
+ cpu_flags('gcc', 'OPTIONS', 'sparc', 'supersparc', ['-mcpu=supersparc'])
+--
+2.3.6
+
--
2.3.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] boost: fix build for sparc
2015-07-22 14:34 [Buildroot] [PATCH] boost: fix build for sparc Gustavo Zacarias
@ 2015-07-22 15:19 ` Thomas Petazzoni
2015-07-22 15:20 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2015-07-22 15:19 UTC (permalink / raw)
To: buildroot
Dear Gustavo Zacarias,
On Wed, 22 Jul 2015 11:34:36 -0300, Gustavo Zacarias wrote:
> Using upstream patch, fixes:
> http://autobuild.buildroot.net/results/dd0/dd032aa7b387f3ba5b25bffcaf833ba0ea9ba199/
>
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
> ...0003-Remove-bogus-c3-cpu-varant-for-SPARC.patch | 42 ++++++++++++++++++++++
> 1 file changed, 42 insertions(+)
> create mode 100644 package/boost/0003-Remove-bogus-c3-cpu-varant-for-SPARC.patch
Applied, thanks. Please don't forget to send the patch upstream!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] boost: fix build for sparc
2015-07-22 15:19 ` Thomas Petazzoni
@ 2015-07-22 15:20 ` Thomas Petazzoni
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2015-07-22 15:20 UTC (permalink / raw)
To: buildroot
Hello,
On Wed, 22 Jul 2015 17:19:26 +0200, Thomas Petazzoni wrote:
> Dear Gustavo Zacarias,
>
> On Wed, 22 Jul 2015 11:34:36 -0300, Gustavo Zacarias wrote:
> > Using upstream patch, fixes:
> > http://autobuild.buildroot.net/results/dd0/dd032aa7b387f3ba5b25bffcaf833ba0ea9ba199/
> >
> > Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> > ---
> > ...0003-Remove-bogus-c3-cpu-varant-for-SPARC.patch | 42 ++++++++++++++++++++++
> > 1 file changed, 42 insertions(+)
> > create mode 100644 package/boost/0003-Remove-bogus-c3-cpu-varant-for-SPARC.patch
>
> Applied, thanks. Please don't forget to send the patch upstream!
I should read more carefully. I saw your SoB on the patch, so I thought
it was yours. The patch is already upstream and is a backport.
Conclusion: it's perfect, and I need better glasses.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-07-22 15:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-22 14:34 [Buildroot] [PATCH] boost: fix build for sparc Gustavo Zacarias
2015-07-22 15:19 ` Thomas Petazzoni
2015-07-22 15:20 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox