From 62a0172d11e559272128bf52b56ef806ba28ae24 Mon Sep 17 00:00:00 2001 From: "Bernard.Xiong" Date: Sun, 22 Mar 2015 09:06:48 +0800 Subject: [Kernel] Fix the system initialization link issue --- src/SConscript | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/SConscript') diff --git a/src/SConscript b/src/SConscript index 0eda61b1ef..6d59365195 100644 --- a/src/SConscript +++ b/src/SConscript @@ -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 = '' -- cgit v1.3.1