Repository navigation
Conversation
NETUTILS_DHCPC selects NET_BINDTODEVICE, which depends on NET_SOCKOPTS.
A configuration that enables the DHCP client without another option
that selects NET_SOCKOPTS fails in olddefconfig ("NET_BINDTODEVICE has
direct dependencies NET_SOCKOPTS && NET with value n"). Since
apache/nuttx#21320 removed the DNS client from
lm3s6965-ek:qemu-protected, that configuration is one of them.
Select NET_SOCKOPTS under the same condition, as webclient does.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <[email protected]>
|
@acassis I hope this should fix master CI |
|
@casaroli arm-stm32-other failed because selecting NET_SOCKOPTS here makes savedefconfig drop CONFIG_NET_SOCKOPTS=y from nucleo-h563zi:netnsh as redundant (causing the unstaged diff in nuttx). The missing symbol was only hitting lm3s6965-ek:qemu-protected after #21320 dropped DNS client. |
|
apache/nuttx#21335 fixes the lm3s6965-ek:qemu-protected build in the board defconfig; this Kconfig change makes savedefconfig drop CONFIG_NET_SOCKOPTS=y from other boards (nucleo-h563zi:netnsh). |
| default n | ||
| depends on NET_UDP | ||
| select NET_SOCKOPTS if !NET_UDP_NO_STACK | ||
| select NET_BINDTODEVICE if !NET_UDP_NO_STACK |
There was a problem hiding this comment.
can we change to depends on
Summary
NETUTILS_DHCPCselectsNET_BINDTODEVICE, which depends onNET_SOCKOPTS. A configuration that enables the DHCP client and no other option that selectsNET_SOCKOPTSfails inolddefconfig:Since apache/nuttx#21320 removed the DNS client (which selected
NET_SOCKOPTS) fromlm3s6965-ek:qemu-protected, that configuration fails this way on NuttX master, so the arm-ti CI job fails. This PR makesNETUTILS_DHCPCselectNET_SOCKOPTSunder the same condition asNET_BINDTODEVICE, asnetutils/webclientdoes.Impact
Kconfig only. A configuration that builds today already has
NET_SOCKOPTSwhen it has the DHCP client (orolddefconfigfails), so no other configuration changes.Testing
NuttX master aa5b743e1e9, nuttx-apps master d40132f, GCC 13.2,
lm3s6965-ek:qemu-protected:configure.sholddefconfig(above)CONFIG_NET_SOCKOPTS=y,CONFIG_NET_BINDTODEVICE=ymake savedefconfigtools/checkpatch.sh -c -u -m -gpasses.