尝试修复其他芯片的编译

This commit is contained in:
zhangzheng
2024-04-10 15:19:02 +00:00
parent 1cca0dc8de
commit 780d4db78d
22 changed files with 114 additions and 33 deletions

View File

@@ -2,9 +2,11 @@ cmake_minimum_required(VERSION 3.13)
file(GLOB_RECURSE deps *.c *.S)
if (${CONFIG_ELF_LAUNCH} STREQUAL "y")
list(REMOVE_ITEM deps ${CMAKE_SOURCE_DIR}/mkrtos_user/lib/sys_util/src/u_app_loader.c)
list(APPEND deps ${CMAKE_SOURCE_DIR}/mkrtos_user/lib/sys_util/src/u_elf_loader.c)
if (DEFINED CONFIG_ELF_LAUNCH)
if (CONFIG_ELF_LAUNCH STREQUAL "y")
list(REMOVE_ITEM deps ${CMAKE_SOURCE_DIR}/mkrtos_user/lib/sys_util/src/u_app_loader.c)
list(APPEND deps ${CMAKE_SOURCE_DIR}/mkrtos_user/lib/sys_util/src/u_elf_loader.c)
endif()
endif()
add_library(