Repository navigation
Conversation
Signed-off-by: Tisya-Gupta <tisyagupta793@gmail.com>
The file is new in this change, so it carries only the Eclipse ThreadX contributors copyright. Assisted-by: Claude Code (Opus 5.5) <noreply@anthropic.com>
|
Thank you for this, @Tisya-Gupta. CI is green across every workflow, and I also built the module-manager kernel and the consumer check locally for Cortex-M0+, M3, M4, M7, M23, M33 and R52 with GCC 14.3; all of them build. I pushed one small commit to your branch: the new A possible follow-up, not needed for this PR: CI covers the GNU M0+, M3, M4 and M7 module ports, and M23, M33 and R52 also build with |
|
Thank you for the review and for fixing the copyright issue!. I'll raise a separate PR later to add the remaining architectures to the CI workflow.... |
The CMake consumer check used a port-specific fault API, which failed on Cortex-A35. Four GNU module ports also used bare asm in paths that a strict C99 build compiles. Use only common Module Manager APIs in the consumer check and spell GNU inline assembly as __asm__. The register access retains its MISRA C:2023 Rule 1.2 and Directive 4.3 deviations. The R52 CLZ comments state the compiler requirement directly. GCC 14 built the kernel and consumer check in strict C99 mode for all ten GNU configurations tested. The four affected module archives had identical instructions and relocations. The Cortex-M4 FetchContent consumer passed 4/4 QEMU tests. Linux UP and SMP kernels built. Assisted-by: Codex (GPT-6.2-Sol) <noreply@openai.com> Signed-off-by: Frédéric Desbiens <frederic.desbiens@eclipse-foundation.org>
This PR adds support for building ThreadX with module manager in CMake. Right now CMake only supports standard and SMP builds, so anyone using FetchContent or add_subdirectory cannot build the module manager kernel without patching the build files.
I added a THREADX_MODULE_MANAGER option that pulls the port sources from ports_module and compiles the common module manager files, defines TXM_MODULE_MANAGER, and exports the module headers like txm_module.h. It also adds a small check target to make sure consumer code compiles, updates the Cortex-M CI workflow, and adds build steps to the README.
Closes #770