diff options
| author | [email protected] <[email protected]> | 2010-11-20 12:31:00 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2010-11-20 12:31:00 +0000 |
| commit | 10732a76e9a3bf1ead47cf9848c6838236e4e343 (patch) | |
| tree | 7475b1f6ff77e80bd357fc551de80565c9486080 /bsp/stm3210/Libraries/SConscript | |
| parent | 2fce1a91e2577f06b68151dffa15558750346d02 (diff) | |
cleanup scons building script
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1065 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp/stm3210/Libraries/SConscript')
| -rw-r--r-- | bsp/stm3210/Libraries/SConscript | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/bsp/stm3210/Libraries/SConscript b/bsp/stm3210/Libraries/SConscript index 2fe127941d..73e242f71b 100644 --- a/bsp/stm3210/Libraries/SConscript +++ b/bsp/stm3210/Libraries/SConscript @@ -1,9 +1,9 @@ -Import('env')
+import rtconfig
Import('RTT_ROOT')
-Import('projects')
+from building import *
# The set of source files associated with this SConscript file.
-src_local = Split("""
+src = Split("""
CMSIS/Core/CM3/core_cm3.c
CMSIS/Core/CM3/system_stm32f10x.c
STM32F10x_StdPeriph_Driver/src/stm32f10x_crc.c
@@ -33,20 +33,7 @@ STM32F10x_StdPeriph_Driver/src/misc.c path = [RTT_ROOT + '/bsp/stm3210/Libraries/STM32F10x_StdPeriph_Driver/inc',
RTT_ROOT + '/bsp/stm3210/Libraries/CMSIS/Core/CM3']
-# group definitions
-group = {}
-group['name'] = 'STM32_StdPeriph'
-group['CCFLAGS'] = ''
-group['CPPPATH'] = path
-group['CPPDEFINES'] = []
-group['LINKFLAGS'] = ''
-group['src'] = File(src_local)
+CPPDEFINES = ['USE_STDPERIPH_DRIVER', rtconfig.STM32_TYPE]
+group = DefineGroup('STM32_StdPeriph', src, depend = [''], CPPPATH = path)
-# add group to project list
-projects.append(group)
-
-env.Append(CPPPATH = path)
-
-obj = env.Object(src_local)
-
-Return('obj')
+Return('group')
|
