[libcpu]只添加在列表中的 cpu 移植文件

This commit is contained in:
yangjie 2021-03-25 16:22:51 +08:00
parent 7f99cd8342
commit 5726bf4f3f
1 changed files with 3 additions and 1 deletions

View File

@ -6,11 +6,13 @@ from building import *
Import('rtconfig')
cwd = GetCurrentDir()
list = os.listdir(cwd)
# add common code files
group = SConscript(os.path.join('common', 'SConscript'))
# cpu porting code files
group = group + SConscript(os.path.join(rtconfig.CPU, 'SConscript'))
if rtconfig.CPU in list:
group = group + SConscript(os.path.join(rtconfig.CPU, 'SConscript'))
Return('group')