Skip to content

Commit

Permalink
lvgl: Introduce global variable for configuration
Browse files Browse the repository at this point in the history
Relate-to: lvgl/lvgl#2534
Forwarded: #473
Signed-off-by: Philippe Coval <philippe.coval@huawei.com>
  • Loading branch information
rzr committed Nov 5, 2021
1 parent 026721d commit 6c9a584
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion meta-oe/recipes-graphics/lvgl/lvgl_8.0.3.bb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down

0 comments on commit 6c9a584

Please sign in to comment.