设备树支持&多块内存初步支持

This commit is contained in:
zhangzheng
2024-10-07 16:49:32 +08:00
parent 037aaf6adc
commit cc25bcdf65
112 changed files with 8414 additions and 961 deletions

View File

@@ -143,6 +143,16 @@ string(TOUPPER ${CONFIG_CPU_TYPE} cpu_type)
set_target_properties(bootstrap.elf PROPERTIES LINK_FLAGS
"-T ${CMAKE_CURRENT_LIST_DIR}/bsp/${cpu_type}/link.lds ${LINKS_FLAGS} ")
add_custom_target(
boot_link_file_dump ALL
COMMAND
${CMAKE_C_COMPILER}
-include ${CMAKE_SOURCE_DIR}/build/autoconf.h
-E -P -<${CMAKE_CURRENT_LIST_DIR}/bsp/${cpu_type}/link.lds.asm>
${CMAKE_CURRENT_LIST_DIR}/bsp/${cpu_type}/link.lds
)
target_link_libraries(
bootstrap.elf
--whole-archive
@@ -167,4 +177,5 @@ add_custom_target(
${CMAKE_SIZE} bootstrap.elf
)
add_dependencies(bootstrap_dump bootstrap.elf)
add_dependencies(bootstrap.elf boot_bsp)
add_dependencies(bootstrap.elf boot_bsp)
add_dependencies(bootstrap.elf boot_link_file_dump)