Skip to content

Commit d4f9519

Browse files
rzrkraj
authored andcommitted
lvgl: Support external wayland config
This part should be reverted once xdg-shell is supported in lvgl Relate-to: lvgl/lvgl#2534 Forwarded: #483 Origin: https://git.ostc-eu.org/distro/oniro/-/merge_requests/355 Signed-off-by: Philippe Coval <[email protected]> Signed-off-by: Khem Raj <[email protected]>
1 parent e0ab236 commit d4f9519

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

meta-oe/recipes-graphics/lvgl/lv-drivers_7.11.0.bb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ inherit features_check
2121

2222
S = "${WORKDIR}/${PN}-${PV}"
2323

24+
LVGL_CONFIG_WAYLAND_HOR_RES ?= "480"
25+
LVGL_CONFIG_WAYLAND_VER_RES ?= "320"
26+
2427
EXTRA_OECMAKE += "-Dinstall:BOOL=ON"
2528

2629
TARGET_CFLAGS += "-DLV_CONF_INCLUDE_SIMPLE=1"
@@ -33,6 +36,8 @@ do_configure:append() {
3336
[ -r "${S}/lv_drv_conf.h" ] \
3437
|| sed -e "s|#if 0 .*Set it to \"1\" to enable the content.*|#if 1 // Enabled by ${PN}|g" \
3538
-e "s|# define USE_WAYLAND 0|# define USE_WAYLAND 1|g" \
39+
-e "s|\(^ *# *define *WAYLAND_HOR_RES *\).*|\1${LVGL_CONFIG_WAYLAND_HOR_RES}|g" \
40+
-e "s|\(^ *# *define *WAYLAND_VER_RES *\).*|\1${LVGL_CONFIG_WAYLAND_VER_RES}|g" \
3641
< "${S}/lv_drv_conf_template.h" > "${S}/lv_drv_conf.h"
3742
}
3843

0 commit comments

Comments
 (0)