diff options
| author | Philippe Coval <philippe.coval@huawei.com> | 2021-10-20 12:48:35 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-11-15 08:57:25 -0800 |
| commit | d4f9519079c7de825fa34856aaf18eee4f9380a4 (patch) | |
| tree | eb38437ecab7ced00915df3beb6fc0fc46020447 | |
| parent | e0ab236378f8a734b72e3b392c900540bd41f87e (diff) | |
| download | meta-openembedded-d4f9519079c7de825fa34856aaf18eee4f9380a4.tar.gz | |
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 <philippe.coval@huawei.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-graphics/lvgl/lv-drivers_7.11.0.bb | 5 |
1 files changed, 5 insertions, 0 deletions
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 | |||
| 21 | 21 | ||
| 22 | S = "${WORKDIR}/${PN}-${PV}" | 22 | S = "${WORKDIR}/${PN}-${PV}" |
| 23 | 23 | ||
| 24 | LVGL_CONFIG_WAYLAND_HOR_RES ?= "480" | ||
| 25 | LVGL_CONFIG_WAYLAND_VER_RES ?= "320" | ||
| 26 | |||
| 24 | EXTRA_OECMAKE += "-Dinstall:BOOL=ON" | 27 | EXTRA_OECMAKE += "-Dinstall:BOOL=ON" |
| 25 | 28 | ||
| 26 | TARGET_CFLAGS += "-DLV_CONF_INCLUDE_SIMPLE=1" | 29 | TARGET_CFLAGS += "-DLV_CONF_INCLUDE_SIMPLE=1" |
| @@ -33,6 +36,8 @@ do_configure:append() { | |||
| 33 | [ -r "${S}/lv_drv_conf.h" ] \ | 36 | [ -r "${S}/lv_drv_conf.h" ] \ |
| 34 | || sed -e "s|#if 0 .*Set it to \"1\" to enable the content.*|#if 1 // Enabled by ${PN}|g" \ | 37 | || sed -e "s|#if 0 .*Set it to \"1\" to enable the content.*|#if 1 // Enabled by ${PN}|g" \ |
| 35 | -e "s|# define USE_WAYLAND 0|# define USE_WAYLAND 1|g" \ | 38 | -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" \ | ||
| 36 | < "${S}/lv_drv_conf_template.h" > "${S}/lv_drv_conf.h" | 41 | < "${S}/lv_drv_conf_template.h" > "${S}/lv_drv_conf.h" |
| 37 | } | 42 | } |
| 38 | 43 | ||
