@@ -264,12 +264,6 @@ cpuspecs = {
'winchip2' : {
'march' : 'winchip2',
},
- 'c3' : {
- 'march' : 'c3',
- },
- 'c32' : {
- 'march' : 'c3-2',
- },
},
'i586' : {
@@ -293,6 +287,12 @@ cpuspecs = {
'geode' : {
'march' : 'geode',
},
+ 'c3' : {
+ 'march' : 'c3',
+ },
+ 'c32' : {
+ 'march' : 'c3-2',
+ },
},
'i686' : {
new file mode 100644
@@ -0,0 +1,17 @@
+author Jacob Barsøe Kjærgaard
+to fix gcc 4.7.2 compile for mmx(only) supported x86 architectures
+--- crosstool-ng-1.17.0~orig/patches/gcc/4.7.2/131-mmx.patch~ 2012-04-04 17:51:15.000000000 +0200
++++ crosstool-ng-1.17.0~orig/patches/gcc/4.7.2/131-mmx.patch 2013-06-26 13:17:01.814742630 +0+200
+@@ -0,0 +1,11 @@
++--- gcc-4.7.2/libitm/config/x86/target.h~ 2012-04-04 17:51:15.000000000 +0200
+++++ gcc-4.7.2/libitm/config/x86/target.h 2013-06-26 13:17:01.814742630 +0+200
++@@ -77,6 +77,8 @@
++ # include <emmintrin.h>
++ # elif defined(__SSE__)
++ # include <xmmintrin.h>
+++# elif defined(__MMX__)
+++# include <mmintrin.h>
++ # endif
++ # ifdef __AVX__
++ # include <immintrin.h>
+
@@ -17,6 +17,7 @@ SRC_URI += "file://dmalloc-5.5.2-fix-recursion.patch"
SRC_URI += "file://eglibc-2_16-typedef-caddr.patch"
SRC_URI += "file://uclibceabi-instead-of-uclibcgnueabi.patch"
SRC_URI += "file://uclibc-target-cflags-fixup.patch"
+SRC_URI += "file://libitm-mmx.patch"
# For some odd reason, ct-NG configure scripts end up setting make path
# to just "make" and not the full path. And even more odd, this breaks
From: Jacob Kjaergaard <jacob@barsoekjaergaard.dk> --- lib/oelite/arch.py | 12 ++++++------ .../crosstool-ng-1.17.0/libitm-mmx.patch | 17 +++++++++++++++++ recipes/crosstool-ng/crosstool-ng_1.17.0.oe | 1 + 3 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 recipes/crosstool-ng/crosstool-ng-1.17.0/libitm-mmx.patch