update build/judgePart.py.

Signed-off-by: zhouhouyue <1282054757@qq.com>
This commit is contained in:
zhouhouyue 2023-08-17 08:10:35 +00:00 committed by Gitee
parent 1cea83eef5
commit 8fd7334aab
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -31,7 +31,7 @@ def get_modulename_by_buildtarget(module_list_file, build_target):
with open(module_list_file, "r") as module_file:
module_info_data = json.load(module_file)
for module in module_info_data:
if module == build_target:
if module in [build_target, f'{build_target}_override']:
return module_info_data[module];
return ""