From fd8ddab34ad406839483a7fdc4f01118e3c5b8e5 Mon Sep 17 00:00:00 2001 From: wangyikai <wangyikai14@huawei.com> Date: Thu, 20 Feb 2025 19:58:32 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90HDI=E6=A8=A1=E6=9D=BF=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E8=A7=84=E8=8C=83=E3=80=91=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangyikai <wangyikai14@huawei.com> --- .../elf_file_mgr/module_info/compile_info_loader.py | 2 ++ tools/deps_guard/rules_checker/chipsetsdk.py | 4 ++++ 2 files changed, 6 insertions(+) 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 6012032..8695748 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 cc4feef..cb5df59 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" -- Gitee