分离 gen_ports

Signed-off-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
2022-02-16 10:43:07 +08:00
parent 88c25c6077
commit 573c32cd65

View File

@@ -138,7 +138,7 @@ class SharelibHandler:
kcfg.writelines(['endmenu\n'])
kcfg.close()
def __gen_ports(self, share_lib_path):
def gen_ports(self, share_lib_path):
import json
init_c_path = os.path.join(os.getcwd(), "gen_ports", "gen_ports_c.c")
@@ -269,7 +269,7 @@ class SharelibHandler:
json.dump(data,f, sort_keys=True, indent=4, separators=(',', ': '))
if gen_ports:
self.__gen_ports(share_lib_path)
self.gen_ports(share_lib_path)
self.update_sharelib(share_lib_path)