Skip to content

Commit

Permalink
Revert "feat(conf) add better check for Kconfig default"
Browse files Browse the repository at this point in the history
This reverts commit f8fe536.
  • Loading branch information
kisvegabor committed Oct 14, 2021
1 parent f8fe536 commit a5793c7
Show file tree
Hide file tree
Showing 2 changed files with 356 additions and 1,076 deletions.
12 changes: 2 additions & 10 deletions scripts/lv_conf_internal_gen.py
Expand Up @@ -59,10 +59,6 @@
# endif
#endif
/*Check if there is a Kconfig environment*/
#ifdef LV_COLOR_DEPTH
#define LV_KCONFIG_PRESENT
#endif
/*----------------------------------
* Start parsing lv_conf_template.h
Expand Down Expand Up @@ -99,12 +95,8 @@

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'
Expand Down

0 comments on commit a5793c7

Please sign in to comment.