Index: SConstruct |
diff --git a/SConstruct b/SConstruct |
index d4eaebef8debd1fd459ddf6bd662e8c46ede37e3..859f6137b7c2ee83885e3888f6c1def81962ad71 100644 |
--- a/SConstruct |
+++ b/SConstruct |
@@ -185,6 +185,9 @@ LIBRARY_FLAGS = { |
'mips_arch_variant:mips32r2': { |
'CPPDEFINES': ['_MIPS_ARCH_MIPS32R2'] |
}, |
+ 'mips_arch_variant:loongson': { |
+ 'CPPDEFINES': ['_MIPS_ARCH_LOONGSON'] |
+ }, |
'simulator:none': { |
'CCFLAGS': ['-EL'], |
'LINKFLAGS': ['-EL'], |
@@ -194,6 +197,9 @@ LIBRARY_FLAGS = { |
'mips_arch_variant:mips32r1': { |
'CCFLAGS': ['-mips32', '-Wa,-mips32'] |
}, |
+ 'mips_arch_variant:loongson': { |
+ 'CCFLAGS': ['-march=mips3', '-Wa,-march=mips3'] |
+ }, |
'library:static': { |
'LINKFLAGS': ['-static', '-static-libgcc'] |
}, |
@@ -539,6 +545,9 @@ SAMPLE_FLAGS = { |
'mips_arch_variant:mips32r2': { |
'CPPDEFINES': ['_MIPS_ARCH_MIPS32R2'] |
}, |
+ 'mips_arch_variant:loongson': { |
+ 'CPPDEFINES': ['_MIPS_ARCH_LOONGSON'] |
+ }, |
'simulator:none': { |
'CCFLAGS': ['-EL'], |
'LINKFLAGS': ['-EL'], |
@@ -548,6 +557,9 @@ SAMPLE_FLAGS = { |
'mips_arch_variant:mips32r1': { |
'CCFLAGS': ['-mips32', '-Wa,-mips32'] |
}, |
+ 'mips_arch_variant:loongson': { |
+ 'CCFLAGS': ['-march=mips3', '-Wa,-march=mips3'] |
+ }, |
'library:static': { |
'LINKFLAGS': ['-static', '-static-libgcc'] |
}, |
@@ -691,6 +703,9 @@ PREPARSER_FLAGS = { |
'mips_arch_variant:mips32r2': { |
'CPPDEFINES': ['_MIPS_ARCH_MIPS32R2'] |
}, |
+ 'mips_arch_variant:loongson': { |
+ 'CPPDEFINES': ['_MIPS_ARCH_LOONGSON'] |
+ }, |
'simulator:none': { |
'CCFLAGS': ['-EL'], |
'LINKFLAGS': ['-EL'], |
@@ -700,6 +715,9 @@ PREPARSER_FLAGS = { |
'mips_arch_variant:mips32r1': { |
'CCFLAGS': ['-mips32', '-Wa,-mips32'] |
}, |
+ 'mips_arch_variant:loongson': { |
+ 'CCFLAGS': ['-march=mips3', '-Wa,-march=mips3'] |
+ }, |
'library:static': { |
'LINKFLAGS': ['-static', '-static-libgcc'] |
}, |
@@ -1108,7 +1126,7 @@ SIMPLE_OPTIONS = { |
'help': 'generate calling conventiont according to selected mips ABI' |
}, |
'mips_arch_variant': { |
- 'values': ['mips32r2', 'mips32r1'], |
+ 'values': ['mips32r2', 'mips32r1', 'loongson'], |
'default': 'mips32r2', |
'help': 'mips variant' |
}, |