diff options
| author | Philippe Coval <philippe.coval@huawei.com> | 2021-10-04 17:45:57 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-10-06 08:59:14 -0700 |
| commit | 21580d65af95a854cccc7d0bf5c31201c9c30ea9 (patch) | |
| tree | 81fb23be08a5408d6b77f3b8373b96a33565afd1 | |
| parent | 8e6e4e594d77bc317491eecccd125ae725d70ecb (diff) | |
| download | meta-openembedded-21580d65af95a854cccc7d0bf5c31201c9c30ea9.tar.gz | |
lvgl: Add recipe for Lightweight Graphics Library
Note, this requires lv-drivers for wayland rendering.
Change-Id: I920679891d0c7b5079537af77ff4d21094178cce
Forwarded: https://github.com/openembedded/meta-openembedded/pull/447
Relate-to: https://github.com/lvgl/lvgl/issues/2534
Origin: https://git.ostc-eu.org/OSTC/planning/core-os/-/issues/233
Signed-off-by: Philippe Coval <philippe.coval@huawei.com>
| -rw-r--r-- | meta-oe/recipes-graphics/lvgl/lvgl_8.0.3.bb | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/lvgl/lvgl_8.0.3.bb b/meta-oe/recipes-graphics/lvgl/lvgl_8.0.3.bb new file mode 100644 index 0000000000..5f37efda79 --- /dev/null +++ b/meta-oe/recipes-graphics/lvgl/lvgl_8.0.3.bb | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | # -*- mode: bitbake; c-basic-offset: 4; indent-tabs-mode: nil -*- | ||
| 2 | |||
| 3 | # SPDX-FileCopyrightText: Huawei Inc. | ||
| 4 | # SPDX-License-Identifier: MIT | ||
| 5 | |||
| 6 | # TODO: Pin upstream release (current is v8.0.3-dev-239-g7b7bed37d) | ||
| 7 | src_org = "lvgl" | ||
| 8 | SRC_URI = "gitsm://github.com/${src_org}/lvgl;destsuffix=${S};protocol=https;nobranch=1" | ||
| 9 | SRCREV = "7b7bed37d3e937c59ec99fccba58774fbf9f1930" | ||
| 10 | |||
| 11 | LICENSE = "MIT" | ||
| 12 | LIC_FILES_CHKSUM = "file://LICENCE.txt;md5=bf1198c89ae87f043108cea62460b03a" | ||
| 13 | |||
| 14 | HOMEPAGE = "https://lvgl.io/" | ||
| 15 | SUMMARY = "Light and Versatile Graphics Library" | ||
| 16 | DESCRIPTION = "LVGL is an open-source graphics library providing everything you need to create embedded GUI with easy-to-use graphical elements, beautiful visual effects and low memory footprint." | ||
| 17 | |||
| 18 | REQUIRED_DISTRO_FEATURES = "wayland" | ||
| 19 | |||
| 20 | inherit cmake | ||
| 21 | inherit features_check | ||
| 22 | |||
| 23 | S = "${WORKDIR}/${PN}-${PV}" | ||
| 24 | |||
| 25 | EXTRA_OECMAKE += "-Dinstall:BOOL=ON" | ||
| 26 | |||
| 27 | |||
| 28 | do_configure:prepend() { | ||
| 29 | [ -r "${S}/lv_conf.h" ] \ | ||
| 30 | || sed -e "s|#if 0 /*Set it to \"1\" to enable the content*/|#if 1 // Enabled by ${PN}|g" \ | ||
| 31 | < "${S}/lv_conf_template.h" > "${S}/lv_conf.h" | ||
| 32 | } | ||
| 33 | |||
| 34 | |||
| 35 | FILES:${PN}-dev = "\ | ||
| 36 | ${includedir}/${PN}/ \ | ||
| 37 | ${includedir}/${PN}/lvgl/ \ | ||
| 38 | " | ||
| 39 | |||
| 40 | FILES:${PN}-staticdev = "${libdir}/" | ||
