[kernel] 优化Sconscript脚本
This commit is contained in:
parent
6b9bdc12a9
commit
d1c353f6b6
|
@ -1,6 +1,5 @@
|
||||||
|
|
||||||
from building import *
|
from building import *
|
||||||
import rtconfig
|
|
||||||
|
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
src = Glob('src/*.c')
|
src = Glob('src/*.c')
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
Import('RTT_ROOT')
|
|
||||||
Import('rtconfig')
|
|
||||||
from building import *
|
from building import *
|
||||||
|
import os
|
||||||
|
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
|
cwd = GetCurrentDir()
|
||||||
|
|
||||||
CPPPATH = [RTT_ROOT + '/include']
|
inc = [os.path.join(cwd, '..', 'include')]
|
||||||
|
|
||||||
if GetDepend('RT_USING_SMALL_MEM') == False:
|
if GetDepend('RT_USING_SMALL_MEM') == False:
|
||||||
SrcRemove(src, ['mem.c'])
|
SrcRemove(src, ['mem.c'])
|
||||||
|
@ -27,8 +27,6 @@ if GetDepend('RT_USING_DEVICE') == False:
|
||||||
if GetDepend('RT_USING_SMP') == False:
|
if GetDepend('RT_USING_SMP') == False:
|
||||||
SrcRemove(src, ['cpu.c'])
|
SrcRemove(src, ['cpu.c'])
|
||||||
|
|
||||||
CPPDEFINES = ['__RTTHREAD__']
|
group = DefineGroup('Kernel', src, depend = [''], CPPPATH = inc, CPPDEFINES = ['__RTTHREAD__'])
|
||||||
|
|
||||||
group = DefineGroup('Kernel', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
Loading…
Reference in New Issue