[Kernel] Fix the system initialization link issue

This commit is contained in:
Bernard.Xiong
2015-03-22 09:06:48 +08:00
parent e2cfb1f796
commit 62a0172d11
3 changed files with 95 additions and 6 deletions
+7 -2
View File
@@ -5,8 +5,13 @@ from building import *
src = Glob('*.c')
CPPPATH = [RTT_ROOT + '/include']
if rtconfig.CROSS_TOOL == 'keil' and GetDepend('RT_USING_MODULE') == True:
LINKFLAGS = ' --keep __rtmsym_* '
if rtconfig.CROSS_TOOL == 'keil':
# add more link flags for module and components_init.
LINKFLAGS = ''
if GetDepend('RT_USING_MODULE'):
LINKFLAGS = ' --keep __rtmsym_* '
if GetDepend('RT_USING_COMPONENTS_INIT'):
LINKFLAGS = ' --keep __rt_init* '
else:
LINKFLAGS = ''