diff options
| author | qiuyiuestc <[email protected]> | 2010-07-22 13:19:09 +0000 |
|---|---|---|
| committer | qiuyiuestc <[email protected]> | 2010-07-22 13:19:09 +0000 |
| commit | 2c32bb90a486941a8f6ff04f67dec456b5ff6714 (patch) | |
| tree | 59479f96f58f78dbfaa78b5c915c746eea758dfc /components | |
| parent | 0a64bac9d9a1d0b522e46ea58e8a07c59e567c6a (diff) | |
rename postlinker to rtmlinker && add post action
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@812 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components')
| -rw-r--r-- | components/module/basicapp/SConscript | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/components/module/basicapp/SConscript b/components/module/basicapp/SConscript index 600b9ea8ad..f7b811fc9a 100644 --- a/components/module/basicapp/SConscript +++ b/components/module/basicapp/SConscript @@ -2,6 +2,9 @@ Import('env') Import('projects') Import('RTT_ROOT') Import('rtconfig') +Import('TARGET') + +RTMLINKER = RTT_ROOT + '/tools/rtmlinker.exe ' # group definitions group = {} @@ -11,11 +14,14 @@ group['CCFLAGS'] = '' group['CPPPATH'] = [''] group['CPPDEFINES'] = '' -target = 'basicapp.mo' +target = 'basicapp.so' +POST_ACTION = RTMLINKER + '-l ' + TARGET + ' -o basicapp.mo ' + '$TARGET' # add group to project list projects.append(group) +src_local = Glob('basicapp.c') + env.Append(CCFLAGS = group['CCFLAGS']) env.Append(CPPPATH = group['CPPPATH']) env.Append(CPPDEFINES = group['CPPDEFINES']) @@ -23,7 +29,6 @@ module_env = env.Clone(CPPDEFINE = 'RT_MODULE') module_env = env.Clone(CCFLAGS = ' -mcpu=arm920t -O0 -fPIC') module_env.Replace(LINK = 'arm-none-eabi-ld') module_env.Replace(LINKFLAGS = '-z max-page-size=0x4 -shared -fPIC -e rt_application_entry -nostdlib -s') +module_env.Program(target, src_local) +module_env.AddPostAction(target, POST_ACTION) -src_local = Glob('*.c') - -module_env.Program(target, src_local) |
