Skip to content

Fixed no-chain CMake builds for NetX Duo - #498

Open
fdesbiens wants to merge 1 commit into
eclipse-threadx:devfrom
fdesbiens:fix/no-chain-cmake-components
Open

fdesbiens wants to merge 1 commit into
eclipse-threadx:devfrom
fdesbiens:fix/no-chain-cmake-components

Conversation

@fdesbiens

Copy link
Copy Markdown
Contributor

Fixes #475

Defining NX_DISABLE_PACKET_CHAIN in nx_user.h removes packet-link fields, but CMake still compiled MQTT, WebSocket, RTP, and NetX Secure.

CMake now detects the setting, disables fragmentation, and excludes components that require packet chaining. Applications can also select the configuration with NXD_DISABLE_PACKET_CHAIN=ON, omit all add-ons, or omit NetX Secure. The no-chain regression builds use the same source selection.

Cortex-M7 GNU 14.2.1/Ninja builds passed with the macro in nx_user.h and with the CMake option: 793/793 build steps and zero warnings in each. GCC 14.3 host builds passed for the default, no-chain, and add-ons-disabled configurations. Not run on hardware.

Fixes eclipse-threadx#475

Defining NX_DISABLE_PACKET_CHAIN in nx_user.h removes packet-link fields, but
CMake still compiled MQTT, WebSocket, RTP, and NetX Secure.

CMake now detects the setting, disables fragmentation, and excludes components
that require packet chaining. It also provides options to select this build or
omit all add-ons and NetX Secure. The no-chain tests use the same source set.

Cortex-M7 GNU 14.2.1/Ninja builds passed with the macro in nx_user.h and with
the CMake option: 793/793 build steps and zero warnings in each. GCC 14.3 host
builds passed for the default, no-chain, and add-ons-disabled configurations.

Assisted-by: Codex (GPT-6) <noreply@openai.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant