Skip to contentSkip to conversation

lvgl: add gridnav to packageconfig

PATCH Marek Vasut 2 participants 2 messages Jun 16, 2024 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Marek Vasut

author Reviewed-by
#1 lore raw
Quoted 1 line · Stefano Babic

Some packages require to activate LVGL_CONFIG_LV_USE_GRIDNAV}

Extra } here, please drop.

Quoted 18 lines

, so let
configure it.

---
CC: Marek Vasut <[email protected]>
CC: Christophe Chapuis <[email protected]>
CC: Khem Raj <[email protected]>
Cc: Martin Jansa <[email protected]>

---
  meta-oe/recipes-graphics/lvgl/lv-conf.inc | 4 ++++
  1 file changed, 4 insertions(+)
meta-oe/recipes-graphics/lvgl/lv-conf.inc +0 -0
index 8fd3412c0..c24df1b01 100644

meta-oe/recipes-graphics/lvgl/lv-conf.inc LVGL_CONFIG_USE_EVDEV = "${@bb.utils.contains_any('PACKAGECONFIG', 'drm fbdev', · line 18

Quoted 5 lines
meta-oe/recipes-graphics/lvgl/lv-conf.inc +2 -0
@@ -14,6 +14,9 @@ LVGL_CONFIG_USE_EVDEV = "${@bb.utils.contains_any('PACKAGECONFIG', 'drm fbdev',
  LVGL_CONFIG_USE_FBDEV = "${@bb.utils.contains('PACKAGECONFIG', 'fbdev', '1', '0', d)}"
 
  LVGL_CONFIG_USE_SDL = "${@bb.utils.contains('PACKAGECONFIG', 'sdl', '1', '0', d)}"
+
+LVGL_CONFIG_LV_USE_GRIDNAV = "${@bb.utils.contains('PACKAGECONFIG', 'gridnav', '1', '0', d)}"

This hunk should be below LVGL_CONFIG_LV_USE_FONT_COMPRESSED to keep the list of config options sorted.

meta-oe/recipes-graphics/lvgl/lv-conf.inc do_configure:append() { · line 75

Quoted 6 lines
meta-oe/recipes-graphics/lvgl/lv-conf.inc +0 -0
  LVGL_CONFIG_SDL_FULLSCREEN ?= "0"
 
  LVGL_CONFIG_LV_MEM_CUSTOM ?= "0"
@@ -71,6 +74,7 @@ do_configure:append() {
          \
          -e "s|^([[:space:]]*#define LV_USE_FONT_COMPRESSED[[:space:]]).*|\1${LVGL_CONFIG_LV_USE_FONT_COMPRESSED}|" \

Move the change from below to here, to keep the list sorted.

meta-oe/recipes-graphics/lvgl/lv-conf.inc do_configure:append() { · line 80

Quoted 5 lines
meta-oe/recipes-graphics/lvgl/lv-conf.inc +1 -0
          -e "s|^([[:space:]]*#define LV_THEME_DEFAULT_DARK[[:space:]]).*|\1${LVGL_CONFIG_LV_THEME_DEFAULT_DARK}|" \
+        -e "s|^([[:space:]]*#define LV_USE_GRIDNAV[[:space:]]).*|\1${LVGL_CONFIG_LV_USE_GRIDNAV}|" \
          \
          -i "${S}/lv_conf.h"
  }

With that fixed, for V2:

#2 lore raw

Hi Marek,

Quoted 49 lines · Marek Vasut
Quoted 1 line · Stefano Babic

Some packages require to activate LVGL_CONFIG_LV_USE_GRIDNAV}

Extra } here, please drop.

Quoted 24 lines

, so let
configure it.

---
CC: Marek Vasut <[email protected]>
CC: Christophe Chapuis <[email protected]>
CC: Khem Raj <[email protected]>
Cc: Martin Jansa <[email protected]>
---
  meta-oe/recipes-graphics/lvgl/lv-conf.inc | 4 ++++

  1 file changed, 4 insertions(+)
meta-oe/recipes-graphics/lvgl/lv-conf.inc +0 -0
index 8fd3412c0..c24df1b01 100644
@@ -14,6 +14,9 @@ LVGL_CONFIG_USE_EVDEV = 
 "${@bb.utils.contains_any('PACKAGECONFIG', 'drm fbdev',

  LVGL_CONFIG_USE_FBDEV = "${@bb.utils.contains('PACKAGECONFIG', 'fbdev', '1', '0', d)}"

  LVGL_CONFIG_USE_SDL = "${@bb.utils.contains('PACKAGECONFIG', 'sdl', '1', '0', d)}"

meta-oe/recipes-graphics/lvgl/lv-conf.inc +2 -0
+
+LVGL_CONFIG_LV_USE_GRIDNAV = "${@bb.utils.contains('PACKAGECONFIG', 
Quoted 1 line

'gridnav', '1', '0', d)}"

This hunk should be below LVGL_CONFIG_LV_USE_FONT_COMPRESSED to keep the list of config options sorted.

meta-oe/recipes-graphics/lvgl/lv-conf.inc do_configure:append() { · line 75

Quoted 6 lines

  LVGL_CONFIG_SDL_FULLSCREEN ?= "0"

  LVGL_CONFIG_LV_MEM_CUSTOM ?= "0"

meta-oe/recipes-graphics/lvgl/lv-conf.inc +0 -0
@@ -71,6 +74,7 @@ do_configure:append() {
           \
           -e "s|^([[:space:]]*#define LV_USE_FONT_COMPRESSED[[:space:]]).*|\1${LVGL_CONFIG_LV_USE_FONT_COMPRESSED}|" \

Move the change from below to here, to keep the list sorted.

Quoted 6 lines
meta-oe/recipes-graphics/lvgl/lv-conf.inc +1 -0
           -e "s|^([[:space:]]*#define LV_THEME_DEFAULT_DARK[[:space:]]).*|\1${LVGL_CONFIG_LV_THEME_DEFAULT_DARK}|" \
+        -e "s|^([[:space:]]*#define 
 LV_USE_GRIDNAV[[:space:]]).*|\1${LVGL_CONFIG_LV_USE_GRIDNAV}|" \
           \

          -i "${S}/lv_conf.h"
  }

Quoted 3 lines

With that fixed, for V2:

Thanks for review, I send V2.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,        Managing Director: Erika Unter
HRB 165235 Munich,   Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================