Skip to content

Commit

Permalink
lvgl: Add hints about using configuration variables
Browse files Browse the repository at this point in the history
Relate-to: lvgl/lvgl#2534
Forwarded: openembedded#479
Signed-off-by: Philippe Coval <philippe.coval@huawei.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
  • Loading branch information
rzr authored and kraj committed Nov 11, 2021
1 parent c8d5ad2 commit c1f6c7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions meta-oe/recipes-graphics/lvgl/lv-drivers_7.11.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ EXTRA_OECMAKE += "-Dinstall:BOOL=ON"
TARGET_CFLAGS += "-DLV_CONF_INCLUDE_SIMPLE=1"
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() {
[ -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" \
Expand Down
3 changes: 3 additions & 0 deletions meta-oe/recipes-graphics/lvgl/lvgl_8.0.3.bb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ EXTRA_OECMAKE += "-Dinstall:BOOL=ON"

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() {
[ -r "${S}/lv_conf.h" ] \
|| sed -e 's|#if 0 .*Set it to "1" to enable .*|#if 1 // Enabled|g' \
Expand Down

0 comments on commit c1f6c7f

Please sign in to comment.