From 243c83334a77c6052b4170ded98f7198b06a33fe Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Mon, 18 Oct 2021 15:54:16 +0200 Subject: lvgl: Introduce global variable for configuration Relate-to: https://github.com/lvgl/lvgl/issues/2534 Forwarded: https://github.com/openembedded/meta-openembedded/pull/473 Signed-off-by: Philippe Coval Signed-off-by: Khem Raj --- meta-oe/recipes-graphics/lvgl/lvgl_8.0.3.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 2ca7f60e85..53ae7d90f9 100644 --- a/meta-oe/recipes-graphics/lvgl/lvgl_8.0.3.bb +++ b/meta-oe/recipes-graphics/lvgl/lvgl_8.0.3.bb @@ -21,9 +21,12 @@ S = "${WORKDIR}/${PN}-${PV}" EXTRA_OECMAKE += "-Dinstall:BOOL=ON" +LVGL_CONFIG_LV_MEM_CUSTOM ?= "0" + do_configure:prepend() { [ -r "${S}/lv_conf.h" ] \ - || sed -e "s|#if 0 /*Set it to \"1\" to enable the content*/|#if 1 // Enabled by ${PN}|g" \ + || sed -e 's|#if 0 .*Set it to "1" to enable .*|#if 1 // Enabled|g' \ + -e "s|\(#define LV_MEM_CUSTOM .*\)0|\1${LVGL_CONFIG_LV_MEM_CUSTOM}|g" \ < "${S}/lv_conf_template.h" > "${S}/lv_conf.h" } -- cgit v1.2.3-54-g00ecf