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.
12 lines
468 B
CMake
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)
|