Index: SConstruct |
diff --git a/SConstruct b/SConstruct |
index bfa53a7af40f5d9cd2d22036e7580296ec98667f..b57951afd565c44b527c6261ec05515d23943e5b 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'] |
}, |
@@ -545,6 +551,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'], |
@@ -554,6 +563,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'] |
}, |
@@ -697,6 +709,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'], |
@@ -706,6 +721,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'] |
}, |
@@ -1114,7 +1132,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' |
}, |