Browse Source

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

heyuanjie87 7 months ago
parent
commit
29c0357ff8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libcpu/risc-v/SConscript

+ 1 - 1
libcpu/risc-v/SConscript

@@ -17,7 +17,7 @@ else :
     group += SConscript(os.path.join('common', 'SConscript'))
 
 # 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'))
 elif rtconfig.CPU in list:
     group = group + SConscript(os.path.join(rtconfig.CPU, 'SConscript'))