Remove compiler warnings of Chinese

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@380 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
gary.li.wenchao.4 2010-02-07 08:11:00 +00:00
parent b28cbeffb8
commit a88a6ec0a3
1 changed files with 19 additions and 15 deletions

View File

@ -3,19 +3,19 @@ import SCons.cpp
# component options # component options
# make all component false # make all component false
RT_USING_FINSH = False RT_USING_FINSH = False
RT_USING_DFS = False RT_USING_DFS = False
RT_USING_DFS_EFSL = False RT_USING_DFS_EFSL = False
RT_USING_DFS_ELMFAT = False RT_USING_DFS_ELMFAT = False
RT_USING_DFS_YAFFS2 = False RT_USING_DFS_YAFFS2 = False
RT_USING_LWIP = False RT_USING_LWIP = False
RT_USING_WEBSERVER = False RT_USING_WEBSERVER = False
RT_USING_RTGUI = False RT_USING_RTGUI = False
# parse rtconfig.h to get used component # parse rtconfig.h to get used component
PreProcessor = SCons.cpp.PreProcessor() PreProcessor = SCons.cpp.PreProcessor()
f = file('rtconfig.h', 'r') f = file('rtconfig.h', 'r')
contents = f.read(4096) contents = f.read()
f.close() f.close()
PreProcessor.process_contents(contents) PreProcessor.process_contents(contents)
rtconfig_ns = PreProcessor.cpp_namespace rtconfig_ns = PreProcessor.cpp_namespace
@ -50,14 +50,18 @@ if rtconfig_ns.has_key('RT_USING_RTGUI'):
RT_USING_LCD_TYPE = 'PNL_T35' RT_USING_LCD_TYPE = 'PNL_T35'
# toolchains options # toolchains options
ARCH='arm' ARCH = 'arm'
CPU='s3c24x0' CPU = 's3c24x0'
TextBase='0x30000000' TextBase = '0x30000000'
PLATFORM = 'gcc' CROSS_TOOL = 'keil'
EXEC_PATH = 'E:/Program Files/CodeSourcery/Sourcery G++ Lite/bin'
#PLATFORM = 'armcc' if CROSS_TOOL == 'gcc':
#EXEC_PATH = 'E:/Keil' PLATFORM = 'gcc'
EXEC_PATH = 'E:/Program Files/CodeSourcery/Sourcery G++ Lite/bin'
elif CROSS_TOOL == 'keil':
PLATFORM = 'armcc'
EXEC_PATH = 'E:/Keil'
BUILD = 'debug' BUILD = 'debug'
if PLATFORM == 'gcc': if PLATFORM == 'gcc':
@ -101,7 +105,7 @@ elif PLATFORM == 'armcc':
TARGET_EXT = 'axf' TARGET_EXT = 'axf'
DEVICE = ' --device DARMSS9' DEVICE = ' --device DARMSS9'
CFLAGS = DEVICE + ' --apcs=interwork' CFLAGS = DEVICE + ' --apcs=interwork --diag_suppress=870'
AFLAGS = DEVICE AFLAGS = DEVICE
LFLAGS = DEVICE + ' --strict --info sizes --info totals --info unused --info veneers --list rtthread-mini2440.map --ro-base 0x30000000 --entry Entry_Point --first Entry_Point' LFLAGS = DEVICE + ' --strict --info sizes --info totals --info unused --info veneers --list rtthread-mini2440.map --ro-base 0x30000000 --entry Entry_Point --first Entry_Point'