Skip to content

Commit 1a7bc06

Browse files
MaureenHelmnashif
authored andcommitted
debug: Remove deprecated CONFIG_OPENOCD_SUPPORT
CONFIG_OPENOCD_SUPPORT was deprecated in favor of CONFIG_DEBUG_THREAD_INFO in Zephyr v2.6.0 and can now be removed. Signed-off-by: Maureen Helm <[email protected]>
1 parent 7bbf818 commit 1a7bc06

File tree

5 files changed

+5
-22
lines changed

5 files changed

+5
-22
lines changed

doc/releases/release-notes-3.0.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ Removed APIs in this release:
7575
is changed so that it more closely mimics the real UART controller,
7676
option is no longer necessary.
7777

78+
* Removed Kconfig option ``CONFIG_OPENOCD_SUPPORT`` in favor of
79+
``CONFIG_DEBUG_THREAD_INFO``.
80+
7881
Deprecated in this release:
7982

8083
* :c:macro:`USBD_CFG_DATA_DEFINE` is deprecated in favor of utilizing

scripts/west_commands/runners/core.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -552,11 +552,9 @@ def build_conf(self) -> BuildConfiguration:
552552
@property
553553
def thread_info_enabled(self) -> bool:
554554
'''Returns True if self.build_conf has
555-
CONFIG_DEBUG_THREAD_INFO enabled. This supports the
556-
CONFIG_OPENOCD_SUPPORT fallback as well for now.
555+
CONFIG_DEBUG_THREAD_INFO enabled.
557556
'''
558-
return (self.build_conf.getboolean('CONFIG_DEBUG_THREAD_INFO') or
559-
self.build_conf.getboolean('CONFIG_OPENOCD_SUPPORT'))
557+
return self.build_conf.getboolean('CONFIG_DEBUG_THREAD_INFO')
560558

561559
@classmethod
562560
def dev_id_help(cls) -> str:

subsys/debug/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
# SPDX-License-Identifier: Apache-2.0
22

3-
if(CONFIG_OPENOCD_SUPPORT)
4-
message(WARNING "CONFIG_OPENOCD_SUPPORT is deprecated
5-
Please use DEBUG_THREAD_INFO instead."
6-
)
7-
endif()
8-
93
zephyr_sources_ifdef(
104
CONFIG_DEBUG_THREAD_INFO
115
thread_info.c

subsys/debug/Kconfig

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -322,12 +322,6 @@ config EXCEPTION_STACK_TRACE
322322
#
323323
# Miscellaneous debugging options
324324
#
325-
config OPENOCD_SUPPORT
326-
bool "OpenOCD support (DEPRECATED)"
327-
select DEBUG_THREAD_INFO
328-
help
329-
This is deprecated, please use DEBUG_THREAD_INFO instead.
330-
331325
config DEBUG_THREAD_INFO
332326
bool "Thread awareness support"
333327
depends on !SMP

subsys/debug/thread_info.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,9 @@ size_t _kernel_thread_info_offsets[] = {
122122
* checked with _kernel_thread_info_num_offsets.
123123
*/
124124
};
125-
extern size_t __attribute__((alias("_kernel_thread_info_offsets")))
126-
_kernel_openocd_offsets;
127125

128126
__attribute__((used, section(".dbg_thread_info")))
129127
size_t _kernel_thread_info_num_offsets = ARRAY_SIZE(_kernel_thread_info_offsets);
130-
extern size_t __attribute__((alias("_kernel_thread_info_num_offsets")))
131-
_kernel_openocd_num_offsets;
132128

133129
__attribute__((used, section(".dbg_thread_info")))
134130
uint8_t _kernel_thread_info_size_t_size = (uint8_t)sizeof(size_t);
135-
extern uint8_t __attribute__((alias("_kernel_thread_info_size_t_size")))
136-
_kernel_openocd_size_t_size;

0 commit comments

Comments
 (0)