Compare commits
4 Commits
1903fb0c9c
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 47e15e1eb9 | |||
| b232f133ac | |||
| 383cdd4887 | |||
| cdac2a9f0d |
+1
-1
@@ -3,7 +3,7 @@
|
||||
url = https://github.com/Minres/threadx.git
|
||||
[submodule "third-party/netxduo"]
|
||||
path = third-party/netxduo
|
||||
url = https://github.com/eclipse-threadx/netxduo.git
|
||||
url = https://github.com/Minres/netxduo.git
|
||||
[submodule "third-party/picolibc"]
|
||||
path = third-party/picolibc
|
||||
url = https://github.com/picolibc/picolibc.git
|
||||
|
||||
+3
-2
@@ -14,6 +14,7 @@ add_subdirectory(third-party/picolibc)
|
||||
#add_subdirectory(picolibc/semihost)
|
||||
target_sources(c PRIVATE ${CMAKE_CURRENT_LIST_DIR}/port/picolibc/port.c)
|
||||
target_link_libraries(c PUBLIC moonlight gcc)
|
||||
target_link_libraries(moonlight PRIVATE c)
|
||||
###############################################################################
|
||||
# Adds threadx
|
||||
set(THREADX_CUSTOM_PORT ${CMAKE_CURRENT_LIST_DIR}/port/threadx)
|
||||
@@ -40,7 +41,7 @@ endif()
|
||||
target_include_directories(netxduo PRIVATE ${CMAKE_CURRENT_LIST_DIR}/port/moonlight)
|
||||
target_link_libraries(netxduo PUBLIC threadx c)
|
||||
###############################################################################
|
||||
project(threadx_demo C ASM)
|
||||
project(threadx_demo C CXX ASM)
|
||||
set(TARGET_MEM "ram" CACHE STRING "memory map to use")
|
||||
option(NX_DEBUG "compile netxduo debug output in" OFF)
|
||||
option(NX_DEBUG_PACKET "compile netxduo debug output for ethernet packets in" OFF)
|
||||
@@ -65,7 +66,7 @@ function(setup_target TARGET)
|
||||
endif()
|
||||
|
||||
if(ST_LIBRARIES)
|
||||
target_link_libraries(${TARGET} PRIVATE ${ST_LIBRARIES})
|
||||
target_link_libraries(${TARGET} PRIVATE -Wl,--start-group ${ST_LIBRARIES} -Wl,--end-group)
|
||||
endif()
|
||||
|
||||
if(ST_TARGET_MEM)
|
||||
|
||||
@@ -81,6 +81,7 @@ function(setup_target TARGET)
|
||||
endif()
|
||||
|
||||
target_link_options(${TARGET} PRIVATE
|
||||
-T ${TARGET_MEM}.lds
|
||||
-Wl,-Map=${CMAKE_BINARY_DIR}/${TARGET}.map)
|
||||
|
||||
add_custom_command(TARGET ${TARGET} POST_BUILD
|
||||
|
||||
@@ -83,6 +83,7 @@ function(setup_target TARGET)
|
||||
endif()
|
||||
|
||||
target_link_options(${TARGET} PRIVATE
|
||||
-T ${TARGET_MEM}.lds
|
||||
-Wl,-Map=${CMAKE_BINARY_DIR}/${TARGET}.map)
|
||||
|
||||
add_custom_command(TARGET ${TARGET} POST_BUILD
|
||||
|
||||
Reference in New Issue
Block a user