diff options
| author | bernard.xiong <[email protected]> | 2010-04-18 22:16:50 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2010-04-18 22:16:50 +0000 |
| commit | 99bfaf72d9d1fd9564b259b06245c2a60571d392 (patch) | |
| tree | 7069bf5901ef4a9d30a85eb1ec045af0966aa9ab /libcpu/SConscript | |
| parent | 5562ddf77a068f43cd94390f914afb72dc5e2142 (diff) | |
modify building script for components.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@642 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'libcpu/SConscript')
| -rw-r--r-- | libcpu/SConscript | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/libcpu/SConscript b/libcpu/SConscript index d295c7d2ae..19487d7f81 100644 --- a/libcpu/SConscript +++ b/libcpu/SConscript @@ -1,6 +1,7 @@ Import('env') Import('rtconfig') Import('RTT_ROOT') +Import('projects') comm = rtconfig.ARCH + '/common' path = rtconfig.ARCH + '/' + rtconfig.CPU @@ -15,7 +16,19 @@ if rtconfig.PLATFORM == 'gcc': if rtconfig.PLATFORM == 'iar': src_local = Glob(path + '/*.c') + Glob(path + '/*_iar.S') + Glob(comm + '/*.c') -env.Append(CPPPATH = [RTT_ROOT + '/libcpu/' + rtconfig.ARCH + '/' + rtconfig.CPU]) -obj = env.Object(src_local) +# group definitions +group = {} +group['name'] = rtconfig.CPU.upper() +group['src'] = File(src_local) +group['CCFLAGS'] = '' +group['CPPPATH'] = [RTT_ROOT + '/libcpu/' + rtconfig.ARCH + '/' + rtconfig.CPU] +group['CPPDEFINES'] = '' +group['LINKFLAGS'] = '' + +# add group to project list +projects.append(group) + +env.Append(CPPPATH = group['CPPPATH']) +obj = env.Object(group['src']) Return('obj') |
