mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-10 21:44:24 +00:00
* add name field to usbd_class_driver_t * ci: use set matrix py script * add riscv32 and cmake support for ch32v307, fomu, gd32vf103 * update build_cmake.py to take --family --board --toolchain * separate hil test to its own workflow * move esp32 board into separated hil json * add make build to ci * remov build_make.py * build.py support esp32 board * setup toolchain support esp-idf * fix missing click * merge family in matrix build to reduce jobs * skip cifuzz since it still has issue with get_deps and click
22 lines
729 B
CMake
22 lines
729 B
CMake
if (NOT DEFINED CMAKE_C_COMPILER)
|
|
set(CMAKE_C_COMPILER "riscv-none-embed-gcc")
|
|
endif ()
|
|
|
|
if (NOT DEFINED CMAKE_CXX_COMPILER)
|
|
set(CMAKE_CXX_COMPILER "riscv-none-embed-g++")
|
|
endif ()
|
|
|
|
set(CMAKE_ASM_COMPILER ${CMAKE_C_COMPILER})
|
|
set(CMAKE_SIZE "riscv-none-embed-size" CACHE FILEPATH "")
|
|
set(CMAKE_OBJCOPY "riscv-none-embed-objcopy" CACHE FILEPATH "")
|
|
set(CMAKE_OBJDUMP "riscv-none-embed-objdump" CACHE FILEPATH "")
|
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/common.cmake)
|
|
|
|
get_property(IS_IN_TRY_COMPILE GLOBAL PROPERTY IN_TRY_COMPILE)
|
|
if (IS_IN_TRY_COMPILE)
|
|
set(CMAKE_C_LINK_FLAGS "${CMAKE_C_LINK_FLAGS} -nostdlib")
|
|
set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -nostdlib")
|
|
cmake_print_variables(CMAKE_C_LINK_FLAGS)
|
|
endif ()
|