diff options
| -rw-r--r-- | meta-oe/recipes-graphics/lvgl/lv-conf.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/lvgl/lv-conf.inc b/meta-oe/recipes-graphics/lvgl/lv-conf.inc index 9186015537..41133f3438 100644 --- a/meta-oe/recipes-graphics/lvgl/lv-conf.inc +++ b/meta-oe/recipes-graphics/lvgl/lv-conf.inc | |||
| @@ -3,6 +3,7 @@ PACKAGECONFIG ??= "drm" | |||
| 3 | PACKAGECONFIG[drm] = ",,libdrm" | 3 | PACKAGECONFIG[drm] = ",,libdrm" |
| 4 | PACKAGECONFIG[fbdev] = ",," | 4 | PACKAGECONFIG[fbdev] = ",," |
| 5 | PACKAGECONFIG[gridnav] = ",," | 5 | PACKAGECONFIG[gridnav] = ",," |
| 6 | PACKAGECONFIG[thorvg] = ",," | ||
| 6 | PACKAGECONFIG[sdl] = ",,virtual/libsdl2 libsdl2-image" | 7 | PACKAGECONFIG[sdl] = ",,virtual/libsdl2 libsdl2-image" |
| 7 | 8 | ||
| 8 | # Add libdrm include if drm is selected in PACKAGECONFIG | 9 | # Add libdrm include if drm is selected in PACKAGECONFIG |
| @@ -32,6 +33,10 @@ LVGL_CONFIG_LV_USE_GRIDNAV = "${@bb.utils.contains('PACKAGECONFIG', 'gridnav', ' | |||
| 32 | 33 | ||
| 33 | LVGL_CONFIG_LV_THEME_DEFAULT_DARK ?= "0" | 34 | LVGL_CONFIG_LV_THEME_DEFAULT_DARK ?= "0" |
| 34 | 35 | ||
| 36 | LVGL_CONFIG_USE_VECTOR_GRAPHICS = "${@bb.utils.contains('PACKAGECONFIG', 'thorvg', '1', '0', d)}" | ||
| 37 | |||
| 38 | LVGL_CONFIG_USE_THORVG_INTERNAL = "${@bb.utils.contains('PACKAGECONFIG', 'thorvg', '1', '0', d)}" | ||
| 39 | |||
| 35 | DEBUG_BUILD ??= "0" | 40 | DEBUG_BUILD ??= "0" |
| 36 | 41 | ||
| 37 | ALLOW_EMPTY:${PN} = "1" | 42 | ALLOW_EMPTY:${PN} = "1" |
| @@ -77,5 +82,8 @@ do_configure:append() { | |||
| 77 | -e "s|^([[:space:]]*#define LV_USE_GRIDNAV[[:space:]]).*|\1${LVGL_CONFIG_LV_USE_GRIDNAV}|" \ | 82 | -e "s|^([[:space:]]*#define LV_USE_GRIDNAV[[:space:]]).*|\1${LVGL_CONFIG_LV_USE_GRIDNAV}|" \ |
| 78 | -e "s|^([[:space:]]*#define LV_THEME_DEFAULT_DARK[[:space:]]).*|\1${LVGL_CONFIG_LV_THEME_DEFAULT_DARK}|" \ | 83 | -e "s|^([[:space:]]*#define LV_THEME_DEFAULT_DARK[[:space:]]).*|\1${LVGL_CONFIG_LV_THEME_DEFAULT_DARK}|" \ |
| 79 | \ | 84 | \ |
| 85 | -e "s|^([[:space:]]*#define LV_USE_VECTOR_GRAPHIC[[:space:]]).*|\1${LVGL_CONFIG_USE_VECTOR_GRAPHICS}|" \ | ||
| 86 | -e "s|^([[:space:]]*#define LV_USE_THORVG_INTERNAL[[:space:]]).*|\1${LVGL_CONFIG_USE_THORVG_INTERNAL}|" \ | ||
| 87 | \ | ||
| 80 | -i "${S}/lv_conf.h" | 88 | -i "${S}/lv_conf.h" |
| 81 | } | 89 | } |
