Repository navigation
fix(kconfig) add LV_ATTRIBUTE_MEM_ALIGN, LV_ATTRIBUTE_LARGE_CONST and LV_SYSMON_GET_IDLE configs - #7131
Conversation
liamHowatt
left a comment
There was a problem hiding this comment.
Hmm the only risk is that not all compilers support __attribute__ directives. That being said, in the real world many projects using Kconfig will be building with a compiler that supports it.
|
It's really not a platform independent portable change. 🙁 |
|
There are also another configs which are missing from Kconfig: |
Ok, then I will change the default value to an empty string, and move the current default to help Shall we also add the configs that @nicusorcitu mentioned above? |
Yes, please. |
…LV_SYSMON_GET_IDLE configs Signed-off-by: Cosmin-Daniel Radu <[email protected]>
02382dd to
0b87338
Compare
|
Great! Thank you! |
|
@kisvegabor this last-minute change broke v9.2.1 on ESPs ... #7154 :( |
|
@kisvegabor as long as those configs broke the ESP build, and the fact that they are compiler dependent, I would suggest adding a E.g. /**
* @file lv_compiler.h
* Configuration file for LVGL based on the compiler
*/
#ifndef LV_COMPILER_H
#define LV_COMPILER_H
#ifdef __GNUC__
#define CONFIG_LV_ATTRIBUTE_MEM_ALIGN __attribute__((aligned(LV_ATTRIBUTE_MEM_ALIGN_SIZE)))
#define LV_ATTRIBUTE_LARGE_CONST __attribute__((section("DataQuickAccess")))
#else
#define CONFIG_LV_ATTRIBUTE_MEM_ALIGN
#define LV_ATTRIBUTE_LARGE_CONST
#endif
#endif /*LV_COMPILER_H*/But for the moment, for the 9.2.1 release, I believe that the fastest fix would be to revert that PR |
|
Ahhhh! Damn it. I wonder how it passed through as we have an ESP-IDF CI test running for MicroPython. Anyway, it makes sense that these I think we should revert this commit and release v9.2.2 ASAP. I've pushed the revert to the |
In our case, it worked with west. If the default value was needed, instead of "", the config was empty (the default value was interpreted as no character). |
…d LV_SYSMON_GET_IDLE configs (lvgl#7131) Signed-off-by: Cosmin-Daniel Radu <[email protected]>
…nt_code_get_name * origin/release/v9.2: (77 commits) fix docs exemple chore(cmsis-pack): update the cmsis-pack for the v9.2.2 patch (lvgl#7177) docs(CHANGLOG): add link to v9.2.1 changelog chore: update versions and CHANGELOG fix(changelog): fix the version number fix(nuttx): fix assert when release LCD draw buffer (lvgl#7159) Revert "fix(kconfig): add LV_ATTRIBUTE_MEM_ALIGN, LV_ATTRIBUTE_LARGE_CONST and LV_SYSMON_GET_IDLE configs (lvgl#7131)" docs(CHANGELOG): update the CHANGELOG fix(kconfig): add LV_ATTRIBUTE_MEM_ALIGN, LV_ATTRIBUTE_LARGE_CONST and LV_SYSMON_GET_IDLE configs (lvgl#7131) fix(sysmon) disable all performance banners from screen with serial redirect Revert "fix(freertos): use xSemaphoreTakeRecursive (lvgl#6803)" fix(display): remove lv_display_set_buffers_with_stride function (lvgl#7087) chore(cmsis-pack): create cmsis-pack for v9.2.1 patch (lvgl#7092) fix(pxp): sync rotation direction with SW render (lvgl#7063) fix(vglite) triangle gradient areas fix fix(conf) Remove empty line to make comment more condens. docs(PXP): update PXP for rotation only feature fix(pxp) invalidate cache for the whole frame buffer fix(vglite) invalidate cache for the whole frame buffer fix(vglite) Small cleanup. ...
add LV_ATTRIBUTE_MEM_ALIGN default value
Notes
lv_conf_template.hrun lv_conf_internal_gen.py and update Kconfig.scripts/code-format.py(astyle v3.4.12needs to installed by runningcd scripts; ./install_astyle.sh) and follow the Code Conventions.