Skip to content
Snippets Groups Projects
Commit c6018c01 authored by philippe coval's avatar philippe coval :speech_balloon: Committed by Zygmunt Krynicki
Browse files

lvgl: Introduce global variable for configuration


Signed-off-by: default avatarPhilippe Coval <philippe.coval@huawei.com>
parent 35768829
No related branches found
No related tags found
No related merge requests found
...@@ -21,9 +21,13 @@ S = "${WORKDIR}/${PN}-${PV}" ...@@ -21,9 +21,13 @@ S = "${WORKDIR}/${PN}-${PV}"
EXTRA_OECMAKE += "-Dinstall:BOOL=ON" EXTRA_OECMAKE += "-Dinstall:BOOL=ON"
LVGL_CONFIG_LV_MEM_CUSTOM ?= "0"
do_configure_prepend() { do_configure_prepend() {
[ -r "${S}/lv_conf.h" ] \ [ -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" < "${S}/lv_conf_template.h" > "${S}/lv_conf.h"
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment