Revision: 10642
Author:   [email protected]
Date:     Wed Feb  8 05:14:24 2012
Log: MIPS: Enabled native/cross-compilation for MIPS targets in the gyp system.

Also added selectable mips32r2 mode.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/9361024
http://code.google.com/p/v8/source/detail?r=10642

Modified:
 /branches/bleeding_edge/build/common.gypi
 /branches/bleeding_edge/build/mipsu.gypi

=======================================
--- /branches/bleeding_edge/build/common.gypi   Thu Feb  2 12:18:19 2012
+++ /branches/bleeding_edge/build/common.gypi   Wed Feb  8 05:14:24 2012
@@ -169,6 +169,28 @@
               'V8_TARGET_ARCH_MIPS',
             ],
             'conditions': [
+              [ 'target_arch=="mips"', {
+                'target_conditions': [
+                  ['_toolset=="target"', {
+                    'cflags': ['-EL'],
+                    'ldflags': ['-EL'],
+                    'conditions': [
+                      [ 'v8_use_mips_abi_hardfloat=="true"', {
+                        'cflags': ['-mhard-float'],
+                        'ldflags': ['-mhard-float'],
+                      }, {
+                        'cflags': ['-msoft-float'],
+                        'ldflags': ['-msoft-float'],
+                      }],
+                      ['mips_arch_variant=="mips32r2"', {
+                        'cflags': ['-mips32r2', '-Wa,-mips32r2'],
+                      }, {
+                        'cflags': ['-mips32', '-Wa,-mips32'],
+                      }],
+                    ],
+                  }],
+                ],
+              }],
               [ 'v8_can_use_fpu_instructions=="true"', {
                 'defines': [
                   'CAN_USE_FPU_INSTRUCTIONS',
@@ -184,6 +206,9 @@
                   '__mips_soft_float=1'
                 ],
               }],
+              ['mips_arch_variant=="mips32r2"', {
+                'defines': ['_MIPS_ARCH_MIPS32R2',],
+              }],
               # The MIPS assembler assumes the host is 32 bits,
               # so force building 32-bit host tools.
               ['host_arch=="x64"', {
=======================================
--- /branches/bleeding_edge/build/mipsu.gypi    Wed Nov  9 07:31:54 2011
+++ /branches/bleeding_edge/build/mipsu.gypi    Wed Feb  8 05:14:24 2012
@@ -29,5 +29,6 @@
   'variables': {
     'target_arch': 'ia32',
     'v8_target_arch': 'mips',
+    'mips_arch_variant': 'mips32r2',
   },
 }

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to