diff options
| author | Stefano Babic <sbabic@denx.de> | 2024-06-16 15:06:42 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-06-16 15:54:03 -0700 |
| commit | c2322d2d5a387af310c38ab44b1854c0aa908a29 (patch) | |
| tree | d37ffeffda4e5e9643c05916f421f61f18e61e30 | |
| parent | 6b14d0259cfa0eda6650c58ce9d28586bce842a0 (diff) | |
| download | meta-openembedded-c2322d2d5a387af310c38ab44b1854c0aa908a29.tar.gz | |
lvgl: add gridnav to packageconfig
Some packages require to activate LVGL_CONFIG_LV_USE_GRIDNAV, so let
configure it.
Signed-off-by: Stefano Babic <sbabic@denx.de>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-graphics/lvgl/lv-conf.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/lvgl/lv-conf.inc b/meta-oe/recipes-graphics/lvgl/lv-conf.inc index 8fd3412c04..9186015537 100644 --- a/meta-oe/recipes-graphics/lvgl/lv-conf.inc +++ b/meta-oe/recipes-graphics/lvgl/lv-conf.inc | |||
| @@ -2,6 +2,7 @@ PACKAGECONFIG ??= "drm" | |||
| 2 | 2 | ||
| 3 | PACKAGECONFIG[drm] = ",,libdrm" | 3 | PACKAGECONFIG[drm] = ",,libdrm" |
| 4 | PACKAGECONFIG[fbdev] = ",," | 4 | PACKAGECONFIG[fbdev] = ",," |
| 5 | PACKAGECONFIG[gridnav] = ",," | ||
| 5 | PACKAGECONFIG[sdl] = ",,virtual/libsdl2 libsdl2-image" | 6 | PACKAGECONFIG[sdl] = ",,virtual/libsdl2 libsdl2-image" |
| 6 | 7 | ||
| 7 | # Add libdrm include if drm is selected in PACKAGECONFIG | 8 | # Add libdrm include if drm is selected in PACKAGECONFIG |
| @@ -14,6 +15,7 @@ LVGL_CONFIG_USE_EVDEV = "${@bb.utils.contains_any('PACKAGECONFIG', 'drm fbdev', | |||
| 14 | LVGL_CONFIG_USE_FBDEV = "${@bb.utils.contains('PACKAGECONFIG', 'fbdev', '1', '0', d)}" | 15 | LVGL_CONFIG_USE_FBDEV = "${@bb.utils.contains('PACKAGECONFIG', 'fbdev', '1', '0', d)}" |
| 15 | 16 | ||
| 16 | LVGL_CONFIG_USE_SDL = "${@bb.utils.contains('PACKAGECONFIG', 'sdl', '1', '0', d)}" | 17 | LVGL_CONFIG_USE_SDL = "${@bb.utils.contains('PACKAGECONFIG', 'sdl', '1', '0', d)}" |
| 18 | |||
| 17 | LVGL_CONFIG_SDL_FULLSCREEN ?= "0" | 19 | LVGL_CONFIG_SDL_FULLSCREEN ?= "0" |
| 18 | 20 | ||
| 19 | LVGL_CONFIG_LV_MEM_CUSTOM ?= "0" | 21 | LVGL_CONFIG_LV_MEM_CUSTOM ?= "0" |
| @@ -26,6 +28,8 @@ LVGL_CONFIG_LV_LOG_PRINTF ?= "0" | |||
| 26 | 28 | ||
| 27 | LVGL_CONFIG_LV_USE_FONT_COMPRESSED ?= "0" | 29 | LVGL_CONFIG_LV_USE_FONT_COMPRESSED ?= "0" |
| 28 | 30 | ||
| 31 | LVGL_CONFIG_LV_USE_GRIDNAV = "${@bb.utils.contains('PACKAGECONFIG', 'gridnav', '1', '0', d)}" | ||
| 32 | |||
| 29 | LVGL_CONFIG_LV_THEME_DEFAULT_DARK ?= "0" | 33 | LVGL_CONFIG_LV_THEME_DEFAULT_DARK ?= "0" |
| 30 | 34 | ||
| 31 | DEBUG_BUILD ??= "0" | 35 | DEBUG_BUILD ??= "0" |
| @@ -70,6 +74,7 @@ do_configure:append() { | |||
| 70 | -e "s|^([[:space:]]*#define LV_LOG_PRINTF[[:space:]]).*|\1${LVGL_CONFIG_LV_LOG_PRINTF}|" \ | 74 | -e "s|^([[:space:]]*#define LV_LOG_PRINTF[[:space:]]).*|\1${LVGL_CONFIG_LV_LOG_PRINTF}|" \ |
| 71 | \ | 75 | \ |
| 72 | -e "s|^([[:space:]]*#define LV_USE_FONT_COMPRESSED[[:space:]]).*|\1${LVGL_CONFIG_LV_USE_FONT_COMPRESSED}|" \ | 76 | -e "s|^([[:space:]]*#define LV_USE_FONT_COMPRESSED[[:space:]]).*|\1${LVGL_CONFIG_LV_USE_FONT_COMPRESSED}|" \ |
| 77 | -e "s|^([[:space:]]*#define LV_USE_GRIDNAV[[:space:]]).*|\1${LVGL_CONFIG_LV_USE_GRIDNAV}|" \ | ||
| 73 | -e "s|^([[:space:]]*#define LV_THEME_DEFAULT_DARK[[:space:]]).*|\1${LVGL_CONFIG_LV_THEME_DEFAULT_DARK}|" \ | 78 | -e "s|^([[:space:]]*#define LV_THEME_DEFAULT_DARK[[:space:]]).*|\1${LVGL_CONFIG_LV_THEME_DEFAULT_DARK}|" \ |
| 74 | \ | 79 | \ |
| 75 | -i "${S}/lv_conf.h" | 80 | -i "${S}/lv_conf.h" |
