From 6c8b0ba9f3bd1825980c91e325ed30b4ecbbc636 Mon Sep 17 00:00:00 2001 From: fangxinyong Date: Wed, 28 Jun 2023 16:05:08 +0800 Subject: [PATCH] libc/netdb: add dependence to net ip config avoid to invalid enabled if no net ip config Signed-off-by: fangxinyong --- boards/arm/nrf53/nrf5340-dk/configs/sdc_nimble_cpunet/defconfig | 1 - libs/libc/netdb/Kconfig | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/arm/nrf53/nrf5340-dk/configs/sdc_nimble_cpunet/defconfig b/boards/arm/nrf53/nrf5340-dk/configs/sdc_nimble_cpunet/defconfig index 2ad5138884..d351b06c94 100644 --- a/boards/arm/nrf53/nrf5340-dk/configs/sdc_nimble_cpunet/defconfig +++ b/boards/arm/nrf53/nrf5340-dk/configs/sdc_nimble_cpunet/defconfig @@ -40,7 +40,6 @@ CONFIG_FILE_STREAM=y CONFIG_INIT_ENTRYPOINT="nimble_main" CONFIG_INTELHEX_BINARY=y CONFIG_LIBC_LONG_LONG=y -CONFIG_LIBC_NETDB=y CONFIG_MM_REGIONS=2 CONFIG_NET=y CONFIG_NETDEV_LATEINIT=y diff --git a/libs/libc/netdb/Kconfig b/libs/libc/netdb/Kconfig index cdd59cd601..840195d13c 100644 --- a/libs/libc/netdb/Kconfig +++ b/libs/libc/netdb/Kconfig @@ -5,6 +5,7 @@ config LIBC_NETDB bool "netdb support" + depends on NET_IPv4 || NET_IPv6 default n menu "NETDB Support"