Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(lvgl_port): Update LVGL port for using button v4 (breaking change!) #500

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

espzav
Copy link
Collaborator

@espzav espzav commented Feb 3, 2025

ESP-BSP Pull Request checklist

  • Version of modified component bumped
  • CI passing

Change description

  • Updated LVGL port for using it with button component v4

Closes #494

Copy link

github-actions bot commented Feb 3, 2025

Test Results

 17 files  17 suites   5m 52s ⏱️
 68 tests 24 ✅  44 💤 0 ❌
408 runs  24 ✅ 384 💤 0 ❌

Results for commit d3e75e7.

♻️ This comment has been updated with latest results.

@espzav espzav force-pushed the feat/lvgl_port_button_v4 branch 3 times, most recently from caf1058 to 39d97c8 Compare February 3, 2025 13:53
@espzav espzav force-pushed the feat/lvgl_port_button_v4 branch 2 times, most recently from a0f4228 to 232b4a8 Compare February 4, 2025 13:00
@espzav espzav requested a review from tore-espressif February 4, 2025 14:30
@espzav
Copy link
Collaborator Author

espzav commented Feb 4, 2025

@tore-espressif PTAL

#Get component button major version
string(REPLACE "." ";" BUTTON_VERSION_LIST ${button_ver})
list(GET BUTTON_VERSION_LIST 0 button_ver_major)
target_compile_definitions(lvgl_port_lib PUBLIC "-DCOMPONENT_BUTTON_VERSION_MAJOR=${button_ver_major}")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version define should come from the button component

https://github.com/espressif/esp-iot-solution/blob/4730d91db70df7e6e0a3191d725ab1c5f98ff9ce/tools/cmake_utilities/package_manager.cmake#L44

So it should be BUTTON_VER_MAJOR. Could you please try it? It would help us avoid any convoluted CMake logic

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tore-espressif What do you think about backward compatibility of BSP? Now, there is no breaking change of API, but it is not compatible with old button component. Should it be compatible with both?
Other BSPs will be updated in next PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And CMake was changed and there was used BUTTON_VER_MAJOR. It is working. Thank you @tore-espressif :-)

@espzav espzav force-pushed the feat/lvgl_port_button_v4 branch from 232b4a8 to 3d1f29f Compare February 6, 2025 13:26
@espzav espzav force-pushed the feat/lvgl_port_button_v4 branch from 3d1f29f to d3e75e7 Compare February 6, 2025 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

esp_lvgl_port broken by espressif/button v4.0.0 dependency (BSP-628)
3 participants