Migrates plain ThreadX to the upstream RISC-V ports
Keeps the Moonlight startup objects local to the board. Updates the plain and SMP VP regression harnesses for the new ThreadX revision and replaces generated ISR hooks with direct callbacks.
This commit is contained in:
1 parent
26fd407a1e
commit
d404e17e5a
22 files changed
+148
-2311
No files matched your search
+4
-6
@@ -4,6 +4,7 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake)
|
||||
# we are building embedded, so no shared libs
|
||||
set(BUILD_SHARED_LIBS OFF)
|
||||
include(${CMAKE_TOOLCHAIN_FILE})
|
||||
project(threadx_demo C CXX ASM)
|
||||
###############################################################################
|
||||
add_subdirectory(port/moonlight)
|
||||
###############################################################################
|
||||
@@ -17,9 +18,7 @@ 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)
|
||||
add_subdirectory(third-party/threadx)
|
||||
target_link_libraries(threadx PUBLIC c moonlight)
|
||||
add_subdirectory(port/threadx)
|
||||
#Adds threadx_smp
|
||||
add_subdirectory(port/threadx_smp)
|
||||
target_link_libraries(threadx_smp PUBLIC c moonlight)
|
||||
@@ -41,7 +40,6 @@ endif()
|
||||
target_include_directories(netxduo PRIVATE ${CMAKE_CURRENT_LIST_DIR}/port/moonlight)
|
||||
target_link_libraries(netxduo PUBLIC threadx c)
|
||||
###############################################################################
|
||||
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)
|
||||
@@ -88,6 +86,6 @@ function(setup_target TARGET)
|
||||
)
|
||||
endfunction()
|
||||
|
||||
setup_target(thread_demo LIBRARIES threadx SOURCES src/thread_demo/main.c)
|
||||
setup_target(tcp_demo LIBRARIES netxduo threadx SOURCES src/tcp_demo/main.c)
|
||||
setup_target(thread_demo LIBRARIES moonlight_threadx SOURCES src/thread_demo/main.c)
|
||||
setup_target(tcp_demo LIBRARIES netxduo moonlight_threadx SOURCES src/tcp_demo/main.c)
|
||||
setup_target(smp_demo LIBRARIES threadx_smp SOURCES src/thread_demo/main.c)
|
||||
Reference in new issue
Block a user