提交 4d4c3368 编写于 作者: D dzzxzz@gmail.com

update /src/SConscript

rtm.c is not exist any more

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2293 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 6864f3a3
......@@ -2,16 +2,16 @@ Import('RTT_ROOT')
Import('rtconfig')
from building import *
src = Glob('*.c')
src = Glob('*.c')
CPPPATH = [RTT_ROOT + '/include']
if rtconfig.CROSS_TOOL == 'keil' and GetDepend('RT_USING_MODULE') == True:
LINKFLAGS = ' --keep __rtmsym_* '
else:
LINKFLAGS = ''
LINKFLAGS = ''
if GetDepend('RT_USING_MODULE') == False:
SrcRemove(src, ['rtm.c', 'module.c'])
SrcRemove(src, ['module.c'])
if GetDepend('RT_USING_HEAP') == False or GetDepend('RT_USING_SMALL_MEM') == False:
SrcRemove(src, ['mem.c'])
......@@ -28,6 +28,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, LINKFLAGS = LINKFLAGS)
Return('group')
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册