summaryrefslogtreecommitdiff
path: root/bsp/simulator
diff options
context:
space:
mode:
authorprife <[email protected]>2013-01-24 17:24:31 +0800
committerprife <[email protected]>2013-01-24 17:24:31 +0800
commit72bd8b9978b7bc5210c185d7bcc2ec9074fb3d5c (patch)
tree4ec02db7d6648ac4a9f9178cd42a713895da95e1 /bsp/simulator
parentf709ddf631ecec9dd43db664f1367799d1d30e62 (diff)
clean code in bsp/simulator/rtconfig.py
Diffstat (limited to 'bsp/simulator')
-rwxr-xr-xbsp/simulator/rtconfig.py24
1 files changed, 9 insertions, 15 deletions
diff --git a/bsp/simulator/rtconfig.py b/bsp/simulator/rtconfig.py
index da63b843e2..fbff96e8be 100755
--- a/bsp/simulator/rtconfig.py
+++ b/bsp/simulator/rtconfig.py
@@ -1,23 +1,19 @@
# toolchains options
ARCH='sim'
-#CPU='win32'
-#CPU='posix'
-CPU='posix'
-CROSS_TOOL='gcc' #msvc # gcc
-
-# lcd panel options
-# 'FMT0371','ILI932X', 'SSD1289'
-# RT_USING_LCD_TYPE = 'SSD1289'
+#CROSS_TOOL='msvc' or 'gcc' or 'mingw' (mingw is not supported yet!)
+CROSS_TOOL='msvc'
# cross_tool provides the cross compiler
-# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR
+# EXEC_PATH is the compiler execute path
if CROSS_TOOL == 'gcc':
- PLATFORM = 'gcc'
- EXEC_PATH = '/usr/bin/gcc'
+ CPU = 'posix'
+ PLATFORM = 'gcc'
+ EXEC_PATH = '/usr/bin/gcc'
if CROSS_TOOL == 'msvc':
- PLATFORM = 'cl'
- EXEC_PATH = ''
+ CPU = 'win32'
+ PLATFORM = 'cl'
+ EXEC_PATH = ''
BUILD = 'debug'
#BUILD = ''
@@ -38,9 +34,7 @@ if PLATFORM == 'gcc':
DEVICE = ' '
CFLAGS = DEVICE + ' -I/usr/include -w -D_REENTRANT'
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp'
- #LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-linux.map,-cref,-u,Reset_Handler -T stm32_rom.ld'
#LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-linux.map -lpthread'
- #LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-linux.map -pthread'
LFLAGS = DEVICE + ' -Wl,-Map=rtthread-linux.map -pthread -T gcc.ld'
CPATH = ''