[libcpu]优化rv构建脚本中选择vendor目录的判断条件

This commit is contained in:
heyuanjie87 2024-09-18 11:19:48 +08:00 committed by Meco Man
parent c9d18c444a
commit 29c0357ff8
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ else :
group += SConscript(os.path.join('common', 'SConscript')) group += SConscript(os.path.join('common', 'SConscript'))
# cpu porting code files # cpu porting code files
if rtconfig.CPU == "c906": if 'VENDOR' in vars(rtconfig) and rtconfig.VENDOR != '':
group = group + SConscript(os.path.join(rtconfig.VENDOR, rtconfig.CPU, 'SConscript')) group = group + SConscript(os.path.join(rtconfig.VENDOR, rtconfig.CPU, 'SConscript'))
elif rtconfig.CPU in list: elif rtconfig.CPU in list:
group = group + SConscript(os.path.join(rtconfig.CPU, 'SConscript')) group = group + SConscript(os.path.join(rtconfig.CPU, 'SConscript'))