From 9c6a6c4e6837a91b712f66674cfac45947665965 Mon Sep 17 00:00:00 2001 From: Alexey Brodkin Date: Tue, 18 Feb 2020 11:00:56 +0300 Subject: [PATCH] boards: arc: Load Elf with OpenOCD by default Now when ARC development boards are switched to generic OpenOCD runner we need to explicitly instruct the runner to load Elf but not binary image (which is a default for OpenOCD runner). This might be done either manually adding "--use-elf" option to west's command line or that might be added by default fro affected boards, which we do exactly now. Fixes https://github.com/zephyrproject-rtos/zephyr/issues/22888. Signed-off-by: Alexey Brodkin --- boards/arc/em_starterkit/board.cmake | 1 + boards/arc/emsdp/board.cmake | 1 + boards/arc/hsdk/board.cmake | 1 + boards/arc/iotdk/board.cmake | 1 + 4 files changed, 4 insertions(+) diff --git a/boards/arc/em_starterkit/board.cmake b/boards/arc/em_starterkit/board.cmake index cbeaea2e456..3e3df1c01f3 100644 --- a/boards/arc/em_starterkit/board.cmake +++ b/boards/arc/em_starterkit/board.cmake @@ -1,3 +1,4 @@ # SPDX-License-Identifier: Apache-2.0 +board_runner_args(openocd "--use-elf") include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake) diff --git a/boards/arc/emsdp/board.cmake b/boards/arc/emsdp/board.cmake index cbeaea2e456..3e3df1c01f3 100644 --- a/boards/arc/emsdp/board.cmake +++ b/boards/arc/emsdp/board.cmake @@ -1,3 +1,4 @@ # SPDX-License-Identifier: Apache-2.0 +board_runner_args(openocd "--use-elf") include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake) diff --git a/boards/arc/hsdk/board.cmake b/boards/arc/hsdk/board.cmake index cbeaea2e456..3e3df1c01f3 100644 --- a/boards/arc/hsdk/board.cmake +++ b/boards/arc/hsdk/board.cmake @@ -1,3 +1,4 @@ # SPDX-License-Identifier: Apache-2.0 +board_runner_args(openocd "--use-elf") include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake) diff --git a/boards/arc/iotdk/board.cmake b/boards/arc/iotdk/board.cmake index cbeaea2e456..3e3df1c01f3 100644 --- a/boards/arc/iotdk/board.cmake +++ b/boards/arc/iotdk/board.cmake @@ -1,3 +1,4 @@ # SPDX-License-Identifier: Apache-2.0 +board_runner_args(openocd "--use-elf") include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)