From 8478376a86c6555f4df2f130f9d8bd935ec211e5 Mon Sep 17 00:00:00 2001 From: Bryan Hundven Date: Sun, 22 Nov 2015 22:18:08 -0800 Subject: uClibc: Add kconfig option to enable IPv6 support This commit adds a kconfig option to enable IPv6 support. Signed-off-by: Bryan Hundven diff --git a/config/libc/uClibc.in.2 b/config/libc/uClibc.in.2 index 1e33db4..3a5fe34 100644 --- a/config/libc/uClibc.in.2 +++ b/config/libc/uClibc.in.2 @@ -59,6 +59,12 @@ config LIBC_UCLIBC_LOCALES_PREGEN_DATA If so, please report the issue, so we can default this to off if too many people complain. +config LIBC_UCLIBC_IPV6 + bool + prompt "Add support for IPv6" + help + Say y if you want uClibc to support IPv6. + config LIBC_UCLIBC_WCHAR bool prompt "Add support for WCHAR" diff --git a/scripts/build/libc/uClibc.sh b/scripts/build/libc/uClibc.sh index 1868a79..f5b871c 100644 --- a/scripts/build/libc/uClibc.sh +++ b/scripts/build/libc/uClibc.sh @@ -427,6 +427,13 @@ manage_uClibc_config() { CT_KconfigDisableOption "UCLIBC_HAS_WCHAR" "${dst}" fi + # IPv6 support + if [ "${CT_LIBC_UCLIBC_IPV6}" = "y" ]; then + CT_KconfigEnableOption "UCLIBC_HAS_IPV6" "${dst}" + else + CT_KconfigDisableOption "UCLIBC_HAS_IPV6" "${dst}" + fi + # Force on options needed for C++ if we'll be making a C++ compiler. # I'm not sure locales are a requirement for doing C++... Are they? if [ "${CT_CC_LANG_CXX}" = "y" ]; then -- cgit v0.10.2-6-g49f6