Files
ThreadX4TGFS/port/threadx/CMakeLists.txt
T
alex d404e17e5a 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.
2026-11-26 18:56:36 +01:00

12 lines
468 B
CMake

set(TX_USER_FILE ${CMAKE_CURRENT_LIST_DIR}/inc/tx_user.h)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/../../third-party/threadx upstream)
target_link_libraries(threadx PUBLIC c moonlight)
# Link these objects directly into each executable so the board initialization
# takes precedence over the upstream weak default.
add_library(moonlight_threadx OBJECT
src/trap_entry.S
src/tx_initialize_low_level.c
)
target_link_libraries(moonlight_threadx PUBLIC threadx)