From 89fdeb9af2677169bea5bde8a2ce4d2411b35697 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Sat, 10 Feb 2018 12:11:14 -0800 Subject: [PATCH 1/2] uClibc-ng retired RPC support as of 1.0.23 ... make the corresponding option conditional. Signed-off-by: Alexey Neyman --- config/libc/uClibc.in | 5 +++++ packages/uClibc/package.desc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/config/libc/uClibc.in b/config/libc/uClibc.in index 174dfdc4..ba1178c7 100644 --- a/config/libc/uClibc.in +++ b/config/libc/uClibc.in @@ -21,6 +21,10 @@ comment "'softfp' ABI and uClibc is not entirely tested in crosstool-NG" comment "You may experience issues, although it should work just fine" endif # ARCH_FLOAT_SOFTFP +config LIBC_UCLIBC_HAS_SUNRPC + bool + default y if !UCLIBC_1_0_23_or_later + config LIBC_UCLIBC_PARALLEL def_bool y depends on UCLIBC_0_9_33_2_or_later @@ -188,6 +192,7 @@ config LIBC_UCLIBC_FENV config LIBC_UCLIBC_RPC bool prompt "Add support for RPC" + depends on LIBC_UCLIBC_HAS_SUNRPC help Enable support for remote procedure calls (RPC) in uClibc. diff --git a/packages/uClibc/package.desc b/packages/uClibc/package.desc index d7f15df4..f19ebce8 100644 --- a/packages/uClibc/package.desc +++ b/packages/uClibc/package.desc @@ -4,5 +4,5 @@ preferred='uClibc-ng' origin='uclibc.org' repository='git git://git.busybox.net/uClibc' mirrors='http://www.uclibc.org/downloads http://www.uclibc.org/downloads/old-releases' -milestones='0.9.33.2 1.0.0 1.0.15' +milestones='0.9.33.2 1.0.0 1.0.15 1.0.23' archive_formats='.tar.xz .tar.bz2' From a20c29dcefe8c3319ae7163935a2d89ac2e1de32 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Sat, 10 Feb 2018 14:35:50 -0800 Subject: [PATCH 2/2] Make libiconv an option in the menu config Signed-off-by: Alexey Neyman --- config/libc/uClibc.in | 11 +++++++++++ packages/uClibc/package.desc | 2 +- scripts/build/libc/uClibc.sh | 7 +++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/config/libc/uClibc.in b/config/libc/uClibc.in index ba1178c7..7bdd03f4 100644 --- a/config/libc/uClibc.in +++ b/config/libc/uClibc.in @@ -25,6 +25,10 @@ config LIBC_UCLIBC_HAS_SUNRPC bool default y if !UCLIBC_1_0_23_or_later +config LIBC_UCLIBC_HAS_LIBICONV + bool + default y if UCLIBC_1_0_21_or_later + config LIBC_UCLIBC_PARALLEL def_bool y depends on UCLIBC_0_9_33_2_or_later @@ -154,12 +158,19 @@ config LIBC_UCLIBC_LNXTHRD config LIBC_UCLIBC_LOCALES bool select LIBC_UCLIBC_WCHAR + # Before it became a separate option, libiconv depended on locales prompt "Add support for locales" help Say y if you want uClibc to support localisation. Note that seems to be broken on recent uClibc releases. +config LIBC_UCLIBC_LIBICONV + bool "Enable iconv" + depends on LIBC_UCLIBC_HAS_LIBICONV + help + Say y if you want to enable and the corresponding interfaces. + config LIBC_UCLIBC_IPV6 bool prompt "Add support for IPv6" diff --git a/packages/uClibc/package.desc b/packages/uClibc/package.desc index f19ebce8..7035b96b 100644 --- a/packages/uClibc/package.desc +++ b/packages/uClibc/package.desc @@ -4,5 +4,5 @@ preferred='uClibc-ng' origin='uclibc.org' repository='git git://git.busybox.net/uClibc' mirrors='http://www.uclibc.org/downloads http://www.uclibc.org/downloads/old-releases' -milestones='0.9.33.2 1.0.0 1.0.15 1.0.23' +milestones='0.9.33.2 1.0.0 1.0.15 1.0.21 1.0.23' archive_formats='.tar.xz .tar.bz2' diff --git a/scripts/build/libc/uClibc.sh b/scripts/build/libc/uClibc.sh index 599283e3..eb6cf5b1 100644 --- a/scripts/build/libc/uClibc.sh +++ b/scripts/build/libc/uClibc.sh @@ -314,6 +314,13 @@ manage_uClibc_config() { CT_KconfigDisableOption "UCLIBC_HAS_IPV6" "${dst}" fi + # Iconv support + if [ "${CT_LIBC_UCLIBC_LIBICONV}" = "y" ]; then + CT_KconfigEnableOption "UCLIBC_HAS_LIBICONV" "${dst}" + else + CT_KconfigDisableOption "UCLIBC_HAS_LIBICONV" "${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