mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-09-17 20:51:57 +02:00
The LVGL can be operated on top of fbdev as well as on WL compositor. Support both, which is a matter of configuring lv-drivers package per required backend. Determine the backend from DISTRO_FEATURES, since both 'wayland' and 'fbdev' are valid DISTRO_FEATURES. Add a bit more sed hacking of the configuration, which enables either FBDEV or WL backend. One notable item here is the enablement of EVDEV support, which is required for FBDEV backend, so in case FBDEV is enabled, so is EVDEV. Signed-off-by: Marek Vasut <marex@denx.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
43 lines
1.5 KiB
BlitzBasic
43 lines
1.5 KiB
BlitzBasic
# SPDX-FileCopyrightText: Huawei Inc.
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
HOMEPAGE = "https://lvgl.io/"
|
|
DESCRIPTION = "LVGL is an OSS graphics library to create embedded GUI"
|
|
SUMMARY = "Light and Versatile Graphics Library"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://LICENCE.txt;md5=bf1198c89ae87f043108cea62460b03a"
|
|
|
|
SRC_URI = "git://github.com/lvgl/lvgl;protocol=https;branch=release/v8.3"
|
|
SRCREV = "2b56e04205481daa6575bd5f7ab5df59d11676eb"
|
|
|
|
inherit cmake
|
|
|
|
EXTRA_OECMAKE = "-DLIB_INSTALL_DIR=${baselib}"
|
|
S = "${WORKDIR}/git"
|
|
|
|
LVGL_CONFIG_LV_MEM_CUSTOM ?= "0"
|
|
LVGL_CONFIG_LV_COLOR_DEPTH ?= "32"
|
|
|
|
# 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' \
|
|
-e "s|\(#define LV_COLOR_DEPTH \).*|\1 ${LVGL_CONFIG_LV_COLOR_DEPTH}|g" \
|
|
\
|
|
-e "s|\(#define LV_MEM_CUSTOM .*\)0|\1${LVGL_CONFIG_LV_MEM_CUSTOM}|g" \
|
|
\
|
|
-e "s|\(#define LV_TICK_CUSTOM \).*|\1 1|g" \
|
|
-e "s|\(#define LV_TICK_CUSTOM_INCLUDE \).*|\1 <stdint.h>|g" \
|
|
-e "s|\(#define LV_TICK_CUSTOM_SYS_TIME_EXPR \).*|extern uint32_t custom_tick_get(void);\n\1 (custom_tick_get())|g" \
|
|
\
|
|
< "${S}/lv_conf_template.h" > "${S}/lv_conf.h"
|
|
}
|
|
|
|
FILES:${PN}-dev += "\
|
|
${includedir}/${PN}/ \
|
|
${includedir}/${PN}/lvgl/ \
|
|
"
|