linux-libc-headers 2.6.15.99: add ARM patch 3477/1 to undefine some syscalls
authorKoen Kooi <koen@openembedded.org>
Mon, 1 May 2006 09:14:42 +0000 (09:14 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Mon, 1 May 2006 09:14:42 +0000 (09:14 +0000)
* http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=3477

packages/linux-libc-headers/linux-libc-headers-2.6.15.99/3477-1.patch [new file with mode: 0644]
packages/linux-libc-headers/linux-libc-headers_2.6.15.99.bb

diff --git a/packages/linux-libc-headers/linux-libc-headers-2.6.15.99/3477-1.patch b/packages/linux-libc-headers/linux-libc-headers-2.6.15.99/3477-1.patch
new file mode 100644 (file)
index 0000000..1b207b3
--- /dev/null
@@ -0,0 +1,43 @@
+From: Nicolas Pitre <nico@cam.org>
+Date: Sat, 15 Apr 2006 15:10:43 +0000 (+0100)
+Subject: [ARM] 3477/1: ARM EABI: undefine removed syscalls
+X-Git-Url: http://git.infradead.org/?p=mtd-2.6.git;a=commitdiff;h=463b158aab247b600e4e93614b7b8f42a66331c9
+
+[ARM] 3477/1: ARM EABI: undefine removed syscalls
+
+Patch from Nicolas Pitre
+
+Avoid confusion for libraries assuming that a given syscall is available
+when corresponding symbol is defined.
+
+Signed-off-by: Nicolas Pitre <nico@cam.org>
+Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
+---
+
+--- a/include/asm-arm/unistd.h
++++ b/include/asm-arm/unistd.h
+@@ -360,6 +360,24 @@
+ #define __ARM_NR_usr32                        (__ARM_NR_BASE+4)
+ #define __ARM_NR_set_tls              (__ARM_NR_BASE+5)
++/*
++ * The following syscalls are obsolete and no longer available for EABI.
++ */
++#if defined(__ARM_EABI__)
++#undef __NR_time
++#undef __NR_umount
++#undef __NR_stime
++#undef __NR_alarm
++#undef __NR_utime
++#undef __NR_getrlimit
++#undef __NR_select
++#undef __NR_readdir
++#undef __NR_mmap
++#undef __NR_socketcall
++#undef __NR_syscall
++#undef __NR_ipc
++#endif
++
+ #define __sys2(x) #x
+ #define __sys1(x) __sys2(x)
index 5a0ebaa..28926f0 100644 (file)
@@ -14,7 +14,7 @@ DESCRIPTION = "Sanitized set of 2.6 kernel headers for the C library's use."
 LICENSE = "GPL"
 DEFAULT_PREFERENCE = "-1"
 INHIBIT_DEFAULT_DEPS = "1"
-PR = "r3"
+PR = "r4"
 
 SRC_URI = "http://ewi546.ewi.utwente.nl/OE/eabi/linux-libc-headers-${PV}.tar.bz2 \
        file://keyboard.patch;patch=1 \
@@ -22,7 +22,8 @@ SRC_URI = "http://ewi546.ewi.utwente.nl/OE/eabi/linux-libc-headers-${PV}.tar.bz2
        file://linux-netdevice.patch;patch=1 \
        file://linux-netfilter_ipv4.patch;patch=1 \
        file://linux-rtc.patch;patch=1 \
-       file://linux-videodev2.patch;patch=1"
+       file://linux-videodev2.patch;patch=1 \
+       file://3477-1.patch;patch=1"
 
 S = "${WORKDIR}/linux-libc-headers-${PV}"