- 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
14 lines
324 B
CMake
14 lines
324 B
CMake
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)
|
|
|
|
target_sources(app PRIVATE
|
|
src/main.c
|
|
src/cdc_handler.c
|
|
src/pfet_control.c
|
|
src/gs_usb_can.c
|
|
) |