Revert "feat(conf) add better check for Kconfig default"
This reverts commit f8fe5366bb.
This commit is contained in:
@@ -59,10 +59,6 @@ fout.write(
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/*Check if there is a Kconfig environment*/
|
||||
#ifdef LV_COLOR_DEPTH
|
||||
#define LV_KCONFIG_PRESENT
|
||||
#endif
|
||||
|
||||
/*----------------------------------
|
||||
* Start parsing lv_conf_template.h
|
||||
@@ -99,12 +95,8 @@ for i in fin.read().splitlines():
|
||||
|
||||
fout.write(
|
||||
f'#ifndef {line}\n'
|
||||
f'# ifdef LV_KCONFIG_PRESENT\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'# ifdef CONFIG_{line.upper()}\n'
|
||||
f'# define {line} CONFIG_{line.upper()}\n'
|
||||
f'# else\n'
|
||||
f'{d}\n'
|
||||
f'# endif\n'
|
||||
|
||||
Reference in New Issue
Block a user