eglibc_2.12.bb/eglibc_svn.bb: Fix build on ARMv4 with EABI
authorKhem Raj <raj.khem@gmail.com>
Wed, 6 Oct 2010 21:06:41 +0000 (14:06 -0700)
committerKhem Raj <raj.khem@gmail.com>
Wed, 6 Oct 2010 21:07:37 +0000 (14:07 -0700)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/eglibc/eglibc-svn/armv4-eabi-compile-fix.patch [new file with mode: 0644]
recipes/eglibc/eglibc_2.12.bb
recipes/eglibc/eglibc_svn.bb

diff --git a/recipes/eglibc/eglibc-svn/armv4-eabi-compile-fix.patch b/recipes/eglibc/eglibc-svn/armv4-eabi-compile-fix.patch
new file mode 100644 (file)
index 0000000..cf1b2a8
--- /dev/null
@@ -0,0 +1,24 @@
+Source: http://sourceware.org/bugzilla/show_bug.cgi?id=12097
+
+The patch should be merged into glibc-ports
+
+-Khem
+Index: libc/ports/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S
+===================================================================
+--- libc.orig/ports/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S
++++ libc/ports/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S
+@@ -16,6 +16,8 @@
+    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+    02111-1307 USA.  */
++#if defined(__thumb__)
++
+ #include <sysdep.h>
+ /* Out-of-line syscall stub.  We expect the system call number in ip
+@@ -41,3 +43,5 @@ ENTRY (__libc_do_syscall)
+       pop     {r7, pc}
+       .fnend
+ END (__libc_do_syscall)
++
++#endif /* __thumb__ */
index c0949c4..fbb3280 100644 (file)
@@ -4,7 +4,7 @@ DEFAULT_PREFERENCE = "-1"
 DEPENDS += "gperf-native"
 FILESPATHPKG =. "eglibc-svn:"
 PV = "2.12"
-PR = "${INC_PR}.5"
+PR = "${INC_PR}.6"
 PR_append = "+svnr${SRCPV}"
 SRCREV="11306"
 EGLIBC_BRANCH="eglibc-2_12"
@@ -15,6 +15,7 @@ SRC_URI = "svn://svn.eglibc.org/branches;module=${EGLIBC_BRANCH};proto=svn \
            file://sh4_set_fpscr_2.12.patch \
            file://sh4_local-fpscr_values.patch \
            file://eglibc-dont-cache-slibdir.patch \
+           file://armv4-eabi-compile-fix.patch \
            file://etc/ld.so.conf \
            file://generate-supported.mk"
 S = "${WORKDIR}/${EGLIBC_BRANCH}/libc"
index c5a4990..0b1a77c 100644 (file)
@@ -5,13 +5,14 @@ SRCREV = "11461"
 DEFAULT_PREFERENCE = "-1"
 FILESPATHPKG =. "eglibc-svn:"
 PV = "2.12+svnr${SRCPV}"
-PR = "${INC_PR}.1"
+PR = "${INC_PR}.2"
 EGLIBC_BRANCH="trunk"
 SRC_URI = "svn://svn.eglibc.org;module=${EGLIBC_BRANCH} \
            file://eglibc-svn-arm-lowlevellock-include-tls.patch \
            file://IO-acquire-lock-fix.patch \
            file://sh4_set_fpscr_2.12.patch \
            file://sh4_local-fpscr_values.patch \
+           file://armv4-eabi-compile-fix.patch \
            file://etc/ld.so.conf \
            file://generate-supported.mk"
 S = "${WORKDIR}/${EGLIBC_BRANCH}/libc"