1 Star 2 Fork 0

羽名/aagrv2k_sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
rv32.cmake 1.16 KB
一键复制 编辑 原始数据 按行查看 历史
羽名 提交于 2024-05-22 18:33 . 添加开发板的demo
set(CMAKE_SYSTEM_NAME Generic)
# which compilers to use for C and C++
# GCC编译器可选
# riscv-none-embed-gcc
# riscv32-esp-elf-gcc
# riscv64-unknown-elf-gcc
set(CMAKE_C_COMPILER riscv-none-embed-gcc)
set(CMAKE_CXX_COMPILER riscv-none-embed-g++)
set(CMAKE_OBJCOPY riscv-none-embed-objcopy)
set(CMAKE_GDB riscv-none-embed-gdb)
set(LINKER_SCRIPT "${CMAKE_CURRENT_LIST_DIR}/misc/AgRV2K_SRAM.ld")
set(MAP_FILE "ag32rv2k.map")
set(CMAKE_C_FLAGS "-march=rv32imac -ffunction-sections")
set(CMAKE_EXE_LINKER_FLAGS "-ffunction-sections -T ${LINKER_SCRIPT} -Xlinker --gc-sections -Wl,-Map,${MAP_FILE} --specs=nano.specs --specs=nosys.specs")
set(CMAKE_EXE_LINKER_FLAGS_INIT "-ffunction-sections -Xlinker --gc-sections --specs=nano.specs --specs=nosys.specs")
# where is the target environment located
# set(CMAKE_FIND_ROOT_PATH /usr/i586-mingw32msvc
# /home/alex/mingw-install)
# adjust the default behavior of the FIND_XXX() commands:
# search programs in the host environment
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# search headers and libraries in the target environment
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/uyami/aagrv2k_sdk.git
git@gitee.com:uyami/aagrv2k_sdk.git
uyami
aagrv2k_sdk
aagrv2k_sdk
master

搜索帮助