mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-29 10:20:57 +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
20 lines
441 B
CMake
20 lines
441 B
CMake
if (TOOLCHAIN STREQUAL "gcc")
|
|
set(TOOLCHAIN_COMMON_FLAGS
|
|
-march=rv32i
|
|
-mabi=ilp32
|
|
)
|
|
set(FREERTOS_PORT GCC_RISC_V CACHE INTERNAL "")
|
|
|
|
elseif (TOOLCHAIN STREQUAL "clang")
|
|
set(TOOLCHAIN_COMMON_FLAGS
|
|
-march=rv32i
|
|
-mabi=ilp32
|
|
)
|
|
set(FREERTOS_PORT GCC_RISC_V CACHE INTERNAL "")
|
|
|
|
elseif (TOOLCHAIN STREQUAL "iar")
|
|
message(FATAL_ERROR "IAR not supported")
|
|
set(FREERTOS_PORT IAR_RISC_V CACHE INTERNAL "")
|
|
|
|
endif ()
|