diff options
| author | Peter Kjellerstedt <pkj@axis.com> | 2025-10-25 05:17:47 +0200 | 
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-10-24 20:41:20 -0700 | 
| commit | a16b53a43c463620742d6ad1a0e17eefd98562d2 (patch) | |
| tree | 44aaf93f10091ea5532a108cfd3217270cb1612e | |
| parent | 9f73c95792669f1693964a87e8e3fe389a9b7f73 (diff) | |
| download | meta-openembedded-a16b53a43c463620742d6ad1a0e17eefd98562d2.tar.gz | |
lvgl: Add freetype support
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-graphics/lvgl/files/freetype.cfg | 1 | ||||
| -rw-r--r-- | meta-oe/recipes-graphics/lvgl/lv-conf.inc | 4 | 
2 files changed, 4 insertions, 1 deletions
| diff --git a/meta-oe/recipes-graphics/lvgl/files/freetype.cfg b/meta-oe/recipes-graphics/lvgl/files/freetype.cfg new file mode 100644 index 0000000000..acc8ef0e7a --- /dev/null +++ b/meta-oe/recipes-graphics/lvgl/files/freetype.cfg | |||
| @@ -0,0 +1 @@ | |||
| CONFIG_LV_USE_FREETYPE=y | |||
| diff --git a/meta-oe/recipes-graphics/lvgl/lv-conf.inc b/meta-oe/recipes-graphics/lvgl/lv-conf.inc index cc8a2a16d9..4264f20895 100644 --- a/meta-oe/recipes-graphics/lvgl/lv-conf.inc +++ b/meta-oe/recipes-graphics/lvgl/lv-conf.inc | |||
| @@ -8,6 +8,7 @@ SRC_URI += " \ | |||
| 8 | ${@oe.utils.vartrue('DEBUG_BUILD', 'file://debug.cfg', '', d)} \ | 8 | ${@oe.utils.vartrue('DEBUG_BUILD', 'file://debug.cfg', '', d)} \ | 
| 9 | ${@bb.utils.contains('PACKAGECONFIG', 'drm', 'file://drm.cfg', '', d)} \ | 9 | ${@bb.utils.contains('PACKAGECONFIG', 'drm', 'file://drm.cfg', '', d)} \ | 
| 10 | ${@bb.utils.contains('PACKAGECONFIG', 'fbdev', 'file://fbdev.cfg', '', d)} \ | 10 | ${@bb.utils.contains('PACKAGECONFIG', 'fbdev', 'file://fbdev.cfg', '', d)} \ | 
| 11 | ${@bb.utils.contains('PACKAGECONFIG', 'freetype', 'file://freetype.cfg', '', d)} \ | ||
| 11 | ${@bb.utils.contains('PACKAGECONFIG', 'gridnav', 'file://gridnav.cfg', '', d)} \ | 12 | ${@bb.utils.contains('PACKAGECONFIG', 'gridnav', 'file://gridnav.cfg', '', d)} \ | 
| 12 | ${@bb.utils.contains('PACKAGECONFIG', 'sdl', 'file://sdl.cfg', '', d)} \ | 13 | ${@bb.utils.contains('PACKAGECONFIG', 'sdl', 'file://sdl.cfg', '', d)} \ | 
| 13 | ${@bb.utils.contains('PACKAGECONFIG', 'thorvg', 'file://thorvg.cfg', '', d)} \ | 14 | ${@bb.utils.contains('PACKAGECONFIG', 'thorvg', 'file://thorvg.cfg', '', d)} \ | 
| @@ -17,6 +18,7 @@ PACKAGECONFIG ??= "drm" | |||
| 17 | 18 | ||
| 18 | PACKAGECONFIG[drm] = ",,libdrm libevdev" | 19 | PACKAGECONFIG[drm] = ",,libdrm libevdev" | 
| 19 | PACKAGECONFIG[fbdev] = ",,libevdev" | 20 | PACKAGECONFIG[fbdev] = ",,libevdev" | 
| 21 | PACKAGECONFIG[freetype] = ",,freetype" | ||
| 20 | PACKAGECONFIG[gridnav] = ",," | 22 | PACKAGECONFIG[gridnav] = ",," | 
| 21 | PACKAGECONFIG[thorvg] = ",," | 23 | PACKAGECONFIG[thorvg] = ",," | 
| 22 | PACKAGECONFIG[sdl] = ",,virtual/libsdl2 libsdl2-image" | 24 | PACKAGECONFIG[sdl] = ",,virtual/libsdl2 libsdl2-image" | 
| @@ -25,9 +27,9 @@ inherit cml1 python3native | |||
| 25 | 27 | ||
| 26 | EXTRA_OECMAKE += "-DLV_BUILD_USE_KCONFIG=ON" | 28 | EXTRA_OECMAKE += "-DLV_BUILD_USE_KCONFIG=ON" | 
| 27 | 29 | ||
| 28 | # Add libdrm include if drm is selected in PACKAGECONFIG | ||
| 29 | LVGL_FLAGS += " \ | 30 | LVGL_FLAGS += " \ | 
| 30 | ${@bb.utils.contains('PACKAGECONFIG', 'drm', '-I${STAGING_INCDIR}/libdrm', '', d)} \ | 31 | ${@bb.utils.contains('PACKAGECONFIG', 'drm', '-I${STAGING_INCDIR}/libdrm', '', d)} \ | 
| 32 | ${@bb.utils.contains('PACKAGECONFIG', 'freetype', '-I${STAGING_INCDIR}/freetype2', '', d)} \ | ||
| 31 | " | 33 | " | 
| 32 | CFLAGS += "${LVGL_FLAGS}" | 34 | CFLAGS += "${LVGL_FLAGS}" | 
| 33 | CXXFLAGS += "${LVGL_FLAGS}" | 35 | CXXFLAGS += "${LVGL_FLAGS}" | 
