diff options
| author | Philippe Coval <philippe.coval@huawei.com> | 2021-10-18 15:54:16 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-11-06 12:54:03 -0700 |
| commit | 243c83334a77c6052b4170ded98f7198b06a33fe (patch) | |
| tree | 4c066fc1344068e7b14e75888b349d7b12f03d59 | |
| parent | 4e82153b4004607483a34e580cd42a866f0d3aac (diff) | |
| download | meta-openembedded-243c83334a77c6052b4170ded98f7198b06a33fe.tar.gz | |
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 <philippe.coval@huawei.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -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 | ||
