diff --git a/tools/deps_guard/rules_checker/chipsetsdk.py b/tools/deps_guard/rules_checker/chipsetsdk.py index 425b2385..7d753afa 100755 --- a/tools/deps_guard/rules_checker/chipsetsdk.py +++ b/tools/deps_guard/rules_checker/chipsetsdk.py @@ -38,7 +38,7 @@ class ChipsetSDKRule(BaseRule): gotHeaders = True base = innerapi["header_base"] for f in innerapi["header_files"]: - item["headers"].append(base + "/" + f) + item["headers"].append(os.path.join(base, f)) headers.append(item) try: diff --git a/tools/deps_guard/rules_checker/sa_rule.py b/tools/deps_guard/rules_checker/sa_rule.py index 126f0d26..e756c8f2 100755 --- a/tools/deps_guard/rules_checker/sa_rule.py +++ b/tools/deps_guard/rules_checker/sa_rule.py @@ -56,9 +56,8 @@ class SaRule(BaseRule): self.warn('sa module %s has no shlib_type="sa", add it in %s' % (mod["name"], mod["labelPath"])) if len(non_sa_with_sa_shlib_type) > 0: - passed = False for mod in non_sa_with_sa_shlib_type: - self.error('non sa module %s with shlib_type="sa", %s' % (mod["name"], mod["labelPath"])) + self.warn('non sa module %s with shlib_type="sa", %s' % (mod["name"], mod["labelPath"])) return passed