From 4aa6b803edc7d99bf9ca9cd36bc29cdfb10ed10d Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Tue, 19 Oct 2021 09:42:24 +0200 Subject: lvgl: Add hints about using configuration variables Relate-to: https://github.com/lvgl/lvgl/issues/2534 Forwarded: https://github.com/openembedded/meta-openembedded/pull/479 Signed-off-by: Philippe Coval Signed-off-by: Khem Raj --- meta-oe/recipes-graphics/lvgl/lv-drivers_7.11.0.bb | 3 +++ meta-oe/recipes-graphics/lvgl/lvgl_8.0.3.bb | 3 +++ 2 files changed, 6 insertions(+) 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 750312844a..7e0a980d23 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 @@ -26,6 +26,9 @@ EXTRA_OECMAKE += "-Dinstall:BOOL=ON" TARGET_CFLAGS += "-DLV_CONF_INCLUDE_SIMPLE=1" TARGET_CFLAGS += "-I${RECIPE_SYSROOT}/${includedir}/lvgl" +# Upstream does not support a default configuration +# but propose a default "disabled" template, which is used as reference +# More configuration can be done using external configuration variables 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" \ diff --git a/meta-oe/recipes-graphics/lvgl/lvgl_8.0.3.bb b/meta-oe/recipes-graphics/lvgl/lvgl_8.0.3.bb index 53ae7d90f9..0e0bd69420 100644 --- a/meta-oe/recipes-graphics/lvgl/lvgl_8.0.3.bb +++ b/meta-oe/recipes-graphics/lvgl/lvgl_8.0.3.bb @@ -23,6 +23,9 @@ EXTRA_OECMAKE += "-Dinstall:BOOL=ON" LVGL_CONFIG_LV_MEM_CUSTOM ?= "0" +# Upstream does not support a default configuration +# but propose a default "disabled" template, which is used as reference +# More configuration can be done using external configuration variables do_configure:prepend() { [ -r "${S}/lv_conf.h" ] \ || sed -e 's|#if 0 .*Set it to "1" to enable .*|#if 1 // Enabled|g' \ -- cgit v1.2.3-54-g00ecf