mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
2f0cb8b5f1
add support of new esp32s3 target and the board update the roles.mk wrapper to allow dfu flashing of espressif chip update examples to allow compilation for esp32s3_addax_1 board once the code is tested the PR to original tinyusb repo will be submitted
19 lines
505 B
CMake
19 lines
505 B
CMake
cmake_minimum_required(VERSION 3.5)
|
|
|
|
# use BOARD-Directory name for project id
|
|
get_filename_component(PROJECT ${CMAKE_CURRENT_SOURCE_DIR} NAME)
|
|
set(PROJECT ${BOARD}-${PROJECT})
|
|
|
|
# TOP is absolute path to root directory of TinyUSB git repo
|
|
set(TOP "../../..")
|
|
get_filename_component(TOP "${TOP}" REALPATH)
|
|
|
|
# Check for -DFAMILY=
|
|
if(FAMILY STREQUAL "esp32sx")
|
|
include(${TOP}/hw/bsp/${FAMILY}/family.cmake)
|
|
project(${PROJECT})
|
|
|
|
else()
|
|
message(FATAL_ERROR "Invalid FAMILY specified: ${FAMILY}")
|
|
endif()
|