diff mbox

core+croostool-ng: fixup via c3 support

Message ID 1373222155-11085-1-git-send-email-jabk@prevas.dk
State Accepted
Delegated to: Esben Haabendal
Headers show

Commit Message

Jacob Kjaergaard July 7, 2013, 6:35 p.m. UTC
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

Comments

Esben Haabendal Aug. 7, 2013, 7:54 a.m. UTC | #1
Hi

I have split it up into two commits and pushed to master.

/Esben
diff mbox

Patch

diff --git a/lib/oelite/arch.py b/lib/oelite/arch.py
index f1b3935..aa8bb7c 100644
--- a/lib/oelite/arch.py
+++ b/lib/oelite/arch.py
@@ -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'		: {
diff --git a/recipes/crosstool-ng/crosstool-ng-1.17.0/libitm-mmx.patch b/recipes/crosstool-ng/crosstool-ng-1.17.0/libitm-mmx.patch
new file mode 100644
index 0000000..9b2da0a
--- /dev/null
+++ b/recipes/crosstool-ng/crosstool-ng-1.17.0/libitm-mmx.patch
@@ -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>
+
diff --git a/recipes/crosstool-ng/crosstool-ng_1.17.0.oe b/recipes/crosstool-ng/crosstool-ng_1.17.0.oe
index 084b365..3f7d3d1 100644
--- a/recipes/crosstool-ng/crosstool-ng_1.17.0.oe
+++ b/recipes/crosstool-ng/crosstool-ng_1.17.0.oe
@@ -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