With this patch, the Zephyr[1] RTOS is supported by OpenOCD. As usual with support for other RTOSes, Zephyr must be compiled with the DEBUG_THREAD_INFO option. This will generate some symbols with information needed in order to build the list of threads. The current implementation is limited to Zephyr running on ARM Cortex-M processors. This is the only ARM variant supported by Zephyr at the moment and is used on most of the officially supported boards. [1] https://www.zephyrproject.org/ Change-Id: I22afdbec91562f3a22cf5b88cd4ea3a7a59ba0b4 Signed-off-by: Evgeniy Didin <didin@synopsys.com> Signed-off-by: Leandro Pereira <leandro.pereira@intel.com> Signed-off-by: Daniel Glöckner <dg@emlix.com> Reviewed-on: http://openocd.zylin.com/4988 Tested-by: jenkins Reviewed-by: Oleksij Rempel <linux@rempel-privat.de> Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
41 lines
948 B
Makefile
41 lines
948 B
Makefile
noinst_LTLIBRARIES += %D%/librtos.la
|
|
%C%_librtos_la_SOURCES = \
|
|
%D%/rtos.c \
|
|
%D%/rtos_standard_stackings.c \
|
|
%D%/rtos_ecos_stackings.c \
|
|
%D%/rtos_chibios_stackings.c \
|
|
%D%/rtos_embkernel_stackings.c \
|
|
%D%/rtos_mqx_stackings.c \
|
|
%D%/rtos_ucos_iii_stackings.c \
|
|
%D%/rtos_riot_stackings.c \
|
|
%D%/FreeRTOS.c \
|
|
%D%/ThreadX.c \
|
|
%D%/eCos.c \
|
|
%D%/linux.c \
|
|
%D%/chibios.c \
|
|
%D%/chromium-ec.c \
|
|
%D%/embKernel.c \
|
|
%D%/mqx.c \
|
|
%D%/uCOS-III.c \
|
|
%D%/nuttx.c \
|
|
%D%/hwthread.c \
|
|
%D%/zephyr.c \
|
|
%D%/riot.c \
|
|
%D%/rtos.h \
|
|
%D%/rtos_standard_stackings.h \
|
|
%D%/rtos_ecos_stackings.h \
|
|
%D%/linux_header.h \
|
|
%D%/rtos_chibios_stackings.h \
|
|
%D%/rtos_embkernel_stackings.h \
|
|
%D%/rtos_mqx_stackings.h \
|
|
%D%/rtos_riot_stackings.h \
|
|
%D%/rtos_ucos_iii_stackings.h \
|
|
%D%/nuttx_header.h
|
|
|
|
%C%_librtos_la_CFLAGS = $(AM_CFLAGS)
|
|
|
|
if IS_MINGW
|
|
# FD_* macros are sloppy with their signs on MinGW32 platform
|
|
%C%_librtos_la_CFLAGS += -Wno-sign-compare
|
|
endif
|