diff options
Diffstat (limited to 'meta/recipes-core/uclibc/uclibc-git')
6 files changed, 81 insertions, 81 deletions
diff --git a/meta/recipes-core/uclibc/uclibc-git/0001-add-posix_fadvise-for-arm.patch b/meta/recipes-core/uclibc/uclibc-git/0001-add-posix_fadvise-for-arm.patch new file mode 100644 index 0000000..7c17a19 --- /dev/null +++ b/meta/recipes-core/uclibc/uclibc-git/0001-add-posix_fadvise-for-arm.patch @@ -0,0 +1,68 @@ +From 236a65abe0a6810e20498fc0ba8d02d90978953b Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@gmail.com> +Date: Sat, 29 Jun 2013 22:46:53 -0700 +Subject: [PATCH] add posix_fadvise() for arm + +arm call to posix_fadvise simply calls posix_fadvise64 + +Signed-off-by: Khem Raj <raj.khem@gmail.com> +--- + libc/sysdeps/linux/common/posix_fadvise.c | 24 ++++++++++++++++-------- + 1 file changed, 16 insertions(+), 8 deletions(-) + +Upstream-Status: Pending + +diff --git a/libc/sysdeps/linux/common/posix_fadvise.c b/libc/sysdeps/linux/common/posix_fadvise.c +index d3e1bd4..e102ce7 100644 +--- a/libc/sysdeps/linux/common/posix_fadvise.c ++++ b/libc/sysdeps/linux/common/posix_fadvise.c +@@ -10,30 +10,38 @@ + + #include <sys/syscall.h> + +-#ifdef __NR_fadvise64 ++#if defined(__NR_fadvise64) || defined(__NR_arm_fadvise64_64) + # include <fcntl.h> + # include <endian.h> + # include <bits/wordsize.h> + ++# ifdef __NR_arm_fadvise64_64 ++int posix_fadvise64(int fd, off64_t offset, off64_t len, int advice); ++# endif ++ + int posix_fadvise(int fd, off_t offset, off_t len, int advice) + { ++# ifdef __NR_arm_fadvise64_64 ++ return posix_fadvise64(fd, offset, len, advice); ++# else + int ret; + INTERNAL_SYSCALL_DECL(err); +-# if __WORDSIZE == 64 ++# if __WORDSIZE == 64 + ret = INTERNAL_SYSCALL(fadvise64, err, 4, fd, offset, len, advice); +-# else +-# if defined(__UCLIBC_SYSCALL_ALIGN_64BIT__) +- ret = INTERNAL_SYSCALL(fadvise64, err, 6, fd, /*unused*/0, + # else ++# if defined(__UCLIBC_SYSCALL_ALIGN_64BIT__) ++ ret = INTERNAL_SYSCALL(fadvise64, err, 6, fd, /*unused*/0, ++# else + ret = INTERNAL_SYSCALL(fadvise64, err, 5, fd, +-# endif ++# endif + OFF_HI_LO (offset), len, advice); +-# endif ++# endif + if (INTERNAL_SYSCALL_ERROR_P (ret, err)) + return INTERNAL_SYSCALL_ERRNO (ret, err); + return 0; ++# endif + } +-# if defined __UCLIBC_HAS_LFS__ && (!defined __NR_fadvise64_64 || __WORDSIZE == 64) ++# if defined __UCLIBC_HAS_LFS__ && ((!defined __NR_fadvise64_64 && !defined __NR_arm_fadvise64_64) || __WORDSIZE == 64) + strong_alias(posix_fadvise,posix_fadvise64) + # endif + #endif +-- +1.7.9.5 + diff --git a/meta/recipes-core/uclibc/uclibc-git/0001-i386-sysdep.h-Remove-STABS_-macros.patch b/meta/recipes-core/uclibc/uclibc-git/0001-i386-sysdep.h-Remove-STABS_-macros.patch deleted file mode 100644 index 8512c45..0000000 --- a/meta/recipes-core/uclibc/uclibc-git/0001-i386-sysdep.h-Remove-STABS_-macros.patch +++ /dev/null @@ -1,71 +0,0 @@ -Upstream-Status: Submitted - --Khem - -From e20fd2c2427be981c16cb936cc6866d08520de9b Mon Sep 17 00:00:00 2001 -From: Khem Raj <raj.khem@gmail.com> -Date: Mon, 25 Mar 2013 19:34:39 -0700 -Subject: [PATCH] i386/sysdep.h: Remove STABS_* macros - -uclibc is compiled with elf/dwarf and secondly HAVE_CPP_ASM_DEBUGINFO -is not defined so we generate bogus .stab sections needlessly - -Some of post processing tools get confused when they see both -dwarf and stab sections - -Signed-off-by: Khem Raj <raj.khem@gmail.com> ---- - libc/sysdeps/linux/i386/sysdep.h | 27 --------------------------- - 1 file changed, 27 deletions(-) - -diff --git a/libc/sysdeps/linux/i386/sysdep.h b/libc/sysdeps/linux/i386/sysdep.h -index 983c4f5..7a8d2e2 100644 ---- a/libc/sysdeps/linux/i386/sysdep.h -+++ b/libc/sysdeps/linux/i386/sysdep.h -@@ -43,12 +43,9 @@ - incomplete stabs information. Fake some entries here which specify - the current source file. */ - #define ENTRY(name) \ -- STABS_CURRENT_FILE1("") \ -- STABS_CURRENT_FILE(name) \ - ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(name); \ - ASM_TYPE_DIRECTIVE (C_SYMBOL_NAME(name),@function) \ - .align ALIGNARG(4); \ -- STABS_FUN(name) \ - C_LABEL(name) \ - cfi_startproc; \ - CALL_MCOUNT -@@ -57,30 +54,6 @@ - #define END(name) \ - cfi_endproc; \ - ASM_SIZE_DIRECTIVE(name) \ -- STABS_FUN_END(name) -- --#ifdef HAVE_CPP_ASM_DEBUGINFO --/* Disable that goop, because we just pass -g through to the assembler -- and it generates proper line number information directly. */ --# define STABS_CURRENT_FILE1(name) --# define STABS_CURRENT_FILE(name) --# define STABS_FUN(name) --# define STABS_FUN_END(name) --#else --/* Remove the following two lines once the gdb bug is fixed. */ --#define STABS_CURRENT_FILE(name) \ -- STABS_CURRENT_FILE1 (#name) --#define STABS_CURRENT_FILE1(name) \ -- 1: .stabs name,100,0,0,1b; --/* Emit stabs definition lines. We use F(0,1) and define t(0,1) as `int', -- the same way gcc does it. */ --#define STABS_FUN(name) STABS_FUN2(name, name##:F(0,1)) --#define STABS_FUN2(name, namestr) \ -- .stabs "int:t(0,1)=r(0,1);-2147483648;2147483647;",128,0,0,0; \ -- .stabs #namestr,36,0,0,name; --#define STABS_FUN_END(name) \ -- 1: .stabs "",36,0,0,1b-name; --#endif - - /* If compiled for profiling, call `mcount' at the start of each function. */ - #ifdef PROF --- -1.7.9.5 - diff --git a/meta/recipes-core/uclibc/uclibc-git/0001-nptl-arm-Move-aeabi_read_tp-to-uclibc_nonshared.a.patch b/meta/recipes-core/uclibc/uclibc-git/0001-nptl-arm-Move-aeabi_read_tp-to-uclibc_nonshared.a.patch index 7fc5bd3..7e7c579 100644 --- a/meta/recipes-core/uclibc/uclibc-git/0001-nptl-arm-Move-aeabi_read_tp-to-uclibc_nonshared.a.patch +++ b/meta/recipes-core/uclibc/uclibc-git/0001-nptl-arm-Move-aeabi_read_tp-to-uclibc_nonshared.a.patch @@ -13,9 +13,9 @@ Upstream-Status: Pending Index: git/libc/sysdeps/linux/arm/Makefile.arch =================================================================== ---- git.orig/libc/sysdeps/linux/arm/Makefile.arch 2013-03-25 19:48:48.000000000 -0700 -+++ git/libc/sysdeps/linux/arm/Makefile.arch 2013-03-25 19:51:57.496677771 -0700 -@@ -13,7 +13,10 @@ +--- git.orig/libc/sysdeps/linux/arm/Makefile.arch 2013-05-23 11:13:32.000000000 -0700 ++++ git/libc/sysdeps/linux/arm/Makefile.arch 2013-05-23 11:16:18.304333131 -0700 +@@ -13,7 +13,9 @@ vfork.S clone.S SSRC-$(UCLIBC_HAS_LFS) += mmap64.S @@ -23,7 +23,6 @@ Index: git/libc/sysdeps/linux/arm/Makefile.arch +SSRC-$(UCLIBC_HAS_THREADS_NATIVE) += libc-thumb_atomics.S +libc-nonshared-$(UCLIBC_HAS_THREADS_NATIVE) += $(ARCH_OUT)/libc-aeabi_read_tp.os +libc-static-$(UCLIBC_HAS_THREADS_NATIVE) += $(ARCH_OUT)/libc-aeabi_read_tp.o -+ - CSRC-$(UCLIBC_HAS_ADVANCED_REALTIME) += posix_fadvise.c CSRC-$(UCLIBC_HAS_CONTEXT_FUNCS) += makecontext.c SSRC-$(UCLIBC_HAS_CONTEXT_FUNCS) += getcontext.S setcontext.S swapcontext.S + diff --git a/meta/recipes-core/uclibc/uclibc-git/locale.cfg b/meta/recipes-core/uclibc/uclibc-git/locale.cfg new file mode 100644 index 0000000..fc66435 --- /dev/null +++ b/meta/recipes-core/uclibc/uclibc-git/locale.cfg @@ -0,0 +1,3 @@ +UCLIBC_HAS_LOCALE=y +UCLIBC_HAS_XLOCALE=y +UCLIBC_BUILD_MINIMAL_LOCALE=y diff --git a/meta/recipes-core/uclibc/uclibc-git/obstack.cfg b/meta/recipes-core/uclibc/uclibc-git/obstack.cfg new file mode 100644 index 0000000..36bf9d6 --- /dev/null +++ b/meta/recipes-core/uclibc/uclibc-git/obstack.cfg @@ -0,0 +1 @@ +UCLIBC_HAS_OBSTACK=y diff --git a/meta/recipes-core/uclibc/uclibc-git/powerpc_copysignl.patch b/meta/recipes-core/uclibc/uclibc-git/powerpc_copysignl.patch index ce58583..2f014cd 100644 --- a/meta/recipes-core/uclibc/uclibc-git/powerpc_copysignl.patch +++ b/meta/recipes-core/uclibc/uclibc-git/powerpc_copysignl.patch @@ -6,21 +6,21 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> Index: git/libc/sysdeps/linux/powerpc/Makefile.arch =================================================================== ---- git.orig/libc/sysdeps/linux/powerpc/Makefile.arch 2013-01-21 16:18:22.000000000 -0800 -+++ git/libc/sysdeps/linux/powerpc/Makefile.arch 2013-01-21 16:21:25.363552429 -0800 +--- git.orig/libc/sysdeps/linux/powerpc/Makefile.arch 2013-05-23 11:09:50.000000000 -0700 ++++ git/libc/sysdeps/linux/powerpc/Makefile.arch 2013-05-23 11:12:06.072328399 -0700 @@ -5,7 +5,7 @@ # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # --CSRC-y := __syscall_error.c pread_write.c ioctl.c -+CSRC-y := __syscall_error.c pread_write.c ioctl.c copysignl.c +-CSRC-y := __syscall_error.c ioctl.c ++CSRC-y := __syscall_error.c ioctl.c copysignl.c SSRC-y := \ __longjmp.S setjmp.S bsd-setjmp.S bsd-_setjmp.S brk.S \ Index: git/libc/sysdeps/linux/powerpc/copysignl.c =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ git/libc/sysdeps/linux/powerpc/copysignl.c 2013-01-21 16:20:46.807552554 -0800 ++++ git/libc/sysdeps/linux/powerpc/copysignl.c 2013-05-23 11:11:37.600327865 -0700 @@ -0,0 +1,89 @@ +/* s_copysignl.c -- long double version of s_copysign.c. + * Conversion to long double by Ulrich Drepper, |