初始提交
This commit is contained in:
13
build/script/parse_mconfig_doxygen.py
Executable file
13
build/script/parse_mconfig_doxygen.py
Executable file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: UTF-8 -*-
|
||||
# Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved.
|
||||
import sys
|
||||
|
||||
if __name__ == "__main__":
|
||||
mconfig_path = sys.argv[1]
|
||||
with open(mconfig_path, 'r') as fp:
|
||||
lines = fp.readlines()
|
||||
for line in lines:
|
||||
if '#define' in line:
|
||||
defs = line.split()
|
||||
print('%s=%s \\' % (defs[1], defs[2]))
|
Reference in New Issue
Block a user