Skip to content

Commit

Permalink
pico: consolidate uart1 option file
Browse files Browse the repository at this point in the history
サンプルと同様にビルド時のオプションファイルを集約

Signed-off-by: KantaTamura <[email protected]>
  • Loading branch information
KantaTamura committed Jul 6, 2024
1 parent c12b0cd commit cfcbfbc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 27 deletions.
6 changes: 5 additions & 1 deletion pico/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ cmake_minimum_required(VERSION 3.20.0)

set(BOARD rpi_pico)

# build options
set(OPTION_PATH "${CMAKE_CURRENT_SOURCE_DIR}/options")

## -DCONSOLE=uart1 or usb
if (CONSOLE STREQUAL uart1)
list(APPEND EXTRA_DTC_OVERLAY_FILE "uart1.overlay")
list(APPEND EXTRA_DTC_OVERLAY_FILE "${OPTION_PATH}/uart1.overlay")
endif()

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
Expand Down
26 changes: 0 additions & 26 deletions pico/uart1.overlay

This file was deleted.

0 comments on commit cfcbfbc

Please sign in to comment.