Skip to content

boards/lm3s6965-ek: enable NET_SOCKOPTS in qemu-protected - #21335

Merged
casaroli merged 1 commit into
apache:masterfrom
Swatantra-66:fix/qemu-protected-sockopts
Nov 1, 2026
Merged

casaroli merged 1 commit into
apache:masterfrom
Swatantra-66:fix/qemu-protected-sockopts

Conversation

@Swatantra-66

Copy link
Copy Markdown
Contributor

Summary

In lm3s6965-ek:qemu-protected, commit d9d9d3f dropped the DNS client (CONFIG_NETDB_DNSCLIENT) to recover kernel flash headroom. However, the DNS client was previously the sole selector of CONFIG_NET_SOCKOPTS for this board configuration.

Because CONFIG_NETUTILS_DHCPC selects CONFIG_NET_BINDTODEVICE, the absence of CONFIG_NET_SOCKOPTS caused s_boundto to be omitted from struct socket_conn_s (include/nuttx/net/net.h), breaking compilation in net/icmp/icmp_sendmsg.c, tcp_finddev.c, and udp_finddev.c during the CI arm-ti build.

Related to apache/nuttx-apps#3954. While apache/nuttx-apps#3954 attempted to select NET_SOCKOPTS from DHCPC, that caused defconfig normalization failures on boards where CONFIG_NET_SOCKOPTS=y was already explicitly set (such as nucleo-h563zi:netnsh).

This patch explicitly re-enables CONFIG_NET_SOCKOPTS=y in boards/arm/tiva/lm3s6965-ek/configs/qemu-protected/defconfig. This solves the issue cleanly at the source where CONFIG_NETDB_DNSCLIENT was removed, provides the required s_boundto field, and avoids any normalization side effects across other architectures.

Impact

  • Architecture: ARM Cortex-M3 (TI Stellaris / Tiva lm3s6965-ek).
  • Configuration: lm3s6965-ek:qemu-protected.
  • User Impact: Resolves missing s_boundto member compilation error when building DHCP client with NET_BINDTODEVICE. Adds negligible flash footprint (~80 bytes), well within the ~2.6 KiB headroom recovered in PR boards/lm3s6965-ek: drop dns client and telnetd from qemu-protected #21320.

Testing

  • Inspected defconfig alignment with tools/savedefconfig.
  • Verified CONFIG_NET_SOCKOPTS=y placement in alphabetical order.

In lm3s6965-ek:qemu-protected, commit d9d9d3f dropped the DNS client
(CONFIG_NETDB_DNSCLIENT) to recover kernel flash headroom.  However,
the DNS client was previously the sole selector of CONFIG_NET_SOCKOPTS
for this target.

Because CONFIG_NETUTILS_DHCPC selects CONFIG_NET_BINDTODEVICE, the
absence of CONFIG_NET_SOCKOPTS caused s_boundto to be omitted from
struct socket_conn_s (include/nuttx/net/net.h), breaking compilation in
net/icmp/icmp_sendmsg.c, tcp_finddev.c, and udp_finddev.c during the
CI arm-ti build.

Re-enable CONFIG_NET_SOCKOPTS=y explicitly in qemu-protected defconfig.
This provides the required s_boundto definition, resolves the arm-ti CI
failure, and avoids defconfig normalization side-effects across other
architectures.

Signed-off-by: Swatantra Yadav <[email protected]>
Assisted-by: Google Gemini
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

MemBrowse Memory Report · Explore what changed →

No memory changes detected for:


Catch memory regressions in CI with MemBrowse. Free for open source.

@casaroli
casaroli merged commit 9d60832 into apache:master Nov 1, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Board: arm Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants