From a48133f8702cbed76e378f93cd10581ad3ea0cba Mon Sep 17 00:00:00 2001 From: xuezhou_yan Date: Fri, 12 Jan 2024 14:19:55 +0800 Subject: [PATCH] issue:I8VMNX modify chipsetsdk info path Signed-off-by: xuezhou_yan --- tools/deps_guard/rules_checker/chipsetsdk.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/deps_guard/rules_checker/chipsetsdk.py b/tools/deps_guard/rules_checker/chipsetsdk.py index 0c77f04..9d795b7 100755 --- a/tools/deps_guard/rules_checker/chipsetsdk.py +++ b/tools/deps_guard/rules_checker/chipsetsdk.py @@ -42,10 +42,12 @@ class ChipsetSDKRule(BaseRule): self.log("****add more ChipsetSDK info in:{}****".format(self._args.rules)) rules_dir = rules_dir + self._args.rules - chipsetSDK_rules_path = self.get_out_path() - if os.path.exists(chipsetSDK_rules_path): - self.log("****add more ChipsetSDK info in dir:{}****".format(chipsetSDK_rules_path)) - rules_dir.append(chipsetSDK_rules_path) + chipsetsdk_rules_path = self.get_out_path().replace("out", "out/products_ext") + if os.path.exists(chipsetsdk_rules_path): + self.log("****add more ChipsetSDK info in dir:{}****".format(chipsetsdk_rules_path)) + rules_dir.append(chipsetsdk_rules_path) + else: + self.warn("****add chipsetsdk_rules_path path not exist: {}****".format(chipsetsdk_rules_path)) res = [] for d in rules_dir: rules_file = os.path.join(d, self.__class__.RULE_NAME, name) -- Gitee