mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 11:30:01 +08:00
[Kernel] Fix the system initialization link issue
This commit is contained in:
+7
-2
@@ -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 = ''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user