Skip to content

Commit 243c833

Browse files
rzrkraj
authored andcommitted
lvgl: Introduce global variable for configuration
Relate-to: lvgl/lvgl#2534 Forwarded: #473 Signed-off-by: Philippe Coval <[email protected]> Signed-off-by: Khem Raj <[email protected]>
1 parent 4e82153 commit 243c833

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

meta-oe/recipes-graphics/lvgl/lvgl_8.0.3.bb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@ S = "${WORKDIR}/${PN}-${PV}"
2121

2222
EXTRA_OECMAKE += "-Dinstall:BOOL=ON"
2323

24+
LVGL_CONFIG_LV_MEM_CUSTOM ?= "0"
25+
2426
do_configure:prepend() {
2527
[ -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" \
2730
< "${S}/lv_conf_template.h" > "${S}/lv_conf.h"
2831
}
2932

0 commit comments

Comments
 (0)