Browse Source

Remove compiler warnings of Chinese

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@380 bbd45198-f89e-11dd-88c7-29a3b14d5316
gary.li.wenchao.4 15 years ago
parent
commit
a88a6ec0a3
1 changed files with 20 additions and 16 deletions
  1. 20 16
      bsp/mini2440/rtconfig.py

+ 20 - 16
bsp/mini2440/rtconfig.py

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