uclibc_git.bb: Fix the build on mips64/nptl
authorKhem Raj <raj.khem@gmail.com>
Tue, 18 Jan 2011 22:02:33 +0000 (14:02 -0800)
committerKhem Raj <raj.khem@gmail.com>
Tue, 18 Jan 2011 22:05:40 +0000 (14:05 -0800)
* It does not yet boot though but one step at a time

Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/uclibc/uclibc-git/mips64-no-waitpid.patch [new file with mode: 0644]
recipes/uclibc/uclibc_git.bb

diff --git a/recipes/uclibc/uclibc-git/mips64-no-waitpid.patch b/recipes/uclibc/uclibc-git/mips64-no-waitpid.patch
new file mode 100644 (file)
index 0000000..880bb7a
--- /dev/null
@@ -0,0 +1,30 @@
+Index: git/libpthread/nptl/sysdeps/unix/sysv/linux/mips/Makefile.arch
+===================================================================
+--- git.orig/libpthread/nptl/sysdeps/unix/sysv/linux/mips/Makefile.arch        2011-01-16 21:23:04.612324001 -0800
++++ git/libpthread/nptl/sysdeps/unix/sysv/linux/mips/Makefile.arch     2011-01-16 21:27:57.342324000 -0800
+@@ -10,7 +10,9 @@
+ libc_linux_arch_CSRC = fork.c
+ libc_linux_arch_SSRC = clone.S vfork.S
+-
++ifneq ($(CONFIG_MIPS_O32_ABI),y)
++libc_linux_arch_SSRC-OMIT = waitpid.S
++endif
+ ASFLAGS += -DUSE___THREAD
+ CFLAGS-OMIT-fork.c = -DNOT_IN_libc -DIS_IN_libpthread
+Index: git/libc/sysdeps/linux/common/Makefile.in
+===================================================================
+--- git.orig/libc/sysdeps/linux/common/Makefile.in     2011-01-16 21:33:51.302324000 -0800
++++ git/libc/sysdeps/linux/common/Makefile.in  2011-01-16 21:41:01.812324000 -0800
+@@ -44,6 +44,10 @@
+ CSRC := $(filter-out vfork.c, $(CSRC))
+ else ifeq ($(TARGET_ARCH),x86_64)
+ CSRC := $(filter-out vfork.c, $(CSRC))
++else ifeq ($(TARGET_ARCH),mips)
++ifeq ($(CONFIG_MIPS_O32_ABI),y)
++CSRC := $(filter-out waitpid.c, $(CSRC))
++endif
+ else
+ CSRC := $(filter-out waitpid.c, $(CSRC))
+ endif
index e206c4f..75047bd 100644 (file)
@@ -7,14 +7,14 @@
 # on whether the base patches apply to the selected (SRCDATE) svn release.
 #
 UCLIBC_BASE ?= "0.9.32"
-SRCREV="8fdc17c2ba1322712604d88dca48157068e6aadb"
+SRCREV="387b2e49cbb6aedcc6136fb18fb232dada563cf6"
 PR_append = "+gitr${SRCPV}"
 DEFAULT_PREFERENCE = "-1"
 #DEFAULT_PREFERENCE is 0 (empty), releases have a preference of 1 so take
 # precedence.
 
 require uclibc.inc
-PR = "${INC_PR}.5"
+PR = "${INC_PR}.6"
 PROVIDES += "virtual/${TARGET_PREFIX}libc-for-gcc"
 
 #recent versions uclibc require real kernel headers
@@ -44,5 +44,6 @@ SRC_URI = "git://uclibc.org/uClibc.git;branch=master;protocol=git \
        file://0004-Add-protected-symbols-support-for-all-architectures.patch \
        file://0005-ldso-get-rid-of-_dl_lookup_hash.patch \
        file://pro-sym-mips-fix.patch \
+       file://mips64-no-waitpid.patch \
        "
 S = "${WORKDIR}/git"