pkg/lvgl: Fix configuration header and compilation issue#22005
Merged
crasbe merged 2 commits intoRIOT-OS:masterfrom Jan 21, 2026
Merged
pkg/lvgl: Fix configuration header and compilation issue#22005crasbe merged 2 commits intoRIOT-OS:masterfrom
crasbe merged 2 commits intoRIOT-OS:masterfrom
Conversation
crasbe
approved these changes
Jan 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
This fixes two issues with the lvgl package that showed during testing for 2026.01.
First, #21701 modified the guards of
lv_conf.hto use#pragma. The issue is that the LVGL package checks for the macro to ensure that the configuration has been loaded. The check is here: https://github.com/lvgl/lvgl/blob/9ec3b8706b098f60940cee6ac211d3cb3141aedf/src/lv_conf_internal.h#L30-L48Without the define, we get several warnings:
This is fixed by re-introducing the macro.
Second, a compilation issue is hitting some platforms. It seems like a change in the gcc optimization is raising a compilation issue on the package:
This issue was discussed previously here: earlephilhower/arduino-pico#792. By setting
CFLAGS += -fno-jump-tablesin the package Makefile the error is fixed.Testing procedure
Compile the LVGL package test with the docker toolchain (possibly for samr21-xpro). It should succeed.
Issues/PRs references
#21701
RIOT-OS/Release-Specs#330