feat(conf) add better check for Kconfig default
If a bool config is False Kconfig it won't add CONFIG_ define and it confused lv_conf_internal.h Fixes: #2555
This commit is contained in:
@@ -59,6 +59,10 @@ fout.write(
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*Check if there is a Kconfig environment*/
|
||||||
|
#ifdef LV_COLOR_DEPTH
|
||||||
|
#define LV_KCONFIG_PRESENT
|
||||||
|
#endif
|
||||||
|
|
||||||
/*----------------------------------
|
/*----------------------------------
|
||||||
* Start parsing lv_conf_template.h
|
* Start parsing lv_conf_template.h
|
||||||
@@ -95,8 +99,12 @@ for i in fin.read().splitlines():
|
|||||||
|
|
||||||
fout.write(
|
fout.write(
|
||||||
f'#ifndef {line}\n'
|
f'#ifndef {line}\n'
|
||||||
f'# ifdef CONFIG_{line.upper()}\n'
|
f'# ifdef LV_KCONFIG_PRESENT\n'
|
||||||
f'# define {line} CONFIG_{line.upper()}\n'
|
f'# ifdef CONFIG_{line.upper()}\n'
|
||||||
|
f'# define {line} CONFIG_{line.upper()}\n'
|
||||||
|
f'# else\n'
|
||||||
|
f'# define {line} 0\n'
|
||||||
|
f'# endif\n'
|
||||||
f'# else\n'
|
f'# else\n'
|
||||||
f'{d}\n'
|
f'{d}\n'
|
||||||
f'# endif\n'
|
f'# endif\n'
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user