diff options
| -rw-r--r-- | meta-oe/recipes-graphics/lvgl/lv-conf.inc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/lvgl/lv-conf.inc b/meta-oe/recipes-graphics/lvgl/lv-conf.inc index e43a4d5085..9ee9f283dc 100644 --- a/meta-oe/recipes-graphics/lvgl/lv-conf.inc +++ b/meta-oe/recipes-graphics/lvgl/lv-conf.inc | |||
| @@ -12,8 +12,17 @@ LVGL_CONFIG_USE_SDL = "${@bb.utils.contains('PACKAGECONFIG', 'sdl', '1', '0', d) | |||
| 12 | LVGL_CONFIG_SDL_FULLSCREEN ?= "0" | 12 | LVGL_CONFIG_SDL_FULLSCREEN ?= "0" |
| 13 | 13 | ||
| 14 | LVGL_CONFIG_LV_MEM_CUSTOM ?= "0" | 14 | LVGL_CONFIG_LV_MEM_CUSTOM ?= "0" |
| 15 | LVGL_CONFIG_LV_MEM_SIZE ?= "(64 * 1024U)" | ||
| 15 | LVGL_CONFIG_LV_COLOR_DEPTH ?= "32" | 16 | LVGL_CONFIG_LV_COLOR_DEPTH ?= "32" |
| 16 | 17 | ||
| 18 | LVGL_CONFIG_LV_USE_LOG ?= "0" | ||
| 19 | LVGL_CONFIG_LV_LOG_LEVEL ?= "LV_LOG_LEVEL_WARN" | ||
| 20 | LVGL_CONFIG_LV_LOG_PRINTF ?= "0" | ||
| 21 | |||
| 22 | LVGL_CONFIG_LV_USE_FONT_COMPRESSED ?= "0" | ||
| 23 | |||
| 24 | LVGL_CONFIG_LV_THEME_DEFAULT_DARK ?= "0" | ||
| 25 | |||
| 17 | DEBUG_BUILD ??= "0" | 26 | DEBUG_BUILD ??= "0" |
| 18 | 27 | ||
| 19 | ALLOW_EMPTY:${PN} = "1" | 28 | ALLOW_EMPTY:${PN} = "1" |
| @@ -37,6 +46,7 @@ do_configure:append() { | |||
| 37 | \ | 46 | \ |
| 38 | -e "s|\(^#define LV_COLOR_DEPTH \).*|\1${LVGL_CONFIG_LV_COLOR_DEPTH}|g" \ | 47 | -e "s|\(^#define LV_COLOR_DEPTH \).*|\1${LVGL_CONFIG_LV_COLOR_DEPTH}|g" \ |
| 39 | -e "s|\(#define LV_MEM_CUSTOM .*\).*|\1${LVGL_CONFIG_LV_MEM_CUSTOM}|g" \ | 48 | -e "s|\(#define LV_MEM_CUSTOM .*\).*|\1${LVGL_CONFIG_LV_MEM_CUSTOM}|g" \ |
| 49 | -e "s|\(^ \+#define LV_MEM_SIZE \).*|\1${LVGL_CONFIG_LV_MEM_SIZE}|g" \ | ||
| 40 | \ | 50 | \ |
| 41 | -e "s|\(#define LV_TICK_CUSTOM \).*|\1 1|g" \ | 51 | -e "s|\(#define LV_TICK_CUSTOM \).*|\1 1|g" \ |
| 42 | -e "s|\(#define LV_TICK_CUSTOM_INCLUDE \).*|\1 <stdint.h>|g" \ | 52 | -e "s|\(#define LV_TICK_CUSTOM_INCLUDE \).*|\1 <stdint.h>|g" \ |
| @@ -50,5 +60,12 @@ do_configure:append() { | |||
| 50 | -e "s|\(^#define LV_USE_ASSERT_MEM_INTEGRITY \).*|\1${DEBUG_BUILD}|g" \ | 60 | -e "s|\(^#define LV_USE_ASSERT_MEM_INTEGRITY \).*|\1${DEBUG_BUILD}|g" \ |
| 51 | -e "s|\(^#define LV_USE_ASSERT_OBJ \).*|\1${DEBUG_BUILD}|g" \ | 61 | -e "s|\(^#define LV_USE_ASSERT_OBJ \).*|\1${DEBUG_BUILD}|g" \ |
| 52 | \ | 62 | \ |
| 63 | -e "s|\(^#define LV_USE_LOG \).*|\1${LVGL_CONFIG_LV_USE_LOG}|g" \ | ||
| 64 | -e "s|\(^ \+#define LV_LOG_LEVEL \).*|\1${LVGL_CONFIG_LV_LOG_LEVEL}|g" \ | ||
| 65 | -e "s|\(^ \+#define LV_LOG_PRINTF \).*|\1${LVGL_CONFIG_LV_LOG_PRINTF}|g" \ | ||
| 66 | \ | ||
| 67 | -e "s|\(^#define LV_USE_FONT_COMPRESSED \).*|\1${LVGL_CONFIG_LV_USE_FONT_COMPRESSED}|g" \ | ||
| 68 | -e "s|\(^ \+#define LV_THEME_DEFAULT_DARK \).*|\1${LVGL_CONFIG_LV_THEME_DEFAULT_DARK}|g" \ | ||
| 69 | \ | ||
| 53 | -i "${S}/lv_conf.h" | 70 | -i "${S}/lv_conf.h" |
| 54 | } | 71 | } |
