lv_conf_checker.py: add auto incude of lv_conf.h if available
This commit is contained in:
@@ -32,6 +32,14 @@ fout.write(
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#if defined __has_include
|
||||||
|
# if __has_include("lv_conf.h")
|
||||||
|
# ifndef LV_CONF_INCLUDE_SIMPLE
|
||||||
|
# define LV_CONF_INCLUDE_SIMPLE
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/*If lv_conf.h is not skipped include it*/
|
/*If lv_conf.h is not skipped include it*/
|
||||||
#if !defined(LV_CONF_SKIP) && !defined(CONFIG_LV_CONF_SKIP)
|
#if !defined(LV_CONF_SKIP) && !defined(CONFIG_LV_CONF_SKIP)
|
||||||
# if defined(LV_CONF_PATH) /*If there is a path defined for lv_conf.h use it*/
|
# if defined(LV_CONF_PATH) /*If there is a path defined for lv_conf.h use it*/
|
||||||
|
|||||||
@@ -8,8 +8,19 @@
|
|||||||
#define LV_CONF_INTERNAL_H
|
#define LV_CONF_INTERNAL_H
|
||||||
/* clang-format off */
|
/* clang-format off */
|
||||||
|
|
||||||
|
/*Handle special Kconfig options*/
|
||||||
|
#include "lv_conf_kconfig.h"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#if defined __has_include
|
||||||
|
# if __has_include("lv_conf.h")
|
||||||
|
# ifndef LV_CONF_INCLUDE_SIMPLE
|
||||||
|
# define LV_CONF_INCLUDE_SIMPLE
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/*If lv_conf.h is not skipped include it*/
|
/*If lv_conf.h is not skipped include it*/
|
||||||
#if !defined(LV_CONF_SKIP) && !defined(CONFIG_LV_CONF_SKIP)
|
#if !defined(LV_CONF_SKIP) && !defined(CONFIG_LV_CONF_SKIP)
|
||||||
# if defined(LV_CONF_PATH) /*If there is a path defined for lv_conf.h use it*/
|
# if defined(LV_CONF_PATH) /*If there is a path defined for lv_conf.h use it*/
|
||||||
@@ -25,12 +36,8 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* clang-format off */
|
/* clang-format off */
|
||||||
|
|
||||||
/*Handle special Kconfig options*/
|
|
||||||
#include "lv_conf_kconfig.h"
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
/*====================
|
/*====================
|
||||||
|
|||||||
Reference in New Issue
Block a user