diff --git a/libcpu/risc-v/SConscript b/libcpu/risc-v/SConscript index 0f3ce9f233b..851542e1a3d 100644 --- a/libcpu/risc-v/SConscript +++ b/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'))