From d4f9519079c7de825fa34856aaf18eee4f9380a4 Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Wed, 20 Oct 2021 12:48:35 +0200 Subject: lvgl: Support external wayland config This part should be reverted once xdg-shell is supported in lvgl Relate-to: https://github.com/lvgl/lvgl/issues/2534 Forwarded: https://github.com/openembedded/meta-openembedded/pull/483 Origin: https://git.ostc-eu.org/distro/oniro/-/merge_requests/355 Signed-off-by: Philippe Coval Signed-off-by: Khem Raj --- meta-oe/recipes-graphics/lvgl/lv-drivers_7.11.0.bb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meta-oe/recipes-graphics/lvgl') diff --git a/meta-oe/recipes-graphics/lvgl/lv-drivers_7.11.0.bb b/meta-oe/recipes-graphics/lvgl/lv-drivers_7.11.0.bb index 7e0a980d23..7ccee6bf11 100644 --- a/meta-oe/recipes-graphics/lvgl/lv-drivers_7.11.0.bb +++ b/meta-oe/recipes-graphics/lvgl/lv-drivers_7.11.0.bb @@ -21,6 +21,9 @@ inherit features_check S = "${WORKDIR}/${PN}-${PV}" +LVGL_CONFIG_WAYLAND_HOR_RES ?= "480" +LVGL_CONFIG_WAYLAND_VER_RES ?= "320" + EXTRA_OECMAKE += "-Dinstall:BOOL=ON" TARGET_CFLAGS += "-DLV_CONF_INCLUDE_SIMPLE=1" @@ -33,6 +36,8 @@ do_configure:append() { [ -r "${S}/lv_drv_conf.h" ] \ || sed -e "s|#if 0 .*Set it to \"1\" to enable the content.*|#if 1 // Enabled by ${PN}|g" \ -e "s|# define USE_WAYLAND 0|# define USE_WAYLAND 1|g" \ + -e "s|\(^ *# *define *WAYLAND_HOR_RES *\).*|\1${LVGL_CONFIG_WAYLAND_HOR_RES}|g" \ + -e "s|\(^ *# *define *WAYLAND_VER_RES *\).*|\1${LVGL_CONFIG_WAYLAND_VER_RES}|g" \ < "${S}/lv_drv_conf_template.h" > "${S}/lv_drv_conf.h" } -- cgit 1.2.3-korg