clean code in bsp/simulator/rtconfig.py
This commit is contained in:
parent
f709ddf631
commit
72bd8b9978
|
@ -1,21 +1,17 @@
|
||||||
# toolchains options
|
# toolchains options
|
||||||
ARCH='sim'
|
ARCH='sim'
|
||||||
#CPU='win32'
|
#CROSS_TOOL='msvc' or 'gcc' or 'mingw' (mingw is not supported yet!)
|
||||||
#CPU='posix'
|
CROSS_TOOL='msvc'
|
||||||
CPU='posix'
|
|
||||||
CROSS_TOOL='gcc' #msvc # gcc
|
|
||||||
|
|
||||||
# lcd panel options
|
|
||||||
# 'FMT0371','ILI932X', 'SSD1289'
|
|
||||||
# RT_USING_LCD_TYPE = 'SSD1289'
|
|
||||||
|
|
||||||
# cross_tool provides the cross compiler
|
# 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':
|
if CROSS_TOOL == 'gcc':
|
||||||
|
CPU = 'posix'
|
||||||
PLATFORM = 'gcc'
|
PLATFORM = 'gcc'
|
||||||
EXEC_PATH = '/usr/bin/gcc'
|
EXEC_PATH = '/usr/bin/gcc'
|
||||||
|
|
||||||
if CROSS_TOOL == 'msvc':
|
if CROSS_TOOL == 'msvc':
|
||||||
|
CPU = 'win32'
|
||||||
PLATFORM = 'cl'
|
PLATFORM = 'cl'
|
||||||
EXEC_PATH = ''
|
EXEC_PATH = ''
|
||||||
|
|
||||||
|
@ -38,9 +34,7 @@ if PLATFORM == 'gcc':
|
||||||
DEVICE = ' '
|
DEVICE = ' '
|
||||||
CFLAGS = DEVICE + ' -I/usr/include -w -D_REENTRANT'
|
CFLAGS = DEVICE + ' -I/usr/include -w -D_REENTRANT'
|
||||||
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp'
|
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 -lpthread'
|
||||||
#LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-linux.map -pthread'
|
|
||||||
LFLAGS = DEVICE + ' -Wl,-Map=rtthread-linux.map -pthread -T gcc.ld'
|
LFLAGS = DEVICE + ' -Wl,-Map=rtthread-linux.map -pthread -T gcc.ld'
|
||||||
|
|
||||||
CPATH = ''
|
CPATH = ''
|
||||||
|
|
Loading…
Reference in New Issue