diff --git a/tools/deps_guard/elf_file_mgr/module_info/compile_info_loader.py b/tools/deps_guard/elf_file_mgr/module_info/compile_info_loader.py index 6012032f1387856f2b5030ffbf491df18d2c2fe9..8695748479b59ff6b05629bb55f5223414827d98 100755 --- a/tools/deps_guard/elf_file_mgr/module_info/compile_info_loader.py +++ b/tools/deps_guard/elf_file_mgr/module_info/compile_info_loader.py @@ -189,6 +189,8 @@ class CompileInfoLoader(object): elf["hdiType"] = "hdi_proxy" # HDI proxy client library elif elf["shlib_type"] == "hdi_stub": elf["hdiType"] = "hdi_stub" # HDI proxy client library + elif elf["shlib_type"] == "hdi_idl_headers": + elf["hdiType"] = "hdi_idl_headers" # HDI idl_headers library if elf["name"] in ("libc.so", "libc++.so", "libhilog.so"): elf["innerapi"] = True diff --git a/tools/deps_guard/rules_checker/chipsetsdk.py b/tools/deps_guard/rules_checker/chipsetsdk.py index cc4feef21ffc6158be6c526afa34ed232382301a..cb5df5925ea6e05cf9b3d07c8b871dfdcb794055 100755 --- a/tools/deps_guard/rules_checker/chipsetsdk.py +++ b/tools/deps_guard/rules_checker/chipsetsdk.py @@ -217,6 +217,10 @@ class ChipsetSDKRule(BaseRule): if "hdiType" in callee and callee["hdiType"] == "hdi_proxy": continue + # If callee is hdi idl_headers module, it is OK + if "hdiType" in callee and callee["hdiType"] == "hdi_idl_headers": + continue + # Not allowed passed = False self.error("chipset module %s depends on non Chipset SDK module %s in %s"