drivers/segger: Add a kconfig to override Segger SystemView target sources version
update:
CMakeLists.txt
Make.defs
Kconfig
It allows the same version of SystemView target sources to be used for CMake and Make, to avoid discrepancies in the future.
Signed-off-by: simbit18 <simbit18@gmail.com>
This commit is contained in:
parent
bbdb75b1f7
commit
d7a05dfcc6
3 changed files with 8 additions and 4 deletions
|
|
@ -23,13 +23,11 @@
|
||||||
if(CONFIG_SEGGER_RTT OR CONFIG_SEGGER_SYSVIEW)
|
if(CONFIG_SEGGER_RTT OR CONFIG_SEGGER_SYSVIEW)
|
||||||
if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/SystemView)
|
if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/SystemView)
|
||||||
|
|
||||||
set(SYSVIEW_VERSION 356)
|
|
||||||
|
|
||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
systemview
|
systemview
|
||||||
DOWNLOAD_NAME "SystemView.zip"
|
DOWNLOAD_NAME "SystemView.zip"
|
||||||
DOWNLOAD_DIR ${CMAKE_CURRENT_LIST_DIR}
|
DOWNLOAD_DIR ${CMAKE_CURRENT_LIST_DIR}
|
||||||
URL "https://www.segger.com/downloads/systemview/SystemView_Src_V${SYSVIEW_VERSION}.zip"
|
URL "https://www.segger.com/downloads/systemview/SystemView_Src_V${CONFIG_SEGGER_SYSVIEW_TARGET_SOURCE}.zip"
|
||||||
SOURCE_DIR
|
SOURCE_DIR
|
||||||
${CMAKE_CURRENT_LIST_DIR}/SystemView
|
${CMAKE_CURRENT_LIST_DIR}/SystemView
|
||||||
BINARY_DIR
|
BINARY_DIR
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,12 @@ config SEGGER_RTT
|
||||||
|
|
||||||
if SEGGER_RTT
|
if SEGGER_RTT
|
||||||
|
|
||||||
|
config SEGGER_SYSVIEW_TARGET_SOURCE
|
||||||
|
string "Segger SystemView target sources version"
|
||||||
|
default "356"
|
||||||
|
---help---
|
||||||
|
The Segger SystemView target sources version to use.
|
||||||
|
|
||||||
config SEGGER_RTT_SECTION
|
config SEGGER_RTT_SECTION
|
||||||
string "Segger RTT Control Block Section"
|
string "Segger RTT Control Block Section"
|
||||||
default ""
|
default ""
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ endif
|
||||||
ifneq ($(CONFIG_SEGGER_RTT)$(CONFIG_SEGGER_SYSVIEW),)
|
ifneq ($(CONFIG_SEGGER_RTT)$(CONFIG_SEGGER_SYSVIEW),)
|
||||||
CFLAGS += ${INCDIR_PREFIX}segger$(DELIM)SystemView$(DELIM)SEGGER
|
CFLAGS += ${INCDIR_PREFIX}segger$(DELIM)SystemView$(DELIM)SEGGER
|
||||||
|
|
||||||
SYSVIEW_VERSION ?= 356
|
SYSVIEW_VERSION ?= $(CONFIG_SEGGER_SYSVIEW_TARGET_SOURCE)
|
||||||
SYSVIEW_ZIP = SystemView_Src_V$(SYSVIEW_VERSION).zip
|
SYSVIEW_ZIP = SystemView_Src_V$(SYSVIEW_VERSION).zip
|
||||||
|
|
||||||
# Download and unpack tarball if no git repo found
|
# Download and unpack tarball if no git repo found
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue