summaryrefslogtreecommitdiff
path: root/src/SConscript
diff options
context:
space:
mode:
authorarmink <[email protected]>2019-03-12 11:40:53 +0800
committerarmink <[email protected]>2019-03-12 11:40:53 +0800
commit3e4a93cc91692454d9fba54c2494b5de4a4172c4 (patch)
tree346a1962e2f41c08701c0001f6cec96068972b90 /src/SConscript
parent359d57006116be4956ef253239ad5bc6c1c199ab (diff)
Delete the unused '--keep' link flag when used RT_USED marco.
Diffstat (limited to 'src/SConscript')
-rw-r--r--src/SConscript11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/SConscript b/src/SConscript
index bb38baa6bd..7f448725a2 100644
--- a/src/SConscript
+++ b/src/SConscript
@@ -5,15 +5,6 @@ from building import *
src = Glob('*.c')
CPPPATH = [RTT_ROOT + '/include']
-if rtconfig.CROSS_TOOL == 'keil':
- # add more link flags for module and components_init.
- LINKFLAGS = ''
- if GetDepend('RT_USING_MODULE'):
- LINKFLAGS += ' --keep *.o(RTMSymTab) '
- if GetDepend('RT_USING_COMPONENTS_INIT'):
- LINKFLAGS += ' --keep *.o(.rti_fn.*) '
-else:
- LINKFLAGS = ''
if GetDepend('RT_USING_COMPONENTS_INIT') == False:
SrcRemove(src, ['components.c'])
@@ -38,6 +29,6 @@ if GetDepend('RT_USING_MEMHEAP') == False:
if GetDepend('RT_USING_DEVICE') == False:
SrcRemove(src, ['device.c'])
-group = DefineGroup('Kernel', src, depend = [''], CPPPATH = CPPPATH, LINKFLAGS = LINKFLAGS)
+group = DefineGroup('Kernel', src, depend = [''], CPPPATH = CPPPATH)
Return('group')