summaryrefslogtreecommitdiff
path: root/bsp/ls1bdev/rtconfig.py
diff options
context:
space:
mode:
authorJiaxun Yang <[email protected]>2019-12-07 01:04:25 +0800
committerJiaxun Yang <[email protected]>2019-12-17 11:09:59 +0800
commitc236e8c5d56b579eb4a9d573f22590e0d858ae48 (patch)
tree90026733f49375b77c7e65e4a832f6ca02f09958 /bsp/ls1bdev/rtconfig.py
parent4584054e17e8143b3a09bd6cec63c6a8f2658d06 (diff)
[bsp] Adapt ls{1b,1c}dev to new mips common code
LS1C selfboot feature have been rewiritten, and we changed bare boot base to 0x80000000 to better utilize memory. Signed-off-by: Jiaxun Yang <[email protected]>
Diffstat (limited to 'bsp/ls1bdev/rtconfig.py')
-rw-r--r--bsp/ls1bdev/rtconfig.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bsp/ls1bdev/rtconfig.py b/bsp/ls1bdev/rtconfig.py
index 4dcbf0bd75..13605429c1 100644
--- a/bsp/ls1bdev/rtconfig.py
+++ b/bsp/ls1bdev/rtconfig.py
@@ -2,7 +2,7 @@ import os
# CPU options
ARCH='mips'
-CPU ='loongson_1b'
+CPU ='gs232'
# toolchains options
CROSS_TOOL = 'gcc'
@@ -12,7 +12,8 @@ if os.getenv('RTT_CC'):
if CROSS_TOOL == 'gcc':
PLATFORM = 'gcc'
- EXEC_PATH = r'C:\Program Files\CodeSourcery\Sourcery G++ Lite For MIPS ELF\bin'
+ EXEC_PATH = "/opt/mips-2016.05/bin"
+# EXEC_PATH = r'D:\mgc\embedded\codebench\bin'
else:
print('================ERROR============================')
print('Not support %s yet!' % CROSS_TOOL)
@@ -37,7 +38,7 @@ READELF = PREFIX + 'readelf'
DEVICE = ' -mips32'
CFLAGS = DEVICE + ' -EL -G0 -mno-abicalls -fno-pic -fno-builtin -fno-exceptions -ffunction-sections -fomit-frame-pointer'
-AFLAGS = ' -c' + DEVICE + ' -EL -fno-pic -fno-builtin -mno-abicalls -x assembler-with-cpp -DSYSTEM_STACK=0x80003fe8'
+AFLAGS = ' -c' + DEVICE + ' -EL -fno-pic -fno-builtin -mno-abicalls -x assembler-with-cpp'
LFLAGS = DEVICE + ' -nostartfiles -EL -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T ls1b_ram.lds'
CPATH = ''