Feat: add shlib_type="sa" for sa modules

add shlib_type="sa" for sa modules

Signed-off-by: handyohos <zhangxiaotian@huawei.com>
Change-Id: I057a04f851aa55746c6197cf1c769481f9247219

#I6G8SS
This commit is contained in:
handyohos
2023-02-20 19:13:01 +08:00
parent 213e11909c
commit 3736612b96
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -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:
+1 -2
View File
@@ -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