Closed gmarull closed 2 years ago
OPENOCD_SUPPORT was deprecated in favor of DEBUG_THREAD_INFO in Zephyr v2.6. OPENOCD_SUPPORT is no longer part of Zephyr, so remove it. Note that DEBUG_THREAD_INFO was already selected.
Thanks for the report @gmarull! One challenge we face is that some memfault users are on forked releases of Zephyr (for example, an LTS release) where OPENOCD_SUPPORT
is required and still updating the memfault-firmware-sdk. The alert that prints about OPENOCD_SUPPORT being deprecated on newer builds is annoying though! We'll take a look at how to silence the warning and maintain backward compatibility
Maybe you can define a dummy symbol on your side then? @tejlmand can you comment on this one?
Maybe you can define a dummy symbol on your side then? @tejlmand can you comment on this one?
I think adding a dummy symbol on this is in principle wrong.
It could be that in other cases you must for example depends on
a removed or renamed symbol.
Or that you want to do A in one release, but B in another.
So maybe the best is to have release specific Kconfig fragments and then include those based on the Zephyr version in use.
Like, if(Zephyr version <= 2.6.0) ...
.
Let me come up with a small proposal.
I think this is a good use-case, valuable for other projects supporting different Zephyr revisions.
added a proposal here: https://github.com/memfault/memfault-firmware-sdk/pull/26 However, this proposal relies on a feature introduced with Zephyr v2.5.0.
The alert that prints about OPENOCD_SUPPORT being deprecated on newer builds is annoying though!
and such situations are avoided with the proposal in #26
The alert that prints about OPENOCD_SUPPORT being deprecated on newer builds is annoying though!
and such situations are avoided with the proposal in #26
Thanks for the suggestions @tejlmand @gmarull -- I see on Zephyr develop the warning has now been removed completely so this no longer shows. Just for reference, was there a compiler error you were seeing as a result of this toggle or just trying to remove the warning?
We have a mechanism that checks if any referenced Kconfig symbol is present or not. We are currently observing a warning when using Memfault because OPENOCD_SUPPORT
doesn't exist since Zephyr 3.0.
@chrisc11 ping
We have a mechanism that checks if any referenced Kconfig symbol is present or not. We are currently observing a warning when using Memfault because
OPENOCD_SUPPORT
doesn't exist since Zephyr 3.0.
Thanks for the context, we published an update in 0.29.1 to avoid this warning from showing up so marking this as closed
OPENOCD_SUPPORT was deprecated in favor of DEBUG_THREAD_INFO in Zephyr v2.6. OPENOCD_SUPPORT is no longer part of Zephyr, so remove it. Note that DEBUG_THREAD_INFO was already selected.