diff options
| author | graham sanderson <[email protected]> | 2021-05-31 10:06:07 -0500 |
|---|---|---|
| committer | graham sanderson <[email protected]> | 2021-05-31 10:06:12 -0500 |
| commit | 5d161b79bbf9116d36ecf4b08d24dfae1738235f (patch) | |
| tree | 2f778f47e3154b7ede54f10e564f6b918cd96d19 /examples/device/board_test | |
| parent | 95f2478146ef83d18b52408c0692222bf2a15053 (diff) | |
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
Diffstat (limited to 'examples/device/board_test')
| -rw-r--r-- | examples/device/board_test/CMakeLists.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/device/board_test/CMakeLists.txt b/examples/device/board_test/CMakeLists.txt index 5bb8cb700..8cd5b9ea4 100644 --- a/examples/device/board_test/CMakeLists.txt +++ b/examples/device/board_test/CMakeLists.txt @@ -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 |
