diff options
| author | Marek Vasut <marex@denx.de> | 2023-05-09 04:43:51 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-05-09 10:12:44 -0700 |
| commit | 1278e8cfcab28219136bc7ee7e12fd6460f11985 (patch) | |
| tree | 65d924af8cf48be1f5d6fa4f51d18c3e8c7d28ea | |
| parent | 6a2fb1f751307f29cafdd3f35fc8452f93d37d0c (diff) | |
| download | meta-openembedded-1278e8cfcab28219136bc7ee7e12fd6460f11985.tar.gz | |
lvgl: Add configurable color depth, default to 32bpp
Make color depth configurable and default to 32bpp .
Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-graphics/lvgl/lvgl_8.3.7.bb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/lvgl/lvgl_8.3.7.bb b/meta-oe/recipes-graphics/lvgl/lvgl_8.3.7.bb index 5f3fc44cfe..a3fd7e04cb 100644 --- a/meta-oe/recipes-graphics/lvgl/lvgl_8.3.7.bb +++ b/meta-oe/recipes-graphics/lvgl/lvgl_8.3.7.bb | |||
| @@ -20,6 +20,7 @@ EXTRA_OECMAKE = "-DLIB_INSTALL_DIR=${baselib}" | |||
| 20 | S = "${WORKDIR}/git" | 20 | S = "${WORKDIR}/git" |
| 21 | 21 | ||
| 22 | LVGL_CONFIG_LV_MEM_CUSTOM ?= "0" | 22 | LVGL_CONFIG_LV_MEM_CUSTOM ?= "0" |
| 23 | LVGL_CONFIG_LV_COLOR_DEPTH ?= "32" | ||
| 23 | 24 | ||
| 24 | # Upstream does not support a default configuration | 25 | # Upstream does not support a default configuration |
| 25 | # but propose a default "disabled" template, which is used as reference | 26 | # but propose a default "disabled" template, which is used as reference |
| @@ -27,6 +28,8 @@ LVGL_CONFIG_LV_MEM_CUSTOM ?= "0" | |||
| 27 | do_configure:prepend() { | 28 | do_configure:prepend() { |
| 28 | [ -r "${S}/lv_conf.h" ] \ | 29 | [ -r "${S}/lv_conf.h" ] \ |
| 29 | || sed -e 's|#if 0 .*Set it to "1" to enable .*|#if 1 // Enabled|g' \ | 30 | || sed -e 's|#if 0 .*Set it to "1" to enable .*|#if 1 // Enabled|g' \ |
| 31 | -e "s|\(#define LV_COLOR_DEPTH \).*|\1 ${LVGL_CONFIG_LV_COLOR_DEPTH}|g" \ | ||
| 32 | \ | ||
| 30 | -e "s|\(#define LV_MEM_CUSTOM .*\)0|\1${LVGL_CONFIG_LV_MEM_CUSTOM}|g" \ | 33 | -e "s|\(#define LV_MEM_CUSTOM .*\)0|\1${LVGL_CONFIG_LV_MEM_CUSTOM}|g" \ |
| 31 | \ | 34 | \ |
| 32 | -e "s|\(#define LV_TICK_CUSTOM \).*|\1 1|g" \ | 35 | -e "s|\(#define LV_TICK_CUSTOM \).*|\1 1|g" \ |
