fix(lv_conf_internal_gen.py) formatting fixes on the generated file (#2542)
* fix(lv_conf_internal_gen.py): change lv_conf.h to lv_conf_internal.h Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> * fix(lv_conf_internal_gen.py): remove the extra space before macro Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> * fix: regenerate lv_conf_internal.h Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
'''
|
||||
Generates a checker file for lv_conf.h from lv_conf_template.h define all the not defined values
|
||||
Generates lv_conf_internal.h from lv_conf_template.h to provide default values
|
||||
'''
|
||||
|
||||
import sys
|
||||
@@ -91,7 +91,7 @@ for i in fin.read().splitlines():
|
||||
if r:
|
||||
line = re.sub('\(.*?\)', '', r[1], 1) #remove parentheses from macros
|
||||
dr = re.sub('.*# *define', '', i, 1)
|
||||
d = "# define " + dr
|
||||
d = "# define" + dr
|
||||
|
||||
fout.write(
|
||||
f'#ifndef {line}\n'
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user