diff --git a/meta-oniro-staging/recipes-graphics/lvgl/lvgl_8.0.3.bb b/meta-oniro-staging/recipes-graphics/lvgl/lvgl_8.0.3.bb index 706572e442d905b99f58cd9949f82028a27674c4..5acffd194252ac9d12e3f004a1fd971ab26e0973 100644 --- a/meta-oniro-staging/recipes-graphics/lvgl/lvgl_8.0.3.bb +++ b/meta-oniro-staging/recipes-graphics/lvgl/lvgl_8.0.3.bb @@ -21,9 +21,13 @@ 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" }