Skip to content
Snippets Groups Projects
Verified Commit fa35255f authored by philippe coval's avatar philippe coval :speech_balloon: Committed by Andrei Gherzan
Browse files

lvgl: Add hints about using configuration variables


Signed-off-by: default avatarPhilippe Coval <philippe.coval@huawei.com>
parent 9edd150f
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,9 @@ EXTRA_OECMAKE += "-Dinstall:BOOL=ON" ...@@ -26,6 +26,9 @@ EXTRA_OECMAKE += "-Dinstall:BOOL=ON"
TARGET_CFLAGS += "-DLV_CONF_INCLUDE_SIMPLE=1" TARGET_CFLAGS += "-DLV_CONF_INCLUDE_SIMPLE=1"
TARGET_CFLAGS += "-I${RECIPE_SYSROOT}/${includedir}/lvgl" TARGET_CFLAGS += "-I${RECIPE_SYSROOT}/${includedir}/lvgl"
# Upstream does not support a default configuration
# but propose a default "disabled" template, which is used as reference
# More configuration can be done using external configuration variables
do_configure_append() { do_configure_append() {
[ -r "${S}/lv_drv_conf.h" ] \ [ -r "${S}/lv_drv_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 the content.*|#if 1 // Enabled by ${PN}|g" \
......
...@@ -23,7 +23,9 @@ EXTRA_OECMAKE += "-Dinstall:BOOL=ON" ...@@ -23,7 +23,9 @@ EXTRA_OECMAKE += "-Dinstall:BOOL=ON"
LVGL_CONFIG_LV_MEM_CUSTOM ?= "0" LVGL_CONFIG_LV_MEM_CUSTOM ?= "0"
# Upstream does not support a default configuration
# but propose a default "disabled" template, which is used as reference
# More configuration can be done using external configuration variables
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 .*|#if 1 // Enabled|g' \ || sed -e 's|#if 0 .*Set it to "1" to enable .*|#if 1 // Enabled|g' \
......
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