mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-09 06:18:52 +00:00
[sync] sync from internal repo
* use nuttx libc, disable system libc * use tlsf as default * update lhal flash driver * add example readme * add flash ini for new flash tool * add fw header for new flash tool
This commit is contained in:
parent
89592fc9a3
commit
356f258e83
554 changed files with 79150 additions and 46596 deletions
28
cmake/gen_c_cpp_properties_json.cmake
Normal file
28
cmake/gen_c_cpp_properties_json.cmake
Normal file
|
@ -0,0 +1,28 @@
|
|||
cmake_minimum_required(VERSION 3.19.3)
|
||||
|
||||
get_target_property(C_CPP_PROPERTIES_INCLUDE sdk_intf_lib INTERFACE_INCLUDE_DIRECTORIES)
|
||||
get_target_property(C_CPP_PROPERTIES_DEFINES sdk_intf_lib INTERFACE_COMPILE_DEFINITIONS)
|
||||
list(SORT C_CPP_PROPERTIES_INCLUDE)
|
||||
list(SORT C_CPP_PROPERTIES_DEFINES)
|
||||
|
||||
foreach(item ${C_CPP_PROPERTIES_INCLUDE})
|
||||
string(APPEND C_CPP_PROPERTIES_INCLUDE_IN "\n \"${item}\",")
|
||||
endforeach()
|
||||
|
||||
foreach(item ${C_CPP_PROPERTIES_DEFINES})
|
||||
string(APPEND C_CPP_PROPERTIES_DEFINES_IN "\n \"${item}\",")
|
||||
endforeach()
|
||||
|
||||
get_filename_component(SYS_INCLUDE_PATH ${CMAKE_C_COMPILER} DIRECTORY)
|
||||
string(APPEND C_CPP_PROPERTIES_INCLUDE_IN "\n \"${SYS_INCLUDE_PATH}/../riscv64-unknown-elf/include\",")
|
||||
|
||||
get_filename_component(BL_SDK_CMAKE_DIR ${BL_SDK_BASE}/cmake/extension.cmake ABSOLUTE)
|
||||
get_filename_component(BL_SDK_CMAKE_DIR ${BL_SDK_CMAKE_DIR} DIRECTORY)
|
||||
|
||||
if(VSCODE_DIR)
|
||||
set(VSCODE_DIR_ ${VSCODE_DIR}/.vscode)
|
||||
else()
|
||||
set(VSCODE_DIR_ ${BL_SDK_CMAKE_DIR}/../.vscode)
|
||||
endif()
|
||||
|
||||
configure_file(${BL_SDK_BASE}/tools/vscode/c_cpp_properties.json ${VSCODE_DIR_}/c_cpp_properties.json)
|
Loading…
Add table
Add a link
Reference in a new issue