diff options
| author | Meco Man <[email protected]> | 2022-11-14 19:26:06 -0500 |
|---|---|---|
| committer | Man, Jianting (Meco) <[email protected]> | 2022-11-14 22:20:23 -0500 |
| commit | d1c353f6b6a63aff277b9bf4e291b3ec1c068611 (patch) | |
| tree | a47a1e077dae64d655af23a392f12b521b24025c | |
| parent | 6b9bdc12a9d9ca6bd63144194060f116cc42139e (diff) | |
[kernel] 优化Sconscript脚本
| -rw-r--r-- | components/fal/SConscript | 1 | ||||
| -rw-r--r-- | src/SConscript | 10 |
2 files changed, 4 insertions, 7 deletions
diff --git a/components/fal/SConscript b/components/fal/SConscript index 0d0835abdb..9d68e3426e 100644 --- a/components/fal/SConscript +++ b/components/fal/SConscript @@ -1,6 +1,5 @@ from building import * -import rtconfig cwd = GetCurrentDir() src = Glob('src/*.c') diff --git a/src/SConscript b/src/SConscript index 3f014551f0..b53708adf9 100644 --- a/src/SConscript +++ b/src/SConscript @@ -1,10 +1,10 @@ -Import('RTT_ROOT') -Import('rtconfig') from building import * +import os src = Glob('*.c') +cwd = GetCurrentDir() -CPPPATH = [RTT_ROOT + '/include'] +inc = [os.path.join(cwd, '..', 'include')] if GetDepend('RT_USING_SMALL_MEM') == False: SrcRemove(src, ['mem.c']) @@ -27,8 +27,6 @@ if GetDepend('RT_USING_DEVICE') == False: if GetDepend('RT_USING_SMP') == False: SrcRemove(src, ['cpu.c']) -CPPDEFINES = ['__RTTHREAD__'] - -group = DefineGroup('Kernel', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) +group = DefineGroup('Kernel', src, depend = [''], CPPPATH = inc, CPPDEFINES = ['__RTTHREAD__']) Return('group') |
