diff options
| -rw-r--r-- | meta-oe/recipes-graphics/lvgl/lvgl_8.0.3.bb | 5 |
1 files changed, 4 insertions, 1 deletions
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}" | |||
| 21 | 21 | ||
| 22 | EXTRA_OECMAKE += "-Dinstall:BOOL=ON" | 22 | EXTRA_OECMAKE += "-Dinstall:BOOL=ON" |
| 23 | 23 | ||
| 24 | LVGL_CONFIG_LV_MEM_CUSTOM ?= "0" | ||
| 25 | |||
| 24 | do_configure:prepend() { | 26 | do_configure:prepend() { |
| 25 | [ -r "${S}/lv_conf.h" ] \ | 27 | [ -r "${S}/lv_conf.h" ] \ |
| 26 | || sed -e "s|#if 0 /*Set it to \"1\" to enable the content*/|#if 1 // Enabled by ${PN}|g" \ | 28 | || sed -e 's|#if 0 .*Set it to "1" to enable .*|#if 1 // Enabled|g' \ |
| 29 | -e "s|\(#define LV_MEM_CUSTOM .*\)0|\1${LVGL_CONFIG_LV_MEM_CUSTOM}|g" \ | ||
| 27 | < "${S}/lv_conf_template.h" > "${S}/lv_conf.h" | 30 | < "${S}/lv_conf_template.h" > "${S}/lv_conf.h" |
| 28 | } | 31 | } |
| 29 | 32 | ||
