Skip to content

Commit

Permalink
Merge branch 'master' into static-libgcc-more-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stilor committed Oct 6, 2016
2 parents 4ee587e + df5a341 commit f4349f1
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 20 deletions.
20 changes: 15 additions & 5 deletions config/libc/uClibc.in
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ config LIBC_UCLIBC_CUSTOM_VERSION
prompt "Custom uClibc Version"
help
Enter the version number for your custom uClibc.
Version 1.0.18 is only enabled in EXPERIMENTAL builds due to issues
with static libraries.

config LIBC_VERSION
string
Expand All @@ -75,10 +77,17 @@ choice
# Don't remove next line
# CT_INSERT_VERSION_BELOW

config LIBC_UCLIBC_NG_V_1_0_12
# List 1.0.17 first to make it default. 1.0.18 has issues with static libs.
config LIBC_UCLIBC_NG_V_1_0_17
bool
prompt "1.0.12"
select LIBC_UCLIBC_NG_1_0_12_or_later
prompt "1.0.17"
select LIBC_UCLIBC_NG_1_0_15_or_later

config LIBC_UCLIBC_NG_V_1_0_18
bool
prompt "1.0.18"
depends on EXPERIMENTAL
select LIBC_UCLIBC_NG_1_0_15_or_later

config LIBC_UCLIBC_V_0_9_33_2
bool
Expand All @@ -91,12 +100,13 @@ config LIBC_VERSION
string
# Don't remove next line
# CT_INSERT_VERSION_STRING_BELOW
default "1.0.12" if LIBC_UCLIBC_NG_V_1_0_12
default "1.0.18" if LIBC_UCLIBC_NG_V_1_0_18
default "1.0.17" if LIBC_UCLIBC_NG_V_1_0_17
default "0.9.33.2" if LIBC_UCLIBC_V_0_9_33_2

endif # ! LIBC_UCLIBC_CUSTOM

config LIBC_UCLIBC_NG_1_0_12_or_later
config LIBC_UCLIBC_NG_1_0_15_or_later
bool
select LIBC_UCLIBC_NG_1_0_0_or_later

Expand Down
4 changes: 3 additions & 1 deletion config/libc/uClibc.in.2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# uClibc second-part option

if THREADS_LT
if THREADS_LT && !LIBC_UCLIBC_NG_1_0_15_or_later

choice
bool
Expand Down Expand Up @@ -30,10 +30,12 @@ endchoice

endif # THREADS_LT

# uClibc-ng 1.0.15 did away with 2 implementations of linuxthreads
config LIBC_UCLIBC_LNXTHRD
string
default "" if THREADS_NONE
default "" if THREADS_NATIVE
default "" if LIBC_UCLIBC_NG_1_0_15_or_later
default "old" if LIBC_UCLIBC_LNXTHRD_OLD
default "new" if LIBC_UCLIBC_LNXTHRD_NEW

Expand Down
12 changes: 0 additions & 12 deletions patches/uClibc-ng/1.0.12/100-provide-_obstack_free.patch

This file was deleted.

2 changes: 1 addition & 1 deletion samples/sparc-leon-linux-uclibc/crosstool.config
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CT_TARGET_VENDOR="leon"
CT_KERNEL_linux=y
CT_KERNEL_V_3_10=y
CT_LIBC_uClibc=y
CT_LIBC_UCLIBC_CONFIG_FILE="${CT_LIB_DIR}/samples/${CT_TARGET}/${CT_LIBC}-${CT_LIBC_VERSION}.config"
CT_LIBC_UCLIBC_CONFIG_FILE="${CT_LIB_DIR}/samples/${CT_TARGET}/uClibc.config"
CT_LIBC_UCLIBC_IPV6=y
CT_LIBC_UCLIBC_WCHAR=y
CT_CC_GCC_V_4_9_3=y
Expand Down
3 changes: 2 additions & 1 deletion scripts/addToolVersion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ doHelp() {
cat <<-EOF
Usage: ${myname} <--tool> <[options] version [...]> ...
'tool' in one of:
gcc, binutils, glibc, uClibc, newlib, linux, gdb, dmalloc,
gcc, binutils, glibc, uClibc, uClibc-ng, newlib, linux, gdb, dmalloc,
duma, strace, ltrace, libelf, gmp, mpfr, isl, cloog, mpc,
mingw-w64, expat, ncurses
Expand Down Expand Up @@ -179,6 +179,7 @@ while [ $# -gt 0 ]; do
--binutils) EXP=; OBS=; cat=BINUTILS; tool=binutils; tool_prefix=binutils; dot2suffix=;;
--glibc) EXP=; OBS=; cat=LIBC_GLIBC; tool=glibc; tool_prefix=libc; dot2suffix=;;
--uClibc) EXP=; OBS=; cat=LIBC_UCLIBC; tool=uClibc; tool_prefix=libc; dot2suffix=;;
--uClibc-ng)EXP=; OBS=; cat=LIBC_UCLIBC_NG; tool=uClibc; tool_prefix=libc; dot2suffix=;;
--newlib) EXP=; OBS=; cat=LIBC_NEWLIB; tool=newlib; tool_prefix=libc; dot2suffix=;;
--mingw-w64)EXP=; OBS=; cat=WINAPI; tool=mingw; tool_prefix=libc; dot2suffix=;;
--linux) EXP=; OBS=; cat=KERNEL; tool=linux; tool_prefix=kernel; dot2suffix=;;
Expand Down
5 changes: 5 additions & 0 deletions scripts/build/libc/uClibc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,11 @@ manage_uClibc_config() {
case "${CT_THREADS}:${CT_LIBC_UCLIBC_LNXTHRD}" in
none:)
;;
linuxthreads:)
# Newer version of uClibc-ng, no old/new dichotomy
CT_KconfigEnableOption "UCLIBC_HAS_THREADS" "${dst}"
CT_KconfigEnableOption "UCLIBC_HAS_LINUXTHREADS" "${dst}"
;;
linuxthreads:old)
CT_KconfigEnableOption "UCLIBC_HAS_THREADS" "${dst}"
CT_KconfigEnableOption "LINUXTHREADS_OLD" "${dst}"
Expand Down

0 comments on commit f4349f1

Please sign in to comment.