Fix up build_family style builds:

- added back pre-existing board directories which now just select PICO_BOARD
 - added boards/pico_sdk which just uses the pre-existing PICO_BOARD setting
 - fixed rp2040/family.cmake to include the magic string "CFG_TUSB_MCU=OPT_MCU_RP2040" expected by build_family.py
This commit is contained in:
graham sanderson
2021-05-31 10:06:07 -05:00
parent 95f2478146
commit 5d161b79bb
10 changed files with 23 additions and 14 deletions

View File

@@ -17,12 +17,14 @@ if(FAMILY MATCHES "^esp32s[2-3]")
else()
# Family chooses name based on passed name and vars (e.g. <BOARD>-<DIR_NAME>)
get_filename_component(DIR_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
family_get_project_name(PROJECT "${DIR_NAME}")
# gets PROJECT name for the example (e.g. <BOARD>-<DIR_NAME>)
family_get_project_name(PROJECT ${CMAKE_CURRENT_LIST_DIR})
project(${PROJECT})
# Checks this example is valid for the family and initializes the project
family_initialize_project(${PROJECT} ${CMAKE_CURRENT_LIST_DIR})
add_executable(${PROJECT})
# Example source