Skip to content

Commit

Permalink
boards: use the misc-flasher template
Browse files Browse the repository at this point in the history
Change various board.cmake to use the misc-flasher template instead of
manually calling board_set_flasher_ifnset() and
board_finalize_runner_args().

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
  • Loading branch information
fabiobaltieri committed Aug 4, 2023
1 parent 3925f18 commit c63f621
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 21 deletions.
5 changes: 3 additions & 2 deletions boards/arm/beagle_bcf/board.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@

# Download cc2538-bsl.py from https://git.beagleboard.org/beagleconnect/zephyr/cc2538-bsl/-/tags/2.1-bcf

board_set_flasher_ifnset(misc-flasher)
board_finalize_runner_args(misc-flasher $ENV{ZEPHYR_BASE}/boards/arm/beagle_bcf/cc2538-bsl.py -w)
board_runner_args(misc-flasher $ENV{ZEPHYR_BASE}/boards/arm/beagle_bcf/cc2538-bsl.py -w)

include(${ZEPHYR_BASE}/boards/common/misc-flasher.board.cmake)
2 changes: 1 addition & 1 deletion boards/arm/mec172xevb_assy6906/board.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ board_finalize_runner_args(dediprog
)

# This allows a custom script to be used for flashing the SPI chip.
include(${ZEPHYR_BASE}/boards/common/misc.board.cmake)
include(${ZEPHYR_BASE}/boards/common/misc-flasher.board.cmake)
3 changes: 1 addition & 2 deletions boards/riscv/it8xxx2_evb/board.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
set(SUPPORTED_EMU_PLATFORMS renode)
set(RENODE_SCRIPT ${CMAKE_CURRENT_LIST_DIR}/support/it8xxx2_evb.resc)
board_set_flasher_ifnset(misc-flasher)
board_finalize_runner_args(misc-flasher)
include(${ZEPHYR_BASE}/boards/common/misc-flasher.board.cmake)
3 changes: 1 addition & 2 deletions boards/x86/acrn/board.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# SPDX-License-Identifier: Apache-2.0

board_set_flasher_ifnset(misc-flasher)
board_finalize_runner_args(misc-flasher)
include(${ZEPHYR_BASE}/boards/common/misc-flasher.board.cmake)
3 changes: 1 addition & 2 deletions boards/x86/ehl_crb/board.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# SPDX-License-Identifier: Apache-2.0

board_set_flasher_ifnset(misc-flasher)
board_finalize_runner_args(misc-flasher)
include(${ZEPHYR_BASE}/boards/common/misc-flasher.board.cmake)
3 changes: 1 addition & 2 deletions boards/x86/rpl_crb/board.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# SPDX-License-Identifier: Apache-2.0

board_set_flasher_ifnset(misc-flasher)
board_finalize_runner_args(misc-flasher)
include(${ZEPHYR_BASE}/boards/common/misc-flasher.board.cmake)
3 changes: 1 addition & 2 deletions boards/x86/up_squared/board.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# SPDX-License-Identifier: Apache-2.0

board_set_flasher_ifnset(misc-flasher)
board_finalize_runner_args(misc-flasher)
include(${ZEPHYR_BASE}/boards/common/misc-flasher.board.cmake)
3 changes: 1 addition & 2 deletions boards/xtensa/intel_adsp_cavs25/board.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# SPDX-License-Identifier: Apache-2.0

if($ENV{CAVS_OLD_FLASHER})
board_set_flasher_ifnset(misc-flasher)
board_finalize_runner_args(misc-flasher)
include(${ZEPHYR_BASE}/boards/common/misc-flasher.board.cmake)
endif()

board_set_flasher_ifnset(intel_adsp)
Expand Down
3 changes: 1 addition & 2 deletions boards/xtensa/nxp_adsp_imx8/board.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

board_set_flasher_ifnset(misc-flasher)
board_finalize_runner_args(misc-flasher)
include(${ZEPHYR_BASE}/boards/common/misc-flasher.board.cmake)

board_set_rimage_target(imx8)
3 changes: 1 addition & 2 deletions boards/xtensa/nxp_adsp_imx8m/board.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

board_set_flasher_ifnset(misc-flasher)
board_finalize_runner_args(misc-flasher)
include(${ZEPHYR_BASE}/boards/common/misc-flasher.board.cmake)

board_set_rimage_target(imx8m)
3 changes: 1 addition & 2 deletions boards/xtensa/nxp_adsp_imx8x/board.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

board_set_flasher_ifnset(misc-flasher)
board_finalize_runner_args(misc-flasher)
include(${ZEPHYR_BASE}/boards/common/misc-flasher.board.cmake)

board_set_rimage_target(imx8)

0 comments on commit c63f621

Please sign in to comment.