Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support different dhcp client in Linux (#9490)
Some Linux environment like Yocto has no dhclient tools. So add a macro named CHIP_DEVICE_CONFIG_LINUX_DHCPC_CMD to config the command which used to query the IP address from the DHCP server. For example in Yocto cross compile : PLATFORM_CFLAGS='-DCHIP_DEVICE_CONFIG_WIFI_STATION_IF_NAME=\"mlan0\"", "-DCHIP_DEVICE_CONFIG_LINUX_DHCPC_CMD=\"udhcpc -b -i %s & \"' Signed-off-by: Haoran Wang <[email protected]>
- Loading branch information