summaryrefslogtreecommitdiff
path: root/common_modules/module_lib/src/txm_queue_create.c
diff options
context:
space:
mode:
authorFrédéric Desbiens <[email protected]>2026-08-15 17:28:33 -0400
committerGitHub <[email protected]>2026-08-15 17:28:33 -0400
commit09c190a71d83b2ba993a1d2e3e2adbf2c710f3a8 (patch)
tree135c94bf6dff9f2cad4616d932821555ee1380ef /common_modules/module_lib/src/txm_queue_create.c
parent1296cf1740e592338ea5203190b8761eb4b80fbf (diff)
Added a CMake target for the Linux sample program (#622)
The CMake build produced libthreadx.a and nothing else, so trying ThreadX on Linux meant using the Makefile beside the port instead. Build the demo the Makefile builds, for the linux port and its SMP counterpart. The target is behind an option that defaults off, so an ordinary build is unchanged and still produces just the library. -DTHREADX_SAMPLE=ON adds it: cmake -S . -B build -DTHREADX_ARCH=linux -DTHREADX_TOOLCHAIN=gnu \ -DTHREADX_SAMPLE=ON cmake --build build --target sample_threadx The include path uses TX_COMMON_DIR rather than naming common or common_smp, since the top level already resolves which of the two applies. Verified by building and running both variants. Non-SMP prints **** ThreadX Linux Demonstration **** (c) 1996-2020 Microsoft Corporation and SMP prints the SMP banner, both with the demo's thread counters advancing. A default configure with no THREADX_SAMPLE has no sample_threadx target and still produces libthreadx.a, so nothing existing moves. Derived from the two example_build files in #404 by Yanfeng Liu, which had the same goal. That change also rewrote the top level's SMP selection, added common_smp/CMakeLists.txt and added ports_smp/linux/gnu/CMakeLists.txt; all three have since arrived on dev by other routes, so only the sample targets were still missing. The include path needed adjusting because the original depended on THREADX_SMP being a string suffix, which it no longer is. Assisted-by: Claude Code (Opus 5) <[email protected]>
Diffstat (limited to 'common_modules/module_lib/src/txm_queue_create.c')
0 files changed, 0 insertions, 0 deletions