mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-10-15 18:27:12 +00:00
lvgl: lv-conf.inc: add wayland packageconfig
Add the possibility to use wayland as lvgl backend. Add a config snippet to enable wayland and add the necessary dependencies. The lvgl cmake needs SYSROOT to be set to RECIPE_SYSROOT to find the wayland protocols. Signed-off-by: Thorsten Schmelzer <t.schmelzer@phytec.de> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
1 parent
916651ab0d
commit
8ae75b7ad6
2 files changed
+7
No files matched your search
@@ -0,0 +1 @@
|
||||
CONFIG_LV_USE_WAYLAND=y
|
||||
@@ -12,6 +12,7 @@ SRC_URI += " \
|
||||
${@bb.utils.contains('PACKAGECONFIG', 'gridnav', 'file://gridnav.cfg', '', d)} \
|
||||
${@bb.utils.contains('PACKAGECONFIG', 'sdl', 'file://sdl.cfg', '', d)} \
|
||||
${@bb.utils.contains('PACKAGECONFIG', 'thorvg', 'file://thorvg.cfg', '', d)} \
|
||||
${@bb.utils.contains('PACKAGECONFIG', 'wayland', 'file://wayland.cfg', '', d)} \
|
||||
"
|
||||
|
||||
PACKAGECONFIG ??= "drm"
|
||||
@@ -22,11 +23,16 @@ PACKAGECONFIG[freetype] = ",,freetype"
|
||||
PACKAGECONFIG[gridnav] = ",,"
|
||||
PACKAGECONFIG[thorvg] = ",,"
|
||||
PACKAGECONFIG[sdl] = ",,virtual/libsdl2 libsdl2-image"
|
||||
PACKAGECONFIG[wayland] = ",,wayland wayland-protocols wayland-native libxkbcommon"
|
||||
|
||||
inherit cml1 python3native
|
||||
|
||||
EXTRA_OECMAKE += "-DLV_BUILD_USE_KCONFIG=ON"
|
||||
|
||||
# needed for finding wayland protocols
|
||||
export SYSROOT
|
||||
SYSROOT = "${RECIPE_SYSROOT}"
|
||||
|
||||
KCONFIG_CONFIG_ROOTDIR ?= "${S}"
|
||||
KCONFIG_FILE ?= "${KCONFIG_CONFIG_ROOTDIR}/Kconfig"
|
||||
export KCONFIG_CONFIG ?= "${KCONFIG_CONFIG_ROOTDIR}/.config"
|
||||
|
||||
Reference in new issue
Block a user