mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
toolchain:
- remove uClibc package (no longer need) - Goodbye uClibc! - remove patches needed by uClibc
This commit is contained in:
parent
399bcb2ec0
commit
3a75102f2f
@ -9,7 +9,7 @@ PROJECT_DIR=$ROOT/projects
|
||||
. $PROJECT_DIR/$PROJECT/options
|
||||
fi
|
||||
|
||||
# Target system library C (uClibc/eglibc)
|
||||
# Target system library C (eglibc)
|
||||
TARGET_LIBC=eglibc
|
||||
|
||||
# Library strip
|
||||
|
@ -1,10 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options
|
||||
|
||||
$SCRIPTS/install gcc-core toolchain
|
||||
[ "$DEBUG" = yes ] && CFLAGS="$CFLAGS -D_DLSYM_TRACE_NAME"
|
||||
|
||||
make -C $PKG_BUILD
|
||||
[ "$DEVTOOLS" = yes ] && make -C $PKG_BUILD/utils
|
||||
exit 0
|
@ -1,3 +0,0 @@
|
||||
UCLIBC_MALLOC_DEBUGGING=y
|
||||
# DOSTRIP is not set
|
||||
SUPPORT_LD_DEBUG=y
|
@ -1,243 +0,0 @@
|
||||
#
|
||||
# Automatically generated make config: don't edit
|
||||
# Version: 0.9.30-git
|
||||
#
|
||||
# TARGET_alpha is not set
|
||||
# TARGET_arm is not set
|
||||
# TARGET_avr32 is not set
|
||||
# TARGET_bfin is not set
|
||||
# TARGET_cris is not set
|
||||
# TARGET_e1 is not set
|
||||
# TARGET_frv is not set
|
||||
# TARGET_h8300 is not set
|
||||
# TARGET_hppa is not set
|
||||
TARGET_i386=y
|
||||
# TARGET_i960 is not set
|
||||
# TARGET_ia64 is not set
|
||||
# TARGET_m68k is not set
|
||||
# TARGET_microblaze is not set
|
||||
# TARGET_mips is not set
|
||||
# TARGET_nios is not set
|
||||
# TARGET_nios2 is not set
|
||||
# TARGET_powerpc is not set
|
||||
# TARGET_sh is not set
|
||||
# TARGET_sh64 is not set
|
||||
# TARGET_sparc is not set
|
||||
# TARGET_v850 is not set
|
||||
# TARGET_vax is not set
|
||||
# TARGET_x86_64 is not set
|
||||
# TARGET_xtensa is not set
|
||||
|
||||
#
|
||||
# Target Architecture Features and Options
|
||||
#
|
||||
TARGET_ARCH="i386"
|
||||
FORCE_OPTIONS_FOR_ARCH=y
|
||||
# CONFIG_GENERIC_386 is not set
|
||||
# CONFIG_386 is not set
|
||||
# CONFIG_486 is not set
|
||||
CONFIG_586=y
|
||||
# CONFIG_586MMX is not set
|
||||
# CONFIG_686 is not set
|
||||
# CONFIG_PENTIUMII is not set
|
||||
# CONFIG_PENTIUMIII is not set
|
||||
# CONFIG_PENTIUM4 is not set
|
||||
# CONFIG_K6 is not set
|
||||
# CONFIG_K7 is not set
|
||||
# CONFIG_ELAN is not set
|
||||
# CONFIG_CRUSOE is not set
|
||||
# CONFIG_WINCHIPC6 is not set
|
||||
# CONFIG_WINCHIP2 is not set
|
||||
# CONFIG_CYRIXIII is not set
|
||||
# CONFIG_NEHEMIAH is not set
|
||||
TARGET_SUBARCH=""
|
||||
|
||||
#
|
||||
# Using ELF file format
|
||||
#
|
||||
ARCH_LITTLE_ENDIAN=y
|
||||
|
||||
#
|
||||
# Using Little Endian
|
||||
#
|
||||
ARCH_HAS_MMU=y
|
||||
ARCH_USE_MMU=y
|
||||
UCLIBC_HAS_FLOATS=y
|
||||
UCLIBC_HAS_FPU=y
|
||||
DO_C99_MATH=y
|
||||
UCLIBC_HAS_FENV=y
|
||||
UCLIBC_HAS_LONG_DOUBLE_MATH=y
|
||||
KERNEL_HEADERS="/home/stephan/projects/OpenELEC/build.OpenELEC.enna.i386.uClibc.devel/linux-2.6.32-rc3/dest/include"
|
||||
HAVE_DOT_CONFIG=y
|
||||
|
||||
#
|
||||
# General Library Settings
|
||||
#
|
||||
# HAVE_NO_PIC is not set
|
||||
DOPIC=y
|
||||
# ARCH_HAS_NO_SHARED is not set
|
||||
# ARCH_HAS_NO_LDSO is not set
|
||||
HAVE_SHARED=y
|
||||
# FORCE_SHAREABLE_TEXT_SEGMENTS is not set
|
||||
# LDSO_LDD_SUPPORT is not set
|
||||
# LDSO_CACHE_SUPPORT is not set
|
||||
# LDSO_PRELOAD_FILE_SUPPORT is not set
|
||||
# UCLIBC_STATIC_LDCONFIG is not set
|
||||
# LDSO_RUNPATH is not set
|
||||
UCLIBC_CTOR_DTOR=y
|
||||
# LDSO_GNU_HASH_SUPPORT is not set
|
||||
# HAS_NO_THREADS is not set
|
||||
UCLIBC_HAS_THREADS=y
|
||||
PTHREADS_DEBUG_SUPPORT=y
|
||||
LINUXTHREADS_OLD=y
|
||||
# UCLIBC_HAS_THREADS_NATIVE is not set
|
||||
UCLIBC_HAS_SYSLOG=y
|
||||
UCLIBC_HAS_LFS=y
|
||||
# MALLOC is not set
|
||||
# MALLOC_SIMPLE is not set
|
||||
MALLOC_STANDARD=y
|
||||
# MALLOC_GLIBC_COMPAT is not set
|
||||
# UCLIBC_DYNAMIC_ATEXIT is not set
|
||||
# COMPAT_ATEXIT is not set
|
||||
UCLIBC_SUSV3_LEGACY=y
|
||||
# UCLIBC_SUSV3_LEGACY_MACROS is not set
|
||||
# UCLIBC_SUSV4_LEGACY is not set
|
||||
# UCLIBC_HAS_STUBS is not set
|
||||
UCLIBC_HAS_SHADOW=y
|
||||
UCLIBC_HAS_PROGRAM_INVOCATION_NAME=y
|
||||
UCLIBC_HAS___PROGNAME=y
|
||||
UCLIBC_HAS_PTY=y
|
||||
# ASSUME_DEVPTS is not set
|
||||
# UNIX98PTY_ONLY is not set
|
||||
UCLIBC_HAS_GETPT=y
|
||||
# UCLIBC_HAS_TM_EXTENSIONS is not set
|
||||
# UCLIBC_HAS_TZ_CACHING is not set
|
||||
UCLIBC_HAS_TZ_FILE=y
|
||||
# UCLIBC_HAS_TZ_FILE_READ_MANY is not set
|
||||
UCLIBC_TZ_FILE_PATH="/etc/TZ"
|
||||
|
||||
#
|
||||
# Advanced Library Settings
|
||||
#
|
||||
UCLIBC_PWD_BUFFER_SIZE=256
|
||||
UCLIBC_GRP_BUFFER_SIZE=256
|
||||
|
||||
#
|
||||
# Support various families of functions
|
||||
#
|
||||
UCLIBC_LINUX_MODULE_24=y
|
||||
UCLIBC_LINUX_SPECIFIC=y
|
||||
UCLIBC_HAS_GNU_ERROR=y
|
||||
UCLIBC_BSD_SPECIFIC=y
|
||||
UCLIBC_HAS_BSD_ERR=y
|
||||
# UCLIBC_HAS_OBSOLETE_BSD_SIGNAL is not set
|
||||
# UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL is not set
|
||||
# UCLIBC_NTP_LEGACY is not set
|
||||
# UCLIBC_SV4_DEPRECATED is not set
|
||||
UCLIBC_HAS_REALTIME=y
|
||||
UCLIBC_HAS_ADVANCED_REALTIME=y
|
||||
UCLIBC_HAS_EPOLL=y
|
||||
UCLIBC_HAS_XATTR=y
|
||||
UCLIBC_HAS_PROFILING=y
|
||||
UCLIBC_HAS_CRYPT_IMPL=y
|
||||
UCLIBC_HAS_CRYPT=y
|
||||
UCLIBC_HAS_NETWORK_SUPPORT=y
|
||||
UCLIBC_HAS_SOCKET=y
|
||||
UCLIBC_HAS_IPV4=y
|
||||
UCLIBC_HAS_IPV6=y
|
||||
UCLIBC_HAS_RPC=y
|
||||
# UCLIBC_HAS_FULL_RPC is not set
|
||||
# UCLIBC_HAS_REENTRANT_RPC is not set
|
||||
# UCLIBC_USE_NETLINK is not set
|
||||
# UCLIBC_HAS_BSD_RES_CLOSE is not set
|
||||
UCLIBC_HAS_COMPAT_RES_STATE=y
|
||||
# UCLIBC_HAS_EXTRA_COMPAT_RES_STATE is not set
|
||||
UCLIBC_HAS_RESOLV_STUB=y
|
||||
|
||||
#
|
||||
# String and Stdio Support
|
||||
#
|
||||
# UCLIBC_HAS_STRING_GENERIC_OPT is not set
|
||||
# UCLIBC_HAS_STRING_ARCH_OPT is not set
|
||||
UCLIBC_HAS_CTYPE_TABLES=y
|
||||
UCLIBC_HAS_CTYPE_SIGNED=y
|
||||
# UCLIBC_HAS_CTYPE_UNSAFE is not set
|
||||
UCLIBC_HAS_CTYPE_CHECKED=y
|
||||
# UCLIBC_HAS_CTYPE_ENFORCED is not set
|
||||
UCLIBC_HAS_WCHAR=y
|
||||
# UCLIBC_HAS_LOCALE is not set
|
||||
# UCLIBC_HAS_HEXADECIMAL_FLOATS is not set
|
||||
# UCLIBC_HAS_GLIBC_CUSTOM_PRINTF is not set
|
||||
UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS=9
|
||||
# UCLIBC_HAS_SCANF_GLIBC_A_FLAG is not set
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_NONE is not set
|
||||
UCLIBC_HAS_STDIO_BUFSIZ_256=y
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_512 is not set
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_1024 is not set
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_2048 is not set
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_4096 is not set
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_8192 is not set
|
||||
UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE=y
|
||||
# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4 is not set
|
||||
# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8 is not set
|
||||
# UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT is not set
|
||||
UCLIBC_HAS_STDIO_GETC_MACRO=y
|
||||
UCLIBC_HAS_STDIO_PUTC_MACRO=y
|
||||
UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION=y
|
||||
# UCLIBC_HAS_FOPEN_LARGEFILE_MODE is not set
|
||||
# UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE is not set
|
||||
UCLIBC_HAS_GLIBC_CUSTOM_STREAMS=y
|
||||
# UCLIBC_HAS_PRINTF_M_SPEC is not set
|
||||
UCLIBC_HAS_ERRNO_MESSAGES=y
|
||||
# UCLIBC_HAS_SYS_ERRLIST is not set
|
||||
# UCLIBC_HAS_SIGNUM_MESSAGES is not set
|
||||
UCLIBC_HAS_GNU_GETOPT=y
|
||||
# UCLIBC_HAS_GNU_GETSUBOPT is not set
|
||||
|
||||
#
|
||||
# Big and Tall
|
||||
#
|
||||
UCLIBC_HAS_REGEX=y
|
||||
UCLIBC_HAS_REGEX_OLD=y
|
||||
UCLIBC_HAS_FNMATCH=y
|
||||
UCLIBC_HAS_FNMATCH_OLD=y
|
||||
# UCLIBC_HAS_WORDEXP is not set
|
||||
# UCLIBC_HAS_FTW is not set
|
||||
UCLIBC_HAS_GLOB=y
|
||||
UCLIBC_HAS_GNU_GLOB=y
|
||||
|
||||
#
|
||||
# Library Installation Options
|
||||
#
|
||||
SHARED_LIB_LOADER_PREFIX="$(DEVEL_PREFIX)/lib"
|
||||
RUNTIME_PREFIX="/"
|
||||
DEVEL_PREFIX="/usr"
|
||||
HARDWIRED_ABSPATH=y
|
||||
|
||||
#
|
||||
# Security options
|
||||
#
|
||||
# UCLIBC_BUILD_PIE is not set
|
||||
# UCLIBC_HAS_ARC4RANDOM is not set
|
||||
# HAVE_NO_SSP is not set
|
||||
# UCLIBC_HAS_SSP is not set
|
||||
# UCLIBC_BUILD_RELRO is not set
|
||||
# UCLIBC_BUILD_NOW is not set
|
||||
# UCLIBC_BUILD_NOEXECSTACK is not set
|
||||
|
||||
#
|
||||
# uClibc development/debugging options
|
||||
#
|
||||
CROSS_COMPILER_PREFIX=""
|
||||
UCLIBC_EXTRA_CFLAGS=""
|
||||
# DODEBUG is not set
|
||||
# DODEBUG_PT is not set
|
||||
DOSTRIP=y
|
||||
# DOASSERTS is not set
|
||||
# SUPPORT_LD_DEBUG is not set
|
||||
# SUPPORT_LD_DEBUG_EARLY is not set
|
||||
UCLIBC_MALLOC_DEBUGGING=y
|
||||
WARNINGS="-Wall"
|
||||
# EXTRA_WARNINGS is not set
|
||||
# DOMULTI is not set
|
||||
# UCLIBC_MJN3_ONLY is not set
|
@ -1,244 +0,0 @@
|
||||
#
|
||||
# Automatically generated make config: don't edit
|
||||
# Version: 0.9.30-git
|
||||
#
|
||||
# TARGET_alpha is not set
|
||||
# TARGET_arm is not set
|
||||
# TARGET_avr32 is not set
|
||||
# TARGET_bfin is not set
|
||||
# TARGET_cris is not set
|
||||
# TARGET_e1 is not set
|
||||
# TARGET_frv is not set
|
||||
# TARGET_h8300 is not set
|
||||
# TARGET_hppa is not set
|
||||
TARGET_i386=y
|
||||
# TARGET_i960 is not set
|
||||
# TARGET_ia64 is not set
|
||||
# TARGET_m68k is not set
|
||||
# TARGET_microblaze is not set
|
||||
# TARGET_mips is not set
|
||||
# TARGET_nios is not set
|
||||
# TARGET_nios2 is not set
|
||||
# TARGET_powerpc is not set
|
||||
# TARGET_sh is not set
|
||||
# TARGET_sh64 is not set
|
||||
# TARGET_sparc is not set
|
||||
# TARGET_v850 is not set
|
||||
# TARGET_vax is not set
|
||||
# TARGET_x86_64 is not set
|
||||
# TARGET_xtensa is not set
|
||||
|
||||
#
|
||||
# Target Architecture Features and Options
|
||||
#
|
||||
TARGET_ARCH="i386"
|
||||
FORCE_OPTIONS_FOR_ARCH=y
|
||||
# CONFIG_GENERIC_386 is not set
|
||||
# CONFIG_386 is not set
|
||||
# CONFIG_486 is not set
|
||||
CONFIG_586=y
|
||||
# CONFIG_586MMX is not set
|
||||
# CONFIG_686 is not set
|
||||
# CONFIG_PENTIUMII is not set
|
||||
# CONFIG_PENTIUMIII is not set
|
||||
# CONFIG_PENTIUM4 is not set
|
||||
# CONFIG_K6 is not set
|
||||
# CONFIG_K7 is not set
|
||||
# CONFIG_ELAN is not set
|
||||
# CONFIG_CRUSOE is not set
|
||||
# CONFIG_WINCHIPC6 is not set
|
||||
# CONFIG_WINCHIP2 is not set
|
||||
# CONFIG_CYRIXIII is not set
|
||||
# CONFIG_NEHEMIAH is not set
|
||||
TARGET_SUBARCH=""
|
||||
|
||||
#
|
||||
# Using ELF file format
|
||||
#
|
||||
ARCH_LITTLE_ENDIAN=y
|
||||
|
||||
#
|
||||
# Using Little Endian
|
||||
#
|
||||
ARCH_HAS_MMU=y
|
||||
ARCH_USE_MMU=y
|
||||
UCLIBC_HAS_FLOATS=y
|
||||
UCLIBC_HAS_FPU=y
|
||||
DO_C99_MATH=y
|
||||
UCLIBC_HAS_FENV=y
|
||||
UCLIBC_HAS_LONG_DOUBLE_MATH=y
|
||||
KERNEL_HEADERS=" "
|
||||
HAVE_DOT_CONFIG=y
|
||||
|
||||
#
|
||||
# General Library Settings
|
||||
#
|
||||
# HAVE_NO_PIC is not set
|
||||
DOPIC=y
|
||||
# ARCH_HAS_NO_SHARED is not set
|
||||
# ARCH_HAS_NO_LDSO is not set
|
||||
HAVE_SHARED=y
|
||||
# FORCE_SHAREABLE_TEXT_SEGMENTS is not set
|
||||
# LDSO_LDD_SUPPORT is not set
|
||||
# LDSO_CACHE_SUPPORT is not set
|
||||
# LDSO_PRELOAD_FILE_SUPPORT is not set
|
||||
# UCLIBC_STATIC_LDCONFIG is not set
|
||||
# LDSO_RUNPATH is not set
|
||||
UCLIBC_CTOR_DTOR=y
|
||||
# LDSO_GNU_HASH_SUPPORT is not set
|
||||
# HAS_NO_THREADS is not set
|
||||
UCLIBC_HAS_THREADS=y
|
||||
PTHREADS_DEBUG_SUPPORT=y
|
||||
LINUXTHREADS_OLD=y
|
||||
# UCLIBC_HAS_THREADS_NATIVE is not set
|
||||
UCLIBC_HAS_SYSLOG=y
|
||||
UCLIBC_HAS_LFS=y
|
||||
# MALLOC is not set
|
||||
# MALLOC_SIMPLE is not set
|
||||
MALLOC_STANDARD=y
|
||||
# MALLOC_GLIBC_COMPAT is not set
|
||||
# UCLIBC_DYNAMIC_ATEXIT is not set
|
||||
# COMPAT_ATEXIT is not set
|
||||
UCLIBC_SUSV3_LEGACY=y
|
||||
# UCLIBC_SUSV3_LEGACY_MACROS is not set
|
||||
UCLIBC_SUSV4_LEGACY=y
|
||||
# UCLIBC_HAS_STUBS is not set
|
||||
UCLIBC_HAS_SHADOW=y
|
||||
UCLIBC_HAS_PROGRAM_INVOCATION_NAME=y
|
||||
UCLIBC_HAS___PROGNAME=y
|
||||
UCLIBC_HAS_PTY=y
|
||||
# ASSUME_DEVPTS is not set
|
||||
# UNIX98PTY_ONLY is not set
|
||||
UCLIBC_HAS_GETPT=y
|
||||
UCLIBC_HAS_TM_EXTENSIONS=y
|
||||
# UCLIBC_HAS_TZ_CACHING is not set
|
||||
UCLIBC_HAS_TZ_FILE=y
|
||||
# UCLIBC_HAS_TZ_FILE_READ_MANY is not set
|
||||
UCLIBC_TZ_FILE_PATH="/etc/TZ"
|
||||
|
||||
#
|
||||
# Advanced Library Settings
|
||||
#
|
||||
UCLIBC_PWD_BUFFER_SIZE=256
|
||||
UCLIBC_GRP_BUFFER_SIZE=256
|
||||
|
||||
#
|
||||
# Support various families of functions
|
||||
#
|
||||
UCLIBC_LINUX_MODULE_24=y
|
||||
UCLIBC_LINUX_SPECIFIC=y
|
||||
UCLIBC_HAS_GNU_ERROR=y
|
||||
UCLIBC_BSD_SPECIFIC=y
|
||||
UCLIBC_HAS_BSD_ERR=y
|
||||
# UCLIBC_HAS_OBSOLETE_BSD_SIGNAL is not set
|
||||
# UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL is not set
|
||||
# UCLIBC_NTP_LEGACY is not set
|
||||
# UCLIBC_SV4_DEPRECATED is not set
|
||||
UCLIBC_HAS_REALTIME=y
|
||||
UCLIBC_HAS_ADVANCED_REALTIME=y
|
||||
UCLIBC_HAS_EPOLL=y
|
||||
UCLIBC_HAS_XATTR=y
|
||||
UCLIBC_HAS_PROFILING=y
|
||||
UCLIBC_HAS_CRYPT_IMPL=y
|
||||
UCLIBC_HAS_CRYPT=y
|
||||
UCLIBC_HAS_NETWORK_SUPPORT=y
|
||||
UCLIBC_HAS_SOCKET=y
|
||||
UCLIBC_HAS_IPV4=y
|
||||
UCLIBC_HAS_IPV6=y
|
||||
UCLIBC_HAS_RPC=y
|
||||
# UCLIBC_HAS_FULL_RPC is not set
|
||||
# UCLIBC_HAS_REENTRANT_RPC is not set
|
||||
# UCLIBC_USE_NETLINK is not set
|
||||
# UCLIBC_HAS_BSD_RES_CLOSE is not set
|
||||
UCLIBC_HAS_COMPAT_RES_STATE=y
|
||||
# UCLIBC_HAS_EXTRA_COMPAT_RES_STATE is not set
|
||||
UCLIBC_HAS_RESOLV_STUB=y
|
||||
|
||||
#
|
||||
# String and Stdio Support
|
||||
#
|
||||
# UCLIBC_HAS_STRING_GENERIC_OPT is not set
|
||||
# UCLIBC_HAS_STRING_ARCH_OPT is not set
|
||||
UCLIBC_HAS_CTYPE_TABLES=y
|
||||
UCLIBC_HAS_CTYPE_SIGNED=y
|
||||
# UCLIBC_HAS_CTYPE_UNSAFE is not set
|
||||
UCLIBC_HAS_CTYPE_CHECKED=y
|
||||
# UCLIBC_HAS_CTYPE_ENFORCED is not set
|
||||
UCLIBC_HAS_WCHAR=y
|
||||
# UCLIBC_HAS_LOCALE is not set
|
||||
# UCLIBC_HAS_HEXADECIMAL_FLOATS is not set
|
||||
# UCLIBC_HAS_GLIBC_CUSTOM_PRINTF is not set
|
||||
UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS=9
|
||||
# UCLIBC_HAS_SCANF_GLIBC_A_FLAG is not set
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_NONE is not set
|
||||
UCLIBC_HAS_STDIO_BUFSIZ_256=y
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_512 is not set
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_1024 is not set
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_2048 is not set
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_4096 is not set
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_8192 is not set
|
||||
UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE=y
|
||||
# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4 is not set
|
||||
# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8 is not set
|
||||
# UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT is not set
|
||||
UCLIBC_HAS_STDIO_GETC_MACRO=y
|
||||
UCLIBC_HAS_STDIO_PUTC_MACRO=y
|
||||
UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION=y
|
||||
# UCLIBC_HAS_FOPEN_LARGEFILE_MODE is not set
|
||||
# UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE is not set
|
||||
UCLIBC_HAS_GLIBC_CUSTOM_STREAMS=y
|
||||
# UCLIBC_HAS_PRINTF_M_SPEC is not set
|
||||
UCLIBC_HAS_ERRNO_MESSAGES=y
|
||||
# UCLIBC_HAS_SYS_ERRLIST is not set
|
||||
# UCLIBC_HAS_SIGNUM_MESSAGES is not set
|
||||
UCLIBC_HAS_GNU_GETOPT=y
|
||||
# UCLIBC_HAS_GNU_GETSUBOPT is not set
|
||||
|
||||
#
|
||||
# Big and Tall
|
||||
#
|
||||
UCLIBC_HAS_REGEX=y
|
||||
UCLIBC_HAS_REGEX_OLD=y
|
||||
UCLIBC_HAS_FNMATCH=y
|
||||
UCLIBC_HAS_FNMATCH_OLD=y
|
||||
# UCLIBC_HAS_WORDEXP is not set
|
||||
# UCLIBC_HAS_NFTW is not set
|
||||
# UCLIBC_HAS_FTW is not set
|
||||
UCLIBC_HAS_GLOB=y
|
||||
UCLIBC_HAS_GNU_GLOB=y
|
||||
|
||||
#
|
||||
# Library Installation Options
|
||||
#
|
||||
SHARED_LIB_LOADER_PREFIX="$(DEVEL_PREFIX)/lib"
|
||||
RUNTIME_PREFIX="/"
|
||||
DEVEL_PREFIX="/usr"
|
||||
HARDWIRED_ABSPATH=y
|
||||
|
||||
#
|
||||
# Security options
|
||||
#
|
||||
# UCLIBC_BUILD_PIE is not set
|
||||
# UCLIBC_HAS_ARC4RANDOM is not set
|
||||
# HAVE_NO_SSP is not set
|
||||
# UCLIBC_HAS_SSP is not set
|
||||
# UCLIBC_BUILD_RELRO is not set
|
||||
# UCLIBC_BUILD_NOW is not set
|
||||
# UCLIBC_BUILD_NOEXECSTACK is not set
|
||||
|
||||
#
|
||||
# uClibc development/debugging options
|
||||
#
|
||||
CROSS_COMPILER_PREFIX=""
|
||||
UCLIBC_EXTRA_CFLAGS=""
|
||||
# DODEBUG is not set
|
||||
# DODEBUG_PT is not set
|
||||
DOSTRIP=y
|
||||
# DOASSERTS is not set
|
||||
# SUPPORT_LD_DEBUG is not set
|
||||
# SUPPORT_LD_DEBUG_EARLY is not set
|
||||
# UCLIBC_MALLOC_DEBUGGING is not set
|
||||
WARNINGS="-Wall"
|
||||
# EXTRA_WARNINGS is not set
|
||||
# DOMULTI is not set
|
||||
# UCLIBC_MJN3_ONLY is not set
|
@ -1,221 +0,0 @@
|
||||
#
|
||||
# Automatically generated make config: don't edit
|
||||
# Version: 0.9.30-rc3
|
||||
#
|
||||
# TARGET_alpha is not set
|
||||
# TARGET_arm is not set
|
||||
# TARGET_avr32 is not set
|
||||
# TARGET_bfin is not set
|
||||
# TARGET_cris is not set
|
||||
# TARGET_e1 is not set
|
||||
# TARGET_frv is not set
|
||||
# TARGET_h8300 is not set
|
||||
# TARGET_hppa is not set
|
||||
# TARGET_i386 is not set
|
||||
# TARGET_i960 is not set
|
||||
# TARGET_ia64 is not set
|
||||
# TARGET_m68k is not set
|
||||
# TARGET_microblaze is not set
|
||||
# TARGET_mips is not set
|
||||
# TARGET_nios is not set
|
||||
# TARGET_nios2 is not set
|
||||
TARGET_powerpc=y
|
||||
# TARGET_sh is not set
|
||||
# TARGET_sh64 is not set
|
||||
# TARGET_sparc is not set
|
||||
# TARGET_v850 is not set
|
||||
# TARGET_vax is not set
|
||||
# TARGET_x86_64 is not set
|
||||
# TARGET_xtensa is not set
|
||||
|
||||
#
|
||||
# Target Architecture Features and Options
|
||||
#
|
||||
TARGET_ARCH="powerpc"
|
||||
FORCE_OPTIONS_FOR_ARCH=y
|
||||
CONFIG_CLASSIC=y
|
||||
# CONFIG_E500 is not set
|
||||
TARGET_SUBARCH="classic"
|
||||
|
||||
#
|
||||
# Using ELF file format
|
||||
#
|
||||
ARCH_BIG_ENDIAN=y
|
||||
|
||||
#
|
||||
# Using Big Endian
|
||||
#
|
||||
ARCH_HAS_MMU=y
|
||||
ARCH_USE_MMU=y
|
||||
UCLIBC_HAS_FLOATS=y
|
||||
UCLIBC_HAS_FPU=y
|
||||
DO_C99_MATH=y
|
||||
UCLIBC_HAS_FENV=y
|
||||
UCLIBC_HAS_LONG_DOUBLE_MATH=y
|
||||
KERNEL_HEADERS=""
|
||||
HAVE_DOT_CONFIG=y
|
||||
|
||||
#
|
||||
# General Library Settings
|
||||
#
|
||||
# HAVE_NO_PIC is not set
|
||||
DOPIC=y
|
||||
# ARCH_HAS_NO_SHARED is not set
|
||||
# ARCH_HAS_NO_LDSO is not set
|
||||
HAVE_SHARED=y
|
||||
# FORCE_SHAREABLE_TEXT_SEGMENTS is not set
|
||||
# LDSO_LDD_SUPPORT is not set
|
||||
# LDSO_CACHE_SUPPORT is not set
|
||||
# LDSO_PRELOAD_FILE_SUPPORT is not set
|
||||
# UCLIBC_STATIC_LDCONFIG is not set
|
||||
# LDSO_RUNPATH is not set
|
||||
UCLIBC_CTOR_DTOR=y
|
||||
# LDSO_GNU_HASH_SUPPORT is not set
|
||||
# HAS_NO_THREADS is not set
|
||||
UCLIBC_HAS_THREADS=y
|
||||
PTHREADS_DEBUG_SUPPORT=y
|
||||
LINUXTHREADS_OLD=y
|
||||
UCLIBC_HAS_SYSLOG=y
|
||||
UCLIBC_HAS_LFS=y
|
||||
# MALLOC is not set
|
||||
# MALLOC_SIMPLE is not set
|
||||
MALLOC_STANDARD=y
|
||||
# MALLOC_GLIBC_COMPAT is not set
|
||||
# UCLIBC_DYNAMIC_ATEXIT is not set
|
||||
# COMPAT_ATEXIT is not set
|
||||
UCLIBC_SUSV3_LEGACY=y
|
||||
# UCLIBC_SUSV3_LEGACY_MACROS is not set
|
||||
# UCLIBC_HAS_STUBS is not set
|
||||
# UCLIBC_HAS_SHADOW is not set
|
||||
# UCLIBC_HAS_PROGRAM_INVOCATION_NAME is not set
|
||||
UCLIBC_HAS_PTY=y
|
||||
# ASSUME_DEVPTS is not set
|
||||
# UNIX98PTY_ONLY is not set
|
||||
UCLIBC_HAS_GETPT=y
|
||||
# UCLIBC_HAS_TM_EXTENSIONS is not set
|
||||
# UCLIBC_HAS_TZ_CACHING is not set
|
||||
UCLIBC_HAS_TZ_FILE=y
|
||||
# UCLIBC_HAS_TZ_FILE_READ_MANY is not set
|
||||
UCLIBC_TZ_FILE_PATH="/etc/TZ"
|
||||
|
||||
#
|
||||
# Advanced Library Settings
|
||||
#
|
||||
UCLIBC_PWD_BUFFER_SIZE=256
|
||||
UCLIBC_GRP_BUFFER_SIZE=256
|
||||
|
||||
#
|
||||
# Support various families of functions
|
||||
#
|
||||
UCLIBC_LINUX_MODULE_24=y
|
||||
UCLIBC_LINUX_SPECIFIC=y
|
||||
UCLIBC_HAS_GNU_ERROR=y
|
||||
UCLIBC_BSD_SPECIFIC=y
|
||||
UCLIBC_HAS_BSD_ERR=y
|
||||
# UCLIBC_HAS_OBSOLETE_BSD_SIGNAL is not set
|
||||
# UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL is not set
|
||||
# UCLIBC_NTP_LEGACY is not set
|
||||
# UCLIBC_SV4_DEPRECATED is not set
|
||||
UCLIBC_HAS_REALTIME=y
|
||||
UCLIBC_HAS_ADVANCED_REALTIME=y
|
||||
UCLIBC_HAS_EPOLL=y
|
||||
UCLIBC_HAS_XATTR=y
|
||||
UCLIBC_HAS_PROFILING=y
|
||||
UCLIBC_HAS_CRYPT_IMPL=y
|
||||
UCLIBC_HAS_CRYPT=y
|
||||
UCLIBC_HAS_NETWORK_SUPPORT=y
|
||||
UCLIBC_HAS_SOCKET=y
|
||||
UCLIBC_HAS_IPV4=y
|
||||
# UCLIBC_HAS_IPV6 is not set
|
||||
UCLIBC_HAS_RPC=y
|
||||
# UCLIBC_HAS_FULL_RPC is not set
|
||||
# UCLIBC_HAS_REENTRANT_RPC is not set
|
||||
# UCLIBC_USE_NETLINK is not set
|
||||
# UCLIBC_HAS_BSD_RES_CLOSE is not set
|
||||
|
||||
#
|
||||
# String and Stdio Support
|
||||
#
|
||||
# UCLIBC_HAS_STRING_GENERIC_OPT is not set
|
||||
# UCLIBC_HAS_STRING_ARCH_OPT is not set
|
||||
UCLIBC_HAS_CTYPE_TABLES=y
|
||||
UCLIBC_HAS_CTYPE_SIGNED=y
|
||||
# UCLIBC_HAS_CTYPE_UNSAFE is not set
|
||||
UCLIBC_HAS_CTYPE_CHECKED=y
|
||||
# UCLIBC_HAS_CTYPE_ENFORCED is not set
|
||||
UCLIBC_HAS_WCHAR=y
|
||||
# UCLIBC_HAS_LOCALE is not set
|
||||
# UCLIBC_HAS_HEXADECIMAL_FLOATS is not set
|
||||
# UCLIBC_HAS_GLIBC_CUSTOM_PRINTF is not set
|
||||
UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS=9
|
||||
# UCLIBC_HAS_SCANF_GLIBC_A_FLAG is not set
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_NONE is not set
|
||||
UCLIBC_HAS_STDIO_BUFSIZ_256=y
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_512 is not set
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_1024 is not set
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_2048 is not set
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_4096 is not set
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_8192 is not set
|
||||
UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE=y
|
||||
# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4 is not set
|
||||
# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8 is not set
|
||||
# UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT is not set
|
||||
UCLIBC_HAS_STDIO_GETC_MACRO=y
|
||||
UCLIBC_HAS_STDIO_PUTC_MACRO=y
|
||||
UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION=y
|
||||
# UCLIBC_HAS_FOPEN_LARGEFILE_MODE is not set
|
||||
# UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE is not set
|
||||
UCLIBC_HAS_GLIBC_CUSTOM_STREAMS=y
|
||||
# UCLIBC_HAS_PRINTF_M_SPEC is not set
|
||||
UCLIBC_HAS_ERRNO_MESSAGES=y
|
||||
# UCLIBC_HAS_SYS_ERRLIST is not set
|
||||
# UCLIBC_HAS_SIGNUM_MESSAGES is not set
|
||||
UCLIBC_HAS_GNU_GETOPT=y
|
||||
# UCLIBC_HAS_GNU_GETSUBOPT is not set
|
||||
|
||||
#
|
||||
# Big and Tall
|
||||
#
|
||||
UCLIBC_HAS_REGEX=y
|
||||
UCLIBC_HAS_REGEX_OLD=y
|
||||
UCLIBC_HAS_FNMATCH=y
|
||||
UCLIBC_HAS_FNMATCH_OLD=y
|
||||
# UCLIBC_HAS_WORDEXP is not set
|
||||
# UCLIBC_HAS_FTW is not set
|
||||
UCLIBC_HAS_GLOB=y
|
||||
UCLIBC_HAS_GNU_GLOB=y
|
||||
|
||||
#
|
||||
# Library Installation Options
|
||||
#
|
||||
SHARED_LIB_LOADER_PREFIX="$(DEVEL_PREFIX)/lib"
|
||||
RUNTIME_PREFIX="/"
|
||||
DEVEL_PREFIX="/usr"
|
||||
|
||||
#
|
||||
# Security options
|
||||
#
|
||||
# UCLIBC_BUILD_PIE is not set
|
||||
# UCLIBC_HAS_ARC4RANDOM is not set
|
||||
# HAVE_NO_SSP is not set
|
||||
# UCLIBC_HAS_SSP is not set
|
||||
# UCLIBC_BUILD_RELRO is not set
|
||||
# UCLIBC_BUILD_NOW is not set
|
||||
# UCLIBC_BUILD_NOEXECSTACK is not set
|
||||
|
||||
#
|
||||
# uClibc development/debugging options
|
||||
#
|
||||
CROSS_COMPILER_PREFIX=""
|
||||
UCLIBC_EXTRA_CFLAGS=""
|
||||
# DODEBUG is not set
|
||||
# DODEBUG_PT is not set
|
||||
DOSTRIP=y
|
||||
# DOASSERTS is not set
|
||||
# SUPPORT_LD_DEBUG is not set
|
||||
# SUPPORT_LD_DEBUG_EARLY is not set
|
||||
# UCLIBC_MALLOC_DEBUGGING is not set
|
||||
WARNINGS="-Wall"
|
||||
# EXTRA_WARNINGS is not set
|
||||
# DOMULTI is not set
|
||||
# UCLIBC_MJN3_ONLY is not set
|
@ -1,218 +0,0 @@
|
||||
#
|
||||
# Automatically generated make config: don't edit
|
||||
# Version: 0.9.30-rc3
|
||||
#
|
||||
# TARGET_alpha is not set
|
||||
# TARGET_arm is not set
|
||||
# TARGET_avr32 is not set
|
||||
# TARGET_bfin is not set
|
||||
# TARGET_cris is not set
|
||||
# TARGET_e1 is not set
|
||||
# TARGET_frv is not set
|
||||
# TARGET_h8300 is not set
|
||||
# TARGET_hppa is not set
|
||||
# TARGET_i386 is not set
|
||||
# TARGET_i960 is not set
|
||||
# TARGET_ia64 is not set
|
||||
# TARGET_m68k is not set
|
||||
# TARGET_microblaze is not set
|
||||
# TARGET_mips is not set
|
||||
# TARGET_nios is not set
|
||||
# TARGET_nios2 is not set
|
||||
# TARGET_powerpc is not set
|
||||
# TARGET_sh is not set
|
||||
# TARGET_sh64 is not set
|
||||
# TARGET_sparc is not set
|
||||
# TARGET_v850 is not set
|
||||
# TARGET_vax is not set
|
||||
TARGET_x86_64=y
|
||||
# TARGET_xtensa is not set
|
||||
|
||||
#
|
||||
# Target Architecture Features and Options
|
||||
#
|
||||
TARGET_ARCH="x86_64"
|
||||
FORCE_OPTIONS_FOR_ARCH=y
|
||||
TARGET_SUBARCH=""
|
||||
|
||||
#
|
||||
# Using ELF file format
|
||||
#
|
||||
ARCH_LITTLE_ENDIAN=y
|
||||
|
||||
#
|
||||
# Using Little Endian
|
||||
#
|
||||
ARCH_HAS_MMU=y
|
||||
ARCH_USE_MMU=y
|
||||
UCLIBC_HAS_FLOATS=y
|
||||
UCLIBC_HAS_FPU=y
|
||||
DO_C99_MATH=y
|
||||
UCLIBC_HAS_FENV=y
|
||||
UCLIBC_HAS_LONG_DOUBLE_MATH=y
|
||||
KERNEL_HEADERS=""
|
||||
HAVE_DOT_CONFIG=y
|
||||
|
||||
#
|
||||
# General Library Settings
|
||||
#
|
||||
# HAVE_NO_PIC is not set
|
||||
DOPIC=y
|
||||
# ARCH_HAS_NO_SHARED is not set
|
||||
# ARCH_HAS_NO_LDSO is not set
|
||||
HAVE_SHARED=y
|
||||
FORCE_SHAREABLE_TEXT_SEGMENTS=y
|
||||
# LDSO_LDD_SUPPORT is not set
|
||||
# LDSO_CACHE_SUPPORT is not set
|
||||
# LDSO_PRELOAD_FILE_SUPPORT is not set
|
||||
# UCLIBC_STATIC_LDCONFIG is not set
|
||||
# LDSO_RUNPATH is not set
|
||||
UCLIBC_CTOR_DTOR=y
|
||||
# LDSO_GNU_HASH_SUPPORT is not set
|
||||
# HAS_NO_THREADS is not set
|
||||
UCLIBC_HAS_THREADS=y
|
||||
PTHREADS_DEBUG_SUPPORT=y
|
||||
LINUXTHREADS_OLD=y
|
||||
UCLIBC_HAS_SYSLOG=y
|
||||
UCLIBC_HAS_LFS=y
|
||||
# MALLOC is not set
|
||||
# MALLOC_SIMPLE is not set
|
||||
MALLOC_STANDARD=y
|
||||
# MALLOC_GLIBC_COMPAT is not set
|
||||
# UCLIBC_DYNAMIC_ATEXIT is not set
|
||||
# COMPAT_ATEXIT is not set
|
||||
UCLIBC_SUSV3_LEGACY=y
|
||||
# UCLIBC_SUSV3_LEGACY_MACROS is not set
|
||||
# UCLIBC_HAS_STUBS is not set
|
||||
# UCLIBC_HAS_SHADOW is not set
|
||||
# UCLIBC_HAS_PROGRAM_INVOCATION_NAME is not set
|
||||
UCLIBC_HAS_PTY=y
|
||||
# ASSUME_DEVPTS is not set
|
||||
# UNIX98PTY_ONLY is not set
|
||||
UCLIBC_HAS_GETPT=y
|
||||
# UCLIBC_HAS_TM_EXTENSIONS is not set
|
||||
# UCLIBC_HAS_TZ_CACHING is not set
|
||||
UCLIBC_HAS_TZ_FILE=y
|
||||
# UCLIBC_HAS_TZ_FILE_READ_MANY is not set
|
||||
UCLIBC_TZ_FILE_PATH="/etc/TZ"
|
||||
|
||||
#
|
||||
# Advanced Library Settings
|
||||
#
|
||||
UCLIBC_PWD_BUFFER_SIZE=256
|
||||
UCLIBC_GRP_BUFFER_SIZE=256
|
||||
|
||||
#
|
||||
# Support various families of functions
|
||||
#
|
||||
UCLIBC_LINUX_MODULE_24=y
|
||||
UCLIBC_LINUX_SPECIFIC=y
|
||||
UCLIBC_HAS_GNU_ERROR=y
|
||||
UCLIBC_BSD_SPECIFIC=y
|
||||
UCLIBC_HAS_BSD_ERR=y
|
||||
# UCLIBC_HAS_OBSOLETE_BSD_SIGNAL is not set
|
||||
# UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL is not set
|
||||
# UCLIBC_NTP_LEGACY is not set
|
||||
# UCLIBC_SV4_DEPRECATED is not set
|
||||
UCLIBC_HAS_REALTIME=y
|
||||
UCLIBC_HAS_ADVANCED_REALTIME=y
|
||||
UCLIBC_HAS_EPOLL=y
|
||||
UCLIBC_HAS_XATTR=y
|
||||
UCLIBC_HAS_PROFILING=y
|
||||
UCLIBC_HAS_CRYPT_IMPL=y
|
||||
UCLIBC_HAS_CRYPT=y
|
||||
UCLIBC_HAS_NETWORK_SUPPORT=y
|
||||
UCLIBC_HAS_SOCKET=y
|
||||
UCLIBC_HAS_IPV4=y
|
||||
# UCLIBC_HAS_IPV6 is not set
|
||||
UCLIBC_HAS_RPC=y
|
||||
# UCLIBC_HAS_FULL_RPC is not set
|
||||
# UCLIBC_HAS_REENTRANT_RPC is not set
|
||||
# UCLIBC_USE_NETLINK is not set
|
||||
# UCLIBC_HAS_BSD_RES_CLOSE is not set
|
||||
|
||||
#
|
||||
# String and Stdio Support
|
||||
#
|
||||
# UCLIBC_HAS_STRING_GENERIC_OPT is not set
|
||||
# UCLIBC_HAS_STRING_ARCH_OPT is not set
|
||||
UCLIBC_HAS_CTYPE_TABLES=y
|
||||
UCLIBC_HAS_CTYPE_SIGNED=y
|
||||
# UCLIBC_HAS_CTYPE_UNSAFE is not set
|
||||
UCLIBC_HAS_CTYPE_CHECKED=y
|
||||
# UCLIBC_HAS_CTYPE_ENFORCED is not set
|
||||
UCLIBC_HAS_WCHAR=y
|
||||
# UCLIBC_HAS_LOCALE is not set
|
||||
# UCLIBC_HAS_HEXADECIMAL_FLOATS is not set
|
||||
# UCLIBC_HAS_GLIBC_CUSTOM_PRINTF is not set
|
||||
UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS=9
|
||||
# UCLIBC_HAS_SCANF_GLIBC_A_FLAG is not set
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_NONE is not set
|
||||
UCLIBC_HAS_STDIO_BUFSIZ_256=y
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_512 is not set
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_1024 is not set
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_2048 is not set
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_4096 is not set
|
||||
# UCLIBC_HAS_STDIO_BUFSIZ_8192 is not set
|
||||
UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE=y
|
||||
# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4 is not set
|
||||
# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8 is not set
|
||||
# UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT is not set
|
||||
UCLIBC_HAS_STDIO_GETC_MACRO=y
|
||||
UCLIBC_HAS_STDIO_PUTC_MACRO=y
|
||||
UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION=y
|
||||
# UCLIBC_HAS_FOPEN_LARGEFILE_MODE is not set
|
||||
# UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE is not set
|
||||
UCLIBC_HAS_GLIBC_CUSTOM_STREAMS=y
|
||||
# UCLIBC_HAS_PRINTF_M_SPEC is not set
|
||||
UCLIBC_HAS_ERRNO_MESSAGES=y
|
||||
# UCLIBC_HAS_SYS_ERRLIST is not set
|
||||
# UCLIBC_HAS_SIGNUM_MESSAGES is not set
|
||||
UCLIBC_HAS_GNU_GETOPT=y
|
||||
# UCLIBC_HAS_GNU_GETSUBOPT is not set
|
||||
|
||||
#
|
||||
# Big and Tall
|
||||
#
|
||||
UCLIBC_HAS_REGEX=y
|
||||
UCLIBC_HAS_REGEX_OLD=y
|
||||
UCLIBC_HAS_FNMATCH=y
|
||||
UCLIBC_HAS_FNMATCH_OLD=y
|
||||
# UCLIBC_HAS_WORDEXP is not set
|
||||
# UCLIBC_HAS_FTW is not set
|
||||
UCLIBC_HAS_GLOB=y
|
||||
UCLIBC_HAS_GNU_GLOB=y
|
||||
|
||||
#
|
||||
# Library Installation Options
|
||||
#
|
||||
SHARED_LIB_LOADER_PREFIX="$(DEVEL_PREFIX)/lib"
|
||||
RUNTIME_PREFIX="/"
|
||||
DEVEL_PREFIX="/usr"
|
||||
|
||||
#
|
||||
# Security options
|
||||
#
|
||||
# UCLIBC_HAS_ARC4RANDOM is not set
|
||||
# HAVE_NO_SSP is not set
|
||||
# UCLIBC_HAS_SSP is not set
|
||||
# UCLIBC_BUILD_RELRO is not set
|
||||
# UCLIBC_BUILD_NOW is not set
|
||||
# UCLIBC_BUILD_NOEXECSTACK is not set
|
||||
|
||||
#
|
||||
# uClibc development/debugging options
|
||||
#
|
||||
CROSS_COMPILER_PREFIX=""
|
||||
UCLIBC_EXTRA_CFLAGS=""
|
||||
# DODEBUG is not set
|
||||
# DODEBUG_PT is not set
|
||||
DOSTRIP=y
|
||||
# DOASSERTS is not set
|
||||
# SUPPORT_LD_DEBUG is not set
|
||||
# SUPPORT_LD_DEBUG_EARLY is not set
|
||||
# UCLIBC_MALLOC_DEBUGGING is not set
|
||||
WARNINGS="-Wall"
|
||||
# EXTRA_WARNINGS is not set
|
||||
# DOMULTI is not set
|
||||
# UCLIBC_MJN3_ONLY is not set
|
@ -1,40 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options
|
||||
|
||||
if [ "$2" = toolchain ]; then
|
||||
rm -rf "$SYSROOT_PREFIX/lib" "$SYSROOT_PREFIX/usr/lib" "$SYSROOT_PREFIX/usr/include"
|
||||
$SCRIPTS/install linux-headers
|
||||
make -C $PKG_BUILD PREFIX="$SYSROOT_PREFIX" install
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$2" = initramfs ]; then
|
||||
mkdir -p $INSTALL/$2/lib
|
||||
cp $PKG_BUILD/lib/ld-uClibc.so.0 $INSTALL/$2/lib
|
||||
cp $PKG_BUILD/lib/libc.so.0 $INSTALL/$2/lib
|
||||
exit 0
|
||||
fi
|
||||
|
||||
mkdir -p $INSTALL/lib
|
||||
cp $PKG_BUILD/lib/ld*-uClibc.so.0 $INSTALL/lib
|
||||
cp $PKG_BUILD/lib/libc.so.0 $INSTALL/lib
|
||||
cp $PKG_BUILD/lib/libdl.so.0 $INSTALL/lib
|
||||
cp $PKG_BUILD/lib/libpthread.so.0 $INSTALL/lib
|
||||
cp $PKG_BUILD/lib/libm.so.0 $INSTALL/lib
|
||||
cp $PKG_BUILD/lib/libutil.so.0 $INSTALL/lib
|
||||
cp $PKG_BUILD/lib/librt.so.0 $INSTALL/lib
|
||||
|
||||
# needed by dbus-glib
|
||||
cp $PKG_BUILD/lib/libnsl.so.0 $INSTALL/lib
|
||||
|
||||
[ "$DEVTOOLS" = yes ] && cp $PKG_BUILD/lib/libthread_db.so.1 $INSTALL/lib
|
||||
[ "$NETWORK" = yes ] && cp $PKG_BUILD/lib/libcrypt.so.0 $INSTALL/lib
|
||||
[ "$NETWORK" = yes ] && cp $PKG_BUILD/lib/libresolv.so.0 $INSTALL/lib
|
||||
|
||||
[ "$DEVTOOLS" = yes ] && mkdir -p $INSTALL/bin && \
|
||||
cp $PKG_BUILD/utils/ldd $INSTALL/bin
|
||||
|
||||
[ -n "$TIMEZONE" ] && mkdir -p $INSTALL/etc && echo -n "$TIMEZONE" > $INSTALL/etc/TZ
|
||||
|
||||
exit 0
|
@ -1,11 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options
|
||||
|
||||
STAMP=$STAMPS/$1/unpack
|
||||
. $STAMP
|
||||
|
||||
test $STAMP_DEBUG != $DEBUG && rm -f $STAMP
|
||||
test $STAMP_DEVTOOLS != $DEVTOOLS && rm -f $STAMP
|
||||
|
||||
exit 0
|
@ -1,24 +0,0 @@
|
||||
"The problem is that offset is first shortened from 64 bits to 32 bits
|
||||
and then it is re-expended to 64 bits to do the comparison.
|
||||
As off_t is a signed type, ((off_t) offset) is negative and the expansion
|
||||
to 64 bits keep the sign giving a negative 64 bits number which is
|
||||
obviously not equal to offset." - Aurel
|
||||
|
||||
more information at: http://www.uclibc.org/lists/uclibc/2003-May/006192.html
|
||||
|
||||
diff -Naur uClibc.orig/libc/sysdeps/linux/common/mmap64.c uClibc/libc/sysdeps/linux/common/mmap64.c
|
||||
--- uClibc.orig/libc/sysdeps/linux/common/mmap64.c 2006-03-18 09:38:13.000000000 +0200
|
||||
+++ uClibc/libc/sysdeps/linux/common/mmap64.c 2006-03-18 09:38:17.000000000 +0200
|
||||
@@ -29,12 +29,6 @@
|
||||
|
||||
__ptr_t mmap64(__ptr_t addr, size_t len, int prot, int flags, int fd, __off64_t offset)
|
||||
{
|
||||
- if (offset != (off_t) offset ||
|
||||
- (offset + len) != (off_t) (offset + len)) {
|
||||
- __set_errno(EINVAL);
|
||||
- return MAP_FAILED;
|
||||
- }
|
||||
-
|
||||
return mmap(addr, len, prot, flags, fd, (off_t) offset);
|
||||
}
|
||||
|
@ -1,10 +0,0 @@
|
||||
--- uClibc.orig/libc/sysdeps/linux/common/bits/sigcontext.h 2008-02-28 03:06:39.000000000 +0100
|
||||
+++ uClibc/libc/sysdeps/linux/common/bits/sigcontext.h 2008-02-28 03:06:52.000000000 +0100
|
||||
@@ -24,6 +24,7 @@
|
||||
/* Kernel headers before 2.1.1 define a struct sigcontext_struct, but
|
||||
we need sigcontext. */
|
||||
# define sigcontext_struct sigcontext
|
||||
+# define __user
|
||||
|
||||
# include <asm/sigcontext.h>
|
||||
#endif
|
@ -1,82 +0,0 @@
|
||||
diff -Naur uClibc.orig/libc/misc/mntent/mntent.c uClibc/libc/misc/mntent/mntent.c
|
||||
--- uClibc.orig/libc/misc/mntent/mntent.c Wed Jul 6 09:10:45 2005
|
||||
+++ uClibc/libc/misc/mntent/mntent.c Sat Jul 23 13:04:32 2005
|
||||
@@ -13,6 +13,54 @@
|
||||
# define UNLOCK
|
||||
#endif
|
||||
|
||||
+/* Since the values in a line are separated by spaces, a name cannot
|
||||
+ contain a space. Therefore some programs encode spaces in names
|
||||
+ by the strings "\040". We undo the encoding when reading an entry.
|
||||
+ The decoding happens in place. */
|
||||
+static char *
|
||||
+decode_name (char *buf)
|
||||
+{
|
||||
+ char *rp = buf;
|
||||
+ char *wp = buf;
|
||||
+
|
||||
+ do
|
||||
+ if (rp[0] == '\\' && rp[1] == '0' && rp[2] == '4' && rp[3] == '0')
|
||||
+ {
|
||||
+ /* \040 is a SPACE. */
|
||||
+ *wp++ = ' ';
|
||||
+ rp += 3;
|
||||
+ }
|
||||
+ else if (rp[0] == '\\' && rp[1] == '0' && rp[2] == '1' && rp[3] == '1')
|
||||
+ {
|
||||
+ /* \011 is a TAB. */
|
||||
+ *wp++ = '\t';
|
||||
+ rp += 3;
|
||||
+ }
|
||||
+ else if (rp[0] == '\\' && rp[1] == '0' && rp[2] == '1' && rp[3] == '2')
|
||||
+ {
|
||||
+ /* \012 is a NEWLINE. */
|
||||
+ *wp++ = '\n';
|
||||
+ rp += 3;
|
||||
+ }
|
||||
+ else if (rp[0] == '\\' && rp[1] == '\\')
|
||||
+ {
|
||||
+ /* We have to escape \\ to be able to represent all characters. */
|
||||
+ *wp++ = '\\';
|
||||
+ rp += 1;
|
||||
+ }
|
||||
+ else if (rp[0] == '\\' && rp[1] == '1' && rp[2] == '3' && rp[3] == '4')
|
||||
+ {
|
||||
+ /* \134 is also \\. */
|
||||
+ *wp++ = '\\';
|
||||
+ rp += 3;
|
||||
+ }
|
||||
+ else
|
||||
+ *wp++ = *rp;
|
||||
+ while (*rp++ != '\0');
|
||||
+
|
||||
+ return buf;
|
||||
+}
|
||||
+
|
||||
/* Reentrant version of getmntent. */
|
||||
struct mntent *getmntent_r (FILE *filep,
|
||||
struct mntent *mnt, char *buff, int bufsize)
|
||||
@@ -37,19 +85,19 @@
|
||||
return NULL;
|
||||
|
||||
ptrptr = 0;
|
||||
- mnt->mnt_fsname = strtok_r(buff, sep, &ptrptr);
|
||||
+ mnt->mnt_fsname = decode_name(strtok_r(buff, sep, &ptrptr));
|
||||
if (mnt->mnt_fsname == NULL)
|
||||
return NULL;
|
||||
|
||||
- mnt->mnt_dir = strtok_r(NULL, sep, &ptrptr);
|
||||
+ mnt->mnt_dir = decode_name(strtok_r(NULL, sep, &ptrptr));
|
||||
if (mnt->mnt_dir == NULL)
|
||||
return NULL;
|
||||
|
||||
- mnt->mnt_type = strtok_r(NULL, sep, &ptrptr);
|
||||
+ mnt->mnt_type = decode_name(strtok_r(NULL, sep, &ptrptr));
|
||||
if (mnt->mnt_type == NULL)
|
||||
return NULL;
|
||||
|
||||
- mnt->mnt_opts = strtok_r(NULL, sep, &ptrptr);
|
||||
+ mnt->mnt_opts = decode_name(strtok_r(NULL, sep, &ptrptr));
|
||||
if (mnt->mnt_opts == NULL)
|
||||
mnt->mnt_opts = "";
|
||||
|
@ -1,26 +0,0 @@
|
||||
* When DEBUG=yes in config/options, allows creation of the file
|
||||
/dlsym.log which contains all the symbols from libraries that
|
||||
are accessed via dlopen()/dlsym()/dlclose() procedure (and so
|
||||
the symbols are not directly accessible from the resulting binary).
|
||||
|
||||
Intended use is to create a file which can be sort|uniq'd into an
|
||||
alphabetically-ordered list, so that libstrip can be used on those
|
||||
libraries that are used by programs that use dlsym(), without
|
||||
stripping out required symbols.
|
||||
|
||||
--- uClibc/ldso/libdl/libdl.c 2007-02-05 03:01:12.000000000 +0900
|
||||
+++ uClibc/ldso/libdl/libdl.c 2007-02-05 03:05:10.000000000 +0900
|
||||
@@ -406,6 +406,13 @@
|
||||
#else
|
||||
const char *name2 = name;
|
||||
#endif
|
||||
+#ifdef _DLSYM_TRACE_NAME
|
||||
+ FILE *log = fopen("/dlsym.log", "a");
|
||||
+
|
||||
+ fprintf(log, "%s\n", name);
|
||||
+ fflush(log);
|
||||
+ fclose(log);
|
||||
+#endif
|
||||
handle = (struct dyn_elf *) vhandle;
|
||||
|
||||
/* First of all verify that we have a real handle
|
@ -1,12 +0,0 @@
|
||||
diff -Nur uClibc.orig/extra/config/confdata.c uClibc/extra/config/confdata.c
|
||||
--- uClibc.orig/extra/config/confdata.c Sat Mar 18 10:02:20 2006
|
||||
+++ uClibc/extra/config/confdata.c Sat Mar 18 10:02:03 2006
|
||||
@@ -266,7 +266,7 @@
|
||||
int type, l;
|
||||
const char *str;
|
||||
time_t now;
|
||||
- int use_timestamp = 1;
|
||||
+ int use_timestamp = 0;
|
||||
char *env;
|
||||
|
||||
dirname[0] = 0;
|
@ -1,12 +0,0 @@
|
||||
--- uClibc-0.9.30/include/net/if_arp.h~ 2004-10-30 14:56:00.000000000 -0300
|
||||
+++ uClibc-0.9.30/include/net/if_arp.h 2009-09-02 16:20:24.000000000 -0300
|
||||
@@ -127,6 +127,9 @@ struct arphdr
|
||||
#define ARPHRD_IEEE802_TR 800 /* Magic type ident for TR. */
|
||||
#define ARPHRD_IEEE80211 801 /* IEEE 802.11. */
|
||||
|
||||
+#define ARPHRD_VOID 0xFFFF /* Void type, nothing is known. */
|
||||
+#define ARPHRD_NONE 0xFFFE /* Zero header length. */
|
||||
+
|
||||
/* ARP ioctl request. */
|
||||
struct arpreq
|
||||
{
|
@ -1,811 +0,0 @@
|
||||
diff -Naur uClibc-0.9.30.1/include/dirent.h uClibc-0.9.30.1.patch/include/dirent.h
|
||||
--- uClibc-0.9.30.1/include/dirent.h 2005-11-03 20:13:24.000000000 +0100
|
||||
+++ uClibc-0.9.30.1.patch/include/dirent.h 2009-08-15 10:03:32.679480228 +0200
|
||||
@@ -134,6 +134,14 @@
|
||||
marked with __THROW. */
|
||||
extern DIR *opendir (__const char *__name) __nonnull ((1));
|
||||
|
||||
+#ifdef __USE_XOPEN2K8
|
||||
+/* Same as opendir, but open the stream on the file descriptor FD.
|
||||
+
|
||||
+ This function is a possible cancellation point and therefore not
|
||||
+ marked with __THROW. */
|
||||
+extern DIR *fdopendir (int __fd);
|
||||
+#endif
|
||||
+
|
||||
/* Close the directory stream DIRP.
|
||||
Return 0 if successful, -1 if not.
|
||||
|
||||
@@ -210,7 +218,7 @@
|
||||
extern long int telldir (DIR *__dirp) __THROW __nonnull ((1));
|
||||
#endif
|
||||
|
||||
-#if defined __USE_BSD || defined __USE_MISC
|
||||
+#if defined __USE_BSD || defined __USE_MISC || defined __XOPEN_2K8
|
||||
|
||||
/* Return the file descriptor used by DIRP. */
|
||||
extern int dirfd (DIR *__dirp) __THROW __nonnull ((1));
|
||||
diff -Naur uClibc-0.9.30.1/include/fcntl.h uClibc-0.9.30.1.patch/include/fcntl.h
|
||||
--- uClibc-0.9.30.1/include/fcntl.h 2008-10-03 15:59:52.000000000 +0200
|
||||
+++ uClibc-0.9.30.1.patch/include/fcntl.h 2009-08-15 10:03:32.680479250 +0200
|
||||
@@ -56,13 +56,16 @@
|
||||
# define SEEK_END 2 /* Seek from end of file. */
|
||||
#endif /* XPG */
|
||||
|
||||
-#if 0 /*def __USE_GNU*/
|
||||
+#ifdef __USE_ATFILE
|
||||
# define AT_FDCWD -100 /* Special value used to indicate
|
||||
- openat should use the current
|
||||
- working directory. */
|
||||
+ the *at functions should use the
|
||||
+ current working directory. */
|
||||
# define AT_SYMLINK_NOFOLLOW 0x100 /* Do not follow symbolic links. */
|
||||
# define AT_REMOVEDIR 0x200 /* Remove directory instead of
|
||||
unlinking file. */
|
||||
+# define AT_SYMLINK_FOLLOW 0x400 /* Follow symbolic links. */
|
||||
+# define AT_EACCESS 0x200 /* Test access permitted for
|
||||
+ effective IDs, not real IDs. */
|
||||
#endif
|
||||
|
||||
/* Do the file control operation described by CMD on FD.
|
||||
@@ -103,11 +106,11 @@
|
||||
extern int open64 (__const char *__file, int __oflag, ...) __nonnull ((1));
|
||||
#endif
|
||||
|
||||
-#if 0 /*def __USE_GNU*/
|
||||
-/* Similar to OPEN but a relative path name is interpreted relative to
|
||||
+#ifdef __USE_ATFILE
|
||||
+/* Similar to `open' but a relative path name is interpreted relative to
|
||||
the directory for which FD is a descriptor.
|
||||
|
||||
- NOTE: some other OPENAT implementation support additional functionality
|
||||
+ NOTE: some other `openat' implementation support additional functionality
|
||||
through this interface, especially using the O_XATTR flag. This is not
|
||||
yet supported here.
|
||||
|
||||
diff -Naur uClibc-0.9.30.1/include/features.h uClibc-0.9.30.1.patch/include/features.h
|
||||
--- uClibc-0.9.30.1/include/features.h 2008-09-06 18:45:07.000000000 +0200
|
||||
+++ uClibc-0.9.30.1.patch/include/features.h 2009-08-15 10:44:21.810477838 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-/* Copyright (C) 1991-1993,1995-2003,2004,2005 Free Software Foundation, Inc.
|
||||
+/* Copyright (C) 1991-1993,1995-2006,2007,2009 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -50,9 +50,10 @@
|
||||
if >=199309L, add IEEE Std 1003.1b-1993;
|
||||
if >=199506L, add IEEE Std 1003.1c-1995;
|
||||
if >=200112L, all of IEEE 1003.1-2004
|
||||
+ if >=200809L, all of IEEE 1003.1-2008
|
||||
_XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
|
||||
Single Unix conformance is wanted, to 600 for the
|
||||
- upcoming sixth revision.
|
||||
+ sixth revision, to 700 for the seventh revision.
|
||||
_XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
|
||||
_LARGEFILE_SOURCE Some more functions for correct standard I/O.
|
||||
_LARGEFILE64_SOURCE Additional functionality from LFS for large files.
|
||||
@@ -69,7 +70,7 @@
|
||||
The `-ansi' switch to the GNU C compiler defines __STRICT_ANSI__.
|
||||
If none of these are defined, the default is to have _SVID_SOURCE,
|
||||
_BSD_SOURCE, and _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
|
||||
- 199506L. If more than one of these are defined, they accumulate.
|
||||
+ 200112L. If more than one of these are defined, they accumulate.
|
||||
For example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE
|
||||
together give you ISO C, 1003.1, and 1003.2, but nothing else.
|
||||
|
||||
@@ -77,6 +78,7 @@
|
||||
header files to decide what to declare or define:
|
||||
|
||||
__USE_ISOC99 Define ISO C99 things.
|
||||
+ __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
|
||||
__USE_POSIX Define IEEE Std 1003.1 things.
|
||||
__USE_POSIX2 Define IEEE Std 1003.2 things.
|
||||
__USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
|
||||
@@ -85,6 +87,7 @@
|
||||
__USE_XOPEN_EXTENDED Define X/Open Unix things.
|
||||
__USE_UNIX98 Define Single Unix V2 things.
|
||||
__USE_XOPEN2K Define XPG6 things.
|
||||
+ __USE_XOPEN2K8 Define XPG7 things.
|
||||
__USE_LARGEFILE Define correct standard I/O things.
|
||||
__USE_LARGEFILE64 Define LFS things with separate names.
|
||||
__USE_FILE_OFFSET64 Define 64bit interface as default.
|
||||
@@ -111,6 +114,7 @@
|
||||
|
||||
/* Undefine everything, so we get a clean slate. */
|
||||
#undef __USE_ISOC99
|
||||
+#undef __USE_ISOC95
|
||||
#undef __USE_POSIX
|
||||
#undef __USE_POSIX2
|
||||
#undef __USE_POSIX199309
|
||||
@@ -119,6 +123,7 @@
|
||||
#undef __USE_XOPEN_EXTENDED
|
||||
#undef __USE_UNIX98
|
||||
#undef __USE_XOPEN2K
|
||||
+#undef __USE_XOPEN2K8
|
||||
#undef __USE_LARGEFILE
|
||||
#undef __USE_LARGEFILE64
|
||||
#undef __USE_FILE_OFFSET64
|
||||
@@ -171,9 +176,9 @@
|
||||
# undef _POSIX_SOURCE
|
||||
# define _POSIX_SOURCE 1
|
||||
# undef _POSIX_C_SOURCE
|
||||
-# define _POSIX_C_SOURCE 199506L
|
||||
+# define _POSIX_C_SOURCE 200809L
|
||||
# undef _XOPEN_SOURCE
|
||||
-# define _XOPEN_SOURCE 600
|
||||
+# define _XOPEN_SOURCE 700
|
||||
# undef _XOPEN_SOURCE_EXTENDED
|
||||
# define _XOPEN_SOURCE_EXTENDED 1
|
||||
# ifdef __UCLIBC_HAS_LFS__
|
||||
@@ -207,6 +212,12 @@
|
||||
# define __USE_ISOC99 1
|
||||
#endif
|
||||
|
||||
+/* This is to enable the ISO C90 Amendment 1:1995 extension. */
|
||||
+#if (defined _ISOC99_SOURCE || defined _ISOC9X_SOURCE \
|
||||
+ || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199409L))
|
||||
+# define __USE_ISOC95 1
|
||||
+#endif
|
||||
+
|
||||
/* If none of the ANSI/POSIX macros are defined, use POSIX.1 and POSIX.2
|
||||
(and IEEE Std 1003.1b-1993 unless _XOPEN_SOURCE is defined). */
|
||||
#if ((!defined __STRICT_ANSI__ || (_XOPEN_SOURCE - 0) >= 500) && \
|
||||
@@ -214,9 +225,14 @@
|
||||
# define _POSIX_SOURCE 1
|
||||
# if defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) < 500
|
||||
# define _POSIX_C_SOURCE 2
|
||||
-# else
|
||||
+# elif defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) < 600
|
||||
# define _POSIX_C_SOURCE 199506L
|
||||
+# elif defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) < 700
|
||||
+# define _POSIX_C_SOURCE 200112L
|
||||
+# else
|
||||
+# define _POSIX_C_SOURCE 200809L
|
||||
# endif
|
||||
+# define __USE_POSIX_IMPLICITLY 1
|
||||
#endif
|
||||
|
||||
#if defined _POSIX_SOURCE || _POSIX_C_SOURCE >= 1 || defined _XOPEN_SOURCE
|
||||
@@ -237,6 +253,14 @@
|
||||
|
||||
#if (_POSIX_C_SOURCE - 0) >= 200112L
|
||||
# define __USE_XOPEN2K 1
|
||||
+# undef __USE_ISOC99
|
||||
+# define __USE_ISOC99 1
|
||||
+#endif
|
||||
+
|
||||
+#if (_POSIX_C_SOURCE - 0) >= 200809L
|
||||
+# define __USE_XOPEN2K8 1
|
||||
+# undef _ATFILE_SOURCE
|
||||
+# define _ATFILE_SOURCE 1
|
||||
#endif
|
||||
|
||||
#ifdef _XOPEN_SOURCE
|
||||
@@ -247,6 +271,9 @@
|
||||
# undef _LARGEFILE_SOURCE
|
||||
# define _LARGEFILE_SOURCE 1
|
||||
# if (_XOPEN_SOURCE - 0) >= 600
|
||||
+# if (_XOPEN_SOURCE - 0) >= 700
|
||||
+# define __USE_XOPEN2K8 1
|
||||
+# endif
|
||||
# define __USE_XOPEN2K 1
|
||||
# undef __USE_ISOC99
|
||||
# define __USE_ISOC99 1
|
||||
@@ -313,7 +340,7 @@
|
||||
|
||||
#ifdef __UCLIBC_HAS_WCHAR__
|
||||
/* wchar_t uses ISO 10646-1 (2nd ed., published 2000-09-15) / Unicode 3.1. */
|
||||
-# define __STDC_ISO_10646__ 200009L
|
||||
+#define __STDC_ISO_10646__ 200009L
|
||||
#endif
|
||||
|
||||
/* There is an unwholesomely huge amount of code out there that depends on the
|
||||
@@ -406,10 +433,6 @@
|
||||
# define __USE_LARGEFILE64 1
|
||||
#endif
|
||||
|
||||
-/* uClibc does not support *at interfaces. */
|
||||
-#undef _ATFILE_SOURCE
|
||||
-#undef __USE_ATFILE
|
||||
-
|
||||
#ifdef _LIBC
|
||||
# include <libc-internal.h>
|
||||
#endif
|
||||
diff -Naur uClibc-0.9.30.1/include/stdio.h uClibc-0.9.30.1.patch/include/stdio.h
|
||||
--- uClibc-0.9.30.1/include/stdio.h 2008-09-30 14:17:04.000000000 +0200
|
||||
+++ uClibc-0.9.30.1.patch/include/stdio.h 2009-08-15 10:03:32.684355210 +0200
|
||||
@@ -147,6 +147,11 @@
|
||||
extern int rename (__const char *__old, __const char *__new) __THROW;
|
||||
__END_NAMESPACE_STD
|
||||
|
||||
+#ifdef __USE_ATFILE
|
||||
+/* Rename file OLD relative to OLDFD to NEW relative to NEWFD. */
|
||||
+extern int renameat (int __oldfd, __const char *__old, int __newfd,
|
||||
+ __const char *__new) __THROW;
|
||||
+#endif
|
||||
|
||||
__BEGIN_NAMESPACE_STD
|
||||
/* Create a temporary file and open it read/write.
|
||||
diff -Naur uClibc-0.9.30.1/include/sys/stat.h uClibc-0.9.30.1.patch/include/sys/stat.h
|
||||
--- uClibc-0.9.30.1/include/sys/stat.h 2006-03-01 10:55:06.000000000 +0100
|
||||
+++ uClibc-0.9.30.1.patch/include/sys/stat.h 2009-08-15 11:56:12.531353835 +0200
|
||||
@@ -1,4 +1,5 @@
|
||||
-/* Copyright (C) 1991,1992,1995-2004,2005,2006 Free Software Foundation, Inc.
|
||||
+/* Copyright (C) 1991, 1992, 1995-2004, 2005, 2006, 2007, 2009
|
||||
+ Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -27,11 +28,12 @@
|
||||
|
||||
#include <bits/types.h> /* For __mode_t and __dev_t. */
|
||||
|
||||
-#if defined __USE_XOPEN || defined __USE_MISC
|
||||
+#if defined __USE_XOPEN || defined __USE_XOPEN2K || defined __USE_MISC \
|
||||
+ || defined __USE_ATFILE
|
||||
# if defined __USE_XOPEN || defined __USE_XOPEN2K
|
||||
# define __need_time_t
|
||||
# endif
|
||||
-# ifdef __USE_MISC
|
||||
+# if defined __USE_MISC || defined __USE_ATFILE
|
||||
# define __need_timespec
|
||||
# endif
|
||||
# include <time.h> /* For time_t resp. timespec. */
|
||||
@@ -247,12 +249,14 @@
|
||||
# endif
|
||||
# endif
|
||||
|
||||
+# ifdef __USE_LARGEFILE64
|
||||
extern int fstatat64 (int __fd, __const char *__restrict __file,
|
||||
struct stat64 *__restrict __buf, int __flag)
|
||||
__THROW __nonnull ((2, 3));
|
||||
+# endif
|
||||
#endif
|
||||
|
||||
-#if defined __USE_BSD || defined __USE_XOPEN_EXTENDED
|
||||
+#if defined __USE_BSD || defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K
|
||||
# ifndef __USE_FILE_OFFSET64
|
||||
/* Get file attributes about FILE and put them in BUF.
|
||||
If FILE is a symbolic link, do not follow it. */
|
||||
@@ -296,7 +300,8 @@
|
||||
#ifdef __USE_ATFILE
|
||||
/* Set file access permissions of FILE relative to
|
||||
the directory FD is open on. */
|
||||
-extern int fchmodat (int __fd, __const char *__file, __mode_t mode, int __flag)
|
||||
+extern int fchmodat (int __fd, __const char *__file, __mode_t __mode,
|
||||
+ int __flag)
|
||||
__THROW __nonnull ((2)) __wur;
|
||||
#endif /* Use ATFILE. */
|
||||
|
||||
@@ -330,14 +335,15 @@
|
||||
#if defined __USE_MISC || defined __USE_BSD || defined __USE_XOPEN_EXTENDED
|
||||
extern int mknod (__const char *__path, __mode_t __mode, __dev_t __dev)
|
||||
__THROW __nonnull ((1));
|
||||
-#endif
|
||||
|
||||
-#ifdef __USE_ATFILE
|
||||
+# ifdef __USE_ATFILE
|
||||
/* Like mknod, create a new device file with permission bits MODE and
|
||||
device number DEV. But interpret relative PATH names relative to
|
||||
the directory associated with FD. */
|
||||
extern int mknodat (int __fd, __const char *__path, __mode_t __mode,
|
||||
__dev_t __dev) __THROW __nonnull ((2));
|
||||
+libc_hidden_proto(mknodat)
|
||||
+# endif
|
||||
#endif
|
||||
|
||||
|
||||
@@ -352,7 +358,21 @@
|
||||
extern int mkfifoat (int __fd, __const char *__path, __mode_t __mode)
|
||||
__THROW __nonnull ((2));
|
||||
#endif
|
||||
+
|
||||
+#ifdef __USE_ATFILE
|
||||
+/* Set file access and modification times relative to directory file
|
||||
+ descriptor. */
|
||||
+extern int utimensat (int __fd, __const char *__path,
|
||||
+ __const struct timespec __times[2],
|
||||
+ int __flags)
|
||||
+ __THROW __nonnull ((2));
|
||||
+#endif
|
||||
|
||||
+#ifdef __USE_XOPEN2K8
|
||||
+/* Set file access and modification times of the file associated with FD. */
|
||||
+extern int futimens (int __fd, __const struct timespec __times[2]) __THROW;
|
||||
+#endif
|
||||
+
|
||||
/* on uClibc we have unversioned struct stat and mknod.
|
||||
* bits/stat.h is filled with wrong info, so we undo it here. */
|
||||
#undef _STAT_VER
|
||||
diff -Naur uClibc-0.9.30.1/include/sys/time.h uClibc-0.9.30.1.patch/include/sys/time.h
|
||||
--- uClibc-0.9.30.1/include/sys/time.h 2005-11-30 18:07:06.000000000 +0100
|
||||
+++ uClibc-0.9.30.1.patch/include/sys/time.h 2009-08-15 10:03:32.697354509 +0200
|
||||
@@ -148,7 +148,7 @@
|
||||
extern int futimes (int __fd, __const struct timeval __tvp[2]) __THROW;
|
||||
#endif
|
||||
|
||||
-#if 0 /*def __USE_GNU*/
|
||||
+#ifdef __USE_GNU
|
||||
/* Change the access time of FILE relative to FD to TVP[0] and the
|
||||
modification time of FILE to TVP[1]. If TVP is a null pointer, use
|
||||
the current time instead. Returns 0 on success, -1 on errors. */
|
||||
diff -Naur uClibc-0.9.30.1/libc/misc/dirent/opendir.c uClibc-0.9.30.1.patch/libc/misc/dirent/opendir.c
|
||||
--- uClibc-0.9.30.1/libc/misc/dirent/opendir.c 2008-09-09 14:04:00.000000000 +0200
|
||||
+++ uClibc-0.9.30.1.patch/libc/misc/dirent/opendir.c 2009-08-15 12:21:21.758478373 +0200
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <unistd.h>
|
||||
#include <sys/dir.h>
|
||||
#include <sys/stat.h>
|
||||
+#include <dirent.h>
|
||||
#include "dirstream.h"
|
||||
|
||||
libc_hidden_proto(opendir)
|
||||
@@ -21,6 +22,53 @@
|
||||
libc_hidden_proto(stat)
|
||||
libc_hidden_proto(fstat)
|
||||
|
||||
+static DIR *fd_to_DIR(int fd, __blksize_t size)
|
||||
+{
|
||||
+ DIR *ptr;
|
||||
+
|
||||
+ ptr = malloc(sizeof(*ptr));
|
||||
+ if (!ptr)
|
||||
+ return NULL;
|
||||
+
|
||||
+ ptr->dd_fd = fd;
|
||||
+ ptr->dd_nextloc = ptr->dd_size = ptr->dd_nextoff = 0;
|
||||
+ ptr->dd_max = size;
|
||||
+ if (ptr->dd_max < 512)
|
||||
+ ptr->dd_max = 512;
|
||||
+
|
||||
+ ptr->dd_buf = calloc(1, ptr->dd_max);
|
||||
+ if (!ptr->dd_buf) {
|
||||
+ free(ptr);
|
||||
+ return NULL;
|
||||
+ }
|
||||
+ __pthread_mutex_init(&ptr->dd_lock, NULL);
|
||||
+
|
||||
+ return ptr;
|
||||
+}
|
||||
+
|
||||
+DIR *fdopendir(int fd)
|
||||
+{
|
||||
+ int flags;
|
||||
+ struct stat st;
|
||||
+
|
||||
+ if (fstat(fd, &st))
|
||||
+ return NULL;
|
||||
+ if (!S_ISDIR(st.st_mode)) {
|
||||
+ __set_errno(ENOTDIR);
|
||||
+ return NULL;
|
||||
+ }
|
||||
+
|
||||
+ flags = fcntl(fd, F_GETFL);
|
||||
+ if (flags == -1)
|
||||
+ return NULL;
|
||||
+ if ((flags & O_ACCMODE) == O_WRONLY) {
|
||||
+ __set_errno(EINVAL);
|
||||
+ return NULL;
|
||||
+ }
|
||||
+
|
||||
+ return fd_to_DIR(fd, st.st_blksize);
|
||||
+}
|
||||
+
|
||||
/* opendir just makes an open() call - it return NULL if it fails
|
||||
* (open sets errno), otherwise it returns a DIR * pointer.
|
||||
*/
|
||||
@@ -61,23 +109,12 @@
|
||||
__set_errno(saved_errno);
|
||||
return NULL;
|
||||
}
|
||||
- if (!(ptr = malloc(sizeof(*ptr))))
|
||||
- goto nomem_close_and_ret;
|
||||
|
||||
- ptr->dd_fd = fd;
|
||||
- ptr->dd_nextloc = ptr->dd_size = ptr->dd_nextoff = 0;
|
||||
- ptr->dd_max = statbuf.st_blksize;
|
||||
- if (ptr->dd_max < 512)
|
||||
- ptr->dd_max = 512;
|
||||
-
|
||||
- if (!(ptr->dd_buf = calloc(1, ptr->dd_max))) {
|
||||
- free(ptr);
|
||||
-nomem_close_and_ret:
|
||||
+ ptr = fd_to_DIR(fd, statbuf.st_blksize);
|
||||
+ if (!ptr) {
|
||||
close(fd);
|
||||
__set_errno(ENOMEM);
|
||||
- return NULL;
|
||||
}
|
||||
- __pthread_mutex_init(&(ptr->dd_lock), NULL);
|
||||
return ptr;
|
||||
}
|
||||
libc_hidden_def(opendir)
|
||||
diff -Naur uClibc-0.9.30.1/libc/sysdeps/linux/common/faccessat.c uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/faccessat.c
|
||||
--- uClibc-0.9.30.1/libc/sysdeps/linux/common/faccessat.c 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/faccessat.c 2009-08-15 10:03:32.699355556 +0200
|
||||
@@ -0,0 +1,16 @@
|
||||
+/*
|
||||
+ * faccessat() for uClibc
|
||||
+ *
|
||||
+ * Copyright (C) 2009 Analog Devices Inc.
|
||||
+ *
|
||||
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
|
||||
+ */
|
||||
+
|
||||
+#include <sys/syscall.h>
|
||||
+#include <unistd.h>
|
||||
+
|
||||
+#ifdef __NR_faccessat
|
||||
+_syscall4(int, faccessat, int, fd, const char *, file, int, type, int, flag)
|
||||
+#else
|
||||
+/* should add emulation with faccess() and /proc/self/fd/ ... */
|
||||
+#endif
|
||||
diff -Naur uClibc-0.9.30.1/libc/sysdeps/linux/common/fchmodat.c uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/fchmodat.c
|
||||
--- uClibc-0.9.30.1/libc/sysdeps/linux/common/fchmodat.c 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/fchmodat.c 2009-08-15 10:03:32.728479172 +0200
|
||||
@@ -0,0 +1,16 @@
|
||||
+/*
|
||||
+ * fchmodat() for uClibc
|
||||
+ *
|
||||
+ * Copyright (C) 2009 Analog Devices Inc.
|
||||
+ *
|
||||
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
|
||||
+ */
|
||||
+
|
||||
+#include <sys/syscall.h>
|
||||
+#include <sys/stat.h>
|
||||
+
|
||||
+#ifdef __NR_fchmodat
|
||||
+_syscall4(int, fchmodat, int, fd, const char *, file, mode_t, mode, int, flag)
|
||||
+#else
|
||||
+/* should add emulation with fchmod() and /proc/self/fd/ ... */
|
||||
+#endif
|
||||
diff -Naur uClibc-0.9.30.1/libc/sysdeps/linux/common/fchownat.c uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/fchownat.c
|
||||
--- uClibc-0.9.30.1/libc/sysdeps/linux/common/fchownat.c 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/fchownat.c 2009-08-15 10:03:32.729480080 +0200
|
||||
@@ -0,0 +1,16 @@
|
||||
+/*
|
||||
+ * fchownat() for uClibc
|
||||
+ *
|
||||
+ * Copyright (C) 2009 Analog Devices Inc.
|
||||
+ *
|
||||
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
|
||||
+ */
|
||||
+
|
||||
+#include <sys/syscall.h>
|
||||
+#include <unistd.h>
|
||||
+
|
||||
+#ifdef __NR_fchownat
|
||||
+_syscall5(int, fchownat, int, fd, const char *, file, uid_t, owner, gid_t, group, int, flag)
|
||||
+#else
|
||||
+/* should add emulation with fchown() and /proc/self/fd/ ... */
|
||||
+#endif
|
||||
diff -Naur uClibc-0.9.30.1/libc/sysdeps/linux/common/fstatat64.c uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/fstatat64.c
|
||||
--- uClibc-0.9.30.1/libc/sysdeps/linux/common/fstatat64.c 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/fstatat64.c 2009-08-15 10:03:32.732479171 +0200
|
||||
@@ -0,0 +1,31 @@
|
||||
+/*
|
||||
+ * fstatat64() for uClibc
|
||||
+ *
|
||||
+ * Copyright (C) 2009 Analog Devices Inc.
|
||||
+ *
|
||||
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
|
||||
+ */
|
||||
+
|
||||
+#include <sys/syscall.h>
|
||||
+#include <sys/stat.h>
|
||||
+#include "xstatconv.h"
|
||||
+
|
||||
+#ifdef __UCLIBC_HAS_LFS__
|
||||
+
|
||||
+#ifdef __NR_fstatat64
|
||||
+int fstatat64(int fd, const char *file, struct stat64 *buf, int flag)
|
||||
+{
|
||||
+ int ret;
|
||||
+ struct kernel_stat64 kbuf;
|
||||
+
|
||||
+ ret = INLINE_SYSCALL(fstatat64, 4, fd, file, &kbuf, flag);
|
||||
+ if (ret == 0)
|
||||
+ __xstat64_conv(&kbuf, buf);
|
||||
+
|
||||
+ return ret;
|
||||
+}
|
||||
+#else
|
||||
+/* should add emulation with fstat64() and /proc/self/fd/ ... */
|
||||
+#endif
|
||||
+
|
||||
+#endif
|
||||
diff -Naur uClibc-0.9.30.1/libc/sysdeps/linux/common/fstatat.c uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/fstatat.c
|
||||
--- uClibc-0.9.30.1/libc/sysdeps/linux/common/fstatat.c 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/fstatat.c 2009-08-15 10:03:32.731479102 +0200
|
||||
@@ -0,0 +1,27 @@
|
||||
+/*
|
||||
+ * fstatat() for uClibc
|
||||
+ *
|
||||
+ * Copyright (C) 2009 Analog Devices Inc.
|
||||
+ *
|
||||
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
|
||||
+ */
|
||||
+
|
||||
+#include <sys/syscall.h>
|
||||
+#include <sys/stat.h>
|
||||
+#include "xstatconv.h"
|
||||
+
|
||||
+#ifdef __NR_fstatat64
|
||||
+int fstatat(int fd, const char *file, struct stat *buf, int flag)
|
||||
+{
|
||||
+ int ret;
|
||||
+ struct kernel_stat kbuf;
|
||||
+
|
||||
+ ret = INLINE_SYSCALL(fstatat64, 4, fd, file, &kbuf, flag);
|
||||
+ if (ret == 0)
|
||||
+ __xstat_conv(&kbuf, buf);
|
||||
+
|
||||
+ return ret;
|
||||
+}
|
||||
+#else
|
||||
+/* should add emulation with fstat() and /proc/self/fd/ ... */
|
||||
+#endif
|
||||
diff -Naur uClibc-0.9.30.1/libc/sysdeps/linux/common/futimesat.c uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/futimesat.c
|
||||
--- uClibc-0.9.30.1/libc/sysdeps/linux/common/futimesat.c 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/futimesat.c 2009-08-15 10:03:32.733494676 +0200
|
||||
@@ -0,0 +1,16 @@
|
||||
+/*
|
||||
+ * futimesat() for uClibc
|
||||
+ *
|
||||
+ * Copyright (C) 2009 Analog Devices Inc.
|
||||
+ *
|
||||
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
|
||||
+ */
|
||||
+
|
||||
+#include <sys/syscall.h>
|
||||
+#include <sys/time.h>
|
||||
+
|
||||
+#ifdef __NR_futimesat
|
||||
+_syscall3(int, futimesat, int, fd, const char *, file, const struct timeval *, tvp)
|
||||
+#else
|
||||
+/* should add emulation with futimes() and /proc/self/fd/ ... */
|
||||
+#endif
|
||||
diff -Naur uClibc-0.9.30.1/libc/sysdeps/linux/common/linkat.c uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/linkat.c
|
||||
--- uClibc-0.9.30.1/libc/sysdeps/linux/common/linkat.c 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/linkat.c 2009-08-15 10:03:32.734479799 +0200
|
||||
@@ -0,0 +1,16 @@
|
||||
+/*
|
||||
+ * linkat() for uClibc
|
||||
+ *
|
||||
+ * Copyright (C) 2009 Analog Devices Inc.
|
||||
+ *
|
||||
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
|
||||
+ */
|
||||
+
|
||||
+#include <sys/syscall.h>
|
||||
+#include <unistd.h>
|
||||
+
|
||||
+#ifdef __NR_linkat
|
||||
+_syscall5(int, linkat, int, fromfd, const char *, from, int, tofd, const char *, to, int, flags)
|
||||
+#else
|
||||
+/* should add emulation with link() and /proc/self/fd/ ... */
|
||||
+#endif
|
||||
diff -Naur uClibc-0.9.30.1/libc/sysdeps/linux/common/mkdirat.c uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/mkdirat.c
|
||||
--- uClibc-0.9.30.1/libc/sysdeps/linux/common/mkdirat.c 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/mkdirat.c 2009-08-15 10:03:32.738479729 +0200
|
||||
@@ -0,0 +1,16 @@
|
||||
+/*
|
||||
+ * mkdirat() for uClibc
|
||||
+ *
|
||||
+ * Copyright (C) 2009 Analog Devices Inc.
|
||||
+ *
|
||||
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
|
||||
+ */
|
||||
+
|
||||
+#include <sys/syscall.h>
|
||||
+#include <sys/stat.h>
|
||||
+
|
||||
+#ifdef __NR_mkdirat
|
||||
+_syscall3(int, mkdirat, int, fd, const char *, path, mode_t, mode)
|
||||
+#else
|
||||
+/* should add emulation with mkdir() and /proc/self/fd/ ... */
|
||||
+#endif
|
||||
diff -Naur uClibc-0.9.30.1/libc/sysdeps/linux/common/mkfifoat.c uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/mkfifoat.c
|
||||
--- uClibc-0.9.30.1/libc/sysdeps/linux/common/mkfifoat.c 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/mkfifoat.c 2009-08-15 10:03:32.744479868 +0200
|
||||
@@ -0,0 +1,19 @@
|
||||
+/*
|
||||
+ * mkfifoat() for uClibc
|
||||
+ *
|
||||
+ * Copyright (C) 2009 Analog Devices Inc.
|
||||
+ *
|
||||
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
|
||||
+ */
|
||||
+
|
||||
+#include <sys/syscall.h>
|
||||
+#include <sys/stat.h>
|
||||
+
|
||||
+#ifdef __NR_mknodat
|
||||
+int mkfifoat(int fd, const char *path, mode_t mode)
|
||||
+{
|
||||
+ return mknodat(fd, path, mode | S_IFIFO, 0);
|
||||
+}
|
||||
+#else
|
||||
+/* should add emulation with mkfifo() and /proc/self/fd/ ... */
|
||||
+#endif
|
||||
diff -Naur uClibc-0.9.30.1/libc/sysdeps/linux/common/mknodat.c uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/mknodat.c
|
||||
--- uClibc-0.9.30.1/libc/sysdeps/linux/common/mknodat.c 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/mknodat.c 2009-08-15 10:03:32.751479587 +0200
|
||||
@@ -0,0 +1,25 @@
|
||||
+/*
|
||||
+ * mknodat() for uClibc
|
||||
+ *
|
||||
+ * Copyright (C) 2009 Analog Devices Inc.
|
||||
+ *
|
||||
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
|
||||
+ */
|
||||
+
|
||||
+#include <sys/syscall.h>
|
||||
+#include <sys/stat.h>
|
||||
+
|
||||
+#ifdef __NR_mknodat
|
||||
+int mknodat(int fd, const char *path, mode_t mode, dev_t dev)
|
||||
+{
|
||||
+ unsigned long long int k_dev;
|
||||
+
|
||||
+ /* We must convert the value to dev_t type used by the kernel. */
|
||||
+ k_dev = (dev) & ((1ULL << 32) - 1);
|
||||
+
|
||||
+ return INLINE_SYSCALL(mknodat, 4, fd, path, mode, (unsigned int)k_dev);
|
||||
+}
|
||||
+libc_hidden_def(mknodat)
|
||||
+#else
|
||||
+/* should add emulation with mknod() and /proc/self/fd/ ... */
|
||||
+#endif
|
||||
diff -Naur uClibc-0.9.30.1/libc/sysdeps/linux/common/openat64.c uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/openat64.c
|
||||
--- uClibc-0.9.30.1/libc/sysdeps/linux/common/openat64.c 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/openat64.c 2009-08-15 10:03:32.759359038 +0200
|
||||
@@ -0,0 +1,25 @@
|
||||
+/*
|
||||
+ * openat() for uClibc
|
||||
+ *
|
||||
+ * Copyright (C) 2009 Analog Devices Inc.
|
||||
+ *
|
||||
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
|
||||
+ */
|
||||
+
|
||||
+#define openat64 __xx_openat
|
||||
+#include <sys/syscall.h>
|
||||
+#include <fcntl.h>
|
||||
+#undef openat64
|
||||
+
|
||||
+#ifdef __UCLIBC_HAS_LFS__
|
||||
+
|
||||
+#ifdef __NR_openat
|
||||
+int openat64(int fd, const char *file, int oflag, mode_t mode)
|
||||
+{
|
||||
+ return openat(fd, file, oflag | O_LARGEFILE, mode);
|
||||
+}
|
||||
+#else
|
||||
+/* should add emulation with open() and /proc/self/fd/ ... */
|
||||
+#endif
|
||||
+
|
||||
+#endif
|
||||
diff -Naur uClibc-0.9.30.1/libc/sysdeps/linux/common/openat.c uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/openat.c
|
||||
--- uClibc-0.9.30.1/libc/sysdeps/linux/common/openat.c 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/openat.c 2009-08-15 10:03:32.755477351 +0200
|
||||
@@ -0,0 +1,18 @@
|
||||
+/*
|
||||
+ * openat() for uClibc
|
||||
+ *
|
||||
+ * Copyright (C) 2009 Analog Devices Inc.
|
||||
+ *
|
||||
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
|
||||
+ */
|
||||
+
|
||||
+#define openat __xx_openat
|
||||
+#include <sys/syscall.h>
|
||||
+#include <fcntl.h>
|
||||
+#undef openat
|
||||
+
|
||||
+#ifdef __NR_openat
|
||||
+_syscall4(int, openat, int, fd, const char *, file, int, oflag, mode_t, mode)
|
||||
+#else
|
||||
+/* should add emulation with open() and /proc/self/fd/ ... */
|
||||
+#endif
|
||||
diff -Naur uClibc-0.9.30.1/libc/sysdeps/linux/common/readlinkat.c uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/readlinkat.c
|
||||
--- uClibc-0.9.30.1/libc/sysdeps/linux/common/readlinkat.c 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/readlinkat.c 2009-08-15 10:03:32.762393051 +0200
|
||||
@@ -0,0 +1,16 @@
|
||||
+/*
|
||||
+ * readlinkat() for uClibc
|
||||
+ *
|
||||
+ * Copyright (C) 2009 Analog Devices Inc.
|
||||
+ *
|
||||
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
|
||||
+ */
|
||||
+
|
||||
+#include <sys/syscall.h>
|
||||
+#include <unistd.h>
|
||||
+
|
||||
+#ifdef __NR_readlinkat
|
||||
+_syscall4(ssize_t, readlinkat, int, fd, const char *, path, char *, buf, size_t, len)
|
||||
+#else
|
||||
+/* should add emulation with readlink() and /proc/self/fd/ ... */
|
||||
+#endif
|
||||
diff -Naur uClibc-0.9.30.1/libc/sysdeps/linux/common/renameat.c uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/renameat.c
|
||||
--- uClibc-0.9.30.1/libc/sysdeps/linux/common/renameat.c 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/renameat.c 2009-08-15 10:03:32.767352332 +0200
|
||||
@@ -0,0 +1,16 @@
|
||||
+/*
|
||||
+ * renameat() for uClibc
|
||||
+ *
|
||||
+ * Copyright (C) 2009 Analog Devices Inc.
|
||||
+ *
|
||||
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
|
||||
+ */
|
||||
+
|
||||
+#include <sys/syscall.h>
|
||||
+#include <stdio.h>
|
||||
+
|
||||
+#ifdef __NR_renameat
|
||||
+_syscall4(int, renameat, int, oldfd, const char *, old, int, newfd, const char *, new)
|
||||
+#else
|
||||
+/* should add emulation with rename() and /proc/self/fd/ ... */
|
||||
+#endif
|
||||
diff -Naur uClibc-0.9.30.1/libc/sysdeps/linux/common/symlinkat.c uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/symlinkat.c
|
||||
--- uClibc-0.9.30.1/libc/sysdeps/linux/common/symlinkat.c 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/symlinkat.c 2009-08-15 10:03:32.770352122 +0200
|
||||
@@ -0,0 +1,16 @@
|
||||
+/*
|
||||
+ * symlinkat() for uClibc
|
||||
+ *
|
||||
+ * Copyright (C) 2009 Analog Devices Inc.
|
||||
+ *
|
||||
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
|
||||
+ */
|
||||
+
|
||||
+#include <sys/syscall.h>
|
||||
+#include <unistd.h>
|
||||
+
|
||||
+#ifdef __NR_symlinkat
|
||||
+_syscall3(int, symlinkat, const char *, from, int, tofd, const char *, to)
|
||||
+#else
|
||||
+/* should add emulation with symlink() and /proc/self/fd/ ... */
|
||||
+#endif
|
||||
diff -Naur uClibc-0.9.30.1/libc/sysdeps/linux/common/unlinkat.c uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/unlinkat.c
|
||||
--- uClibc-0.9.30.1/libc/sysdeps/linux/common/unlinkat.c 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/unlinkat.c 2009-08-15 10:03:32.773353309 +0200
|
||||
@@ -0,0 +1,16 @@
|
||||
+/*
|
||||
+ * unlinkat() for uClibc
|
||||
+ *
|
||||
+ * Copyright (C) 2009 Analog Devices Inc.
|
||||
+ *
|
||||
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
|
||||
+ */
|
||||
+
|
||||
+#include <sys/syscall.h>
|
||||
+#include <unistd.h>
|
||||
+
|
||||
+#ifdef __NR_unlinkat
|
||||
+_syscall3(int, unlinkat, int, fd, const char *, file, int, flag)
|
||||
+#else
|
||||
+/* should add emulation with unlink() and /proc/self/fd/ ... */
|
||||
+#endif
|
||||
diff -Naur uClibc-0.9.30.1/libc/sysdeps/linux/common/utimensat.c uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/utimensat.c
|
||||
--- uClibc-0.9.30.1/libc/sysdeps/linux/common/utimensat.c 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ uClibc-0.9.30.1.patch/libc/sysdeps/linux/common/utimensat.c 2009-08-15 10:03:32.777355124 +0200
|
||||
@@ -0,0 +1,16 @@
|
||||
+/*
|
||||
+ * utimensat() for uClibc
|
||||
+ *
|
||||
+ * Copyright (C) 2009 Analog Devices Inc.
|
||||
+ *
|
||||
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
|
||||
+ */
|
||||
+
|
||||
+#include <sys/syscall.h>
|
||||
+#include <sys/stat.h>
|
||||
+
|
||||
+#ifdef __NR_utimensat
|
||||
+_syscall4(int, utimensat, int, fd, const char *, path, const struct timespec *, times, int, flags)
|
||||
+#else
|
||||
+/* should add emulation with utimens() and /proc/self/fd/ ... */
|
||||
+#endif
|
@ -1,23 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options
|
||||
|
||||
$SCRIPTS/unpack linux
|
||||
|
||||
UCLIBC=`ls -d $PKG_BUILD`
|
||||
PKG_DIR=`find $PACKAGES -type d -name $1`
|
||||
|
||||
sed -i -e "s|^HOSTCC[[:space:]]*=.*$|HOSTCC = $HOST_CC|" \
|
||||
-e "s|^CROSS[[:space:]]*=.*$|CROSS = $TARGET_PREFIX|" \
|
||||
$UCLIBC/Rules.mak
|
||||
|
||||
# Mandatory for GCC >= 4.3.x
|
||||
echo 'CFLAGS+=-isystem $(shell $(CC) -print-file-name=include-fixed)' >> $UCLIBC/Rules.mak
|
||||
|
||||
sed -e "s%^KERNEL_HEADERS=.*%KERNEL_HEADERS=\"$(kernel_path)/dest/include\"%" \
|
||||
$PKG_DIR/config/$1.$TARGET_ARCH.conf > $UCLIBC/.config
|
||||
|
||||
[ "$DEBUG" = yes ] && cat $PKG_DIR/config/$1.debug.conf >> $UCLIBC/.config
|
||||
|
||||
make -C $UCLIBC oldconfig
|
||||
make -C $UCLIBC headers
|
@ -1 +0,0 @@
|
||||
http://sources.openelec.tv/svn/uClibc-0.9.30.2-20091030.tar.bz2
|
@ -1,13 +0,0 @@
|
||||
--- gcc/gcc/config/--- gcc/contrib/regression/objs-gcc.sh
|
||||
+++ gcc/contrib/regression/objs-gcc.sh
|
||||
@@ -105,6 +105,10 @@
|
||||
then
|
||||
make all-gdb all-dejagnu all-ld || exit 1
|
||||
make install-gdb install-dejagnu install-ld || exit 1
|
||||
+elif [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-uclibc ]
|
||||
+ then
|
||||
+ make all-gdb all-dejagnu all-ld || exit 1
|
||||
+ make install-gdb install-dejagnu install-ld || exit 1
|
||||
elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then
|
||||
make bootstrap || exit 1
|
||||
make install || exit 1
|
@ -1,13 +0,0 @@
|
||||
Index: gcc-4.3.0/libstdc++-v3/include/c_global/cstdio
|
||||
===================================================================
|
||||
--- gcc-4.3.0/libstdc++-v3/include/c_global/cstdio (revision 129202)
|
||||
+++ gcc-4.3.0/libstdc++-v3/include/c_global/cstdio (working copy)
|
||||
@@ -144,7 +144,7 @@
|
||||
|
||||
_GLIBCXX_END_NAMESPACE
|
||||
|
||||
-#if _GLIBCXX_USE_C99
|
||||
+#if _GLIBCXX_USE_C99 || defined __UCLIBC__
|
||||
|
||||
#undef snprintf
|
||||
#undef vfscanf
|
@ -1,12 +0,0 @@
|
||||
--- gcc-4.0.0/libstdc++-v3/configure-old 2005-04-30 22:04:48.061603912 -0500
|
||||
+++ gcc-4.0.0/libstdc++-v3/configure 2005-04-30 22:06:13.678588152 -0500
|
||||
@@ -7194,6 +7194,9 @@
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
#include <complex.h>
|
||||
+#ifdef __UCLIBC__
|
||||
+#error ugly hack to make sure configure test fails here for cross until uClibc supports the complex funcs
|
||||
+#endif
|
||||
int
|
||||
main ()
|
||||
{
|
Loading…
x
Reference in New Issue
Block a user