mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 23:41:56 +00:00
The old way of constructing FLASH_SCRIPT_ENV_VARS was corrupting the values that were passed to the flasher. This new method is the standard way of creating a dictionary/hashmap in CMake and does not suffer from the same problem. This fixes https://github.com/zephyrproject-rtos/zephyr/issues/4844#event-1334599401 Signed-off-by: Sebastian Boe <sebastian.boe@nordicsemi.no>
13 lines
423 B
CMake
13 lines
423 B
CMake
set(FLASH_SCRIPT openocd.sh)
|
|
set(DEBUG_SCRIPT openocd.sh)
|
|
|
|
set(OPENOCD_PRE_CMD "targets 1")
|
|
set(OPENOCD_LOAD_CMD "load_image ${PROJECT_BINARY_DIR}/${KERNEL_BIN_NAME} ${CONFIG_PHYS_LOAD_ADDR}")
|
|
set(OPENOCD_VERIFY_CMD "verify_image ${PROJECT_BINARY_DIR}/${KERNEL_BIN_NAME} ${CONFIG_PHYS_LOAD_ADDR}")
|
|
|
|
set_property(GLOBAL APPEND PROPERTY FLASH_SCRIPT_ENV_VARS
|
|
OPENOCD_PRE_CMD
|
|
OPENOCD_LOAD_CMD
|
|
OPENOCD_VERIFY_CMD
|
|
)
|