Rename board from ews_board to ews and fix board discovery
- Rename board directory: ews_board -> ews - Rename board files: ews_board.dts -> ews.dts, ews_board_defconfig -> ews_defconfig - Update board identifier and compatible strings - Add board.cmake for runner configuration - Set BOARD_ROOT in CMakeLists.txt to enable custom board discovery - Update all documentation with new board name: west build -b ews
This commit is contained in:
parent
3d328fb7a2
commit
9fd882889f
|
|
@ -1,5 +1,8 @@
|
|||
cmake_minimum_required(VERSION 3.20.0)
|
||||
|
||||
# Set board root to find our custom board
|
||||
set(BOARD_ROOT ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||
project(ews_canfd_cdc_composite)
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ A Zephyr-based firmware for the EWS board that provides:
|
|||
## Building
|
||||
|
||||
```bash
|
||||
west build -b ews_board
|
||||
west build -b ews
|
||||
```
|
||||
|
||||
## CDC Protocol
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if(CONFIG_BOARD_EWS)
|
||||
board_runner_args(jlink "--device=STM32G0B1KB" "--speed=4000")
|
||||
board_runner_args(pyocd "--target=stm32g0b1kbux")
|
||||
|
||||
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
|
||||
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
|
||||
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
|
||||
endif()
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
identifier: ews_board
|
||||
identifier: ews
|
||||
name: EWS Board
|
||||
type: mcu
|
||||
arch: arm
|
||||
|
|
@ -43,5 +43,5 @@ The board supports programming via:
|
|||
## Building Firmware
|
||||
|
||||
```bash
|
||||
west build -b ews_board
|
||||
west build -b ews
|
||||
```
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
/ {
|
||||
model = "EWS Board STM32G0B1KBU6";
|
||||
compatible = "ews,ews-board";
|
||||
compatible = "ews,ews";
|
||||
|
||||
chosen {
|
||||
zephyr,console = &cdc_acm_uart0;
|
||||
Loading…
Reference in New Issue