summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2015-03-03 16:10:42 -0300
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-03-04 21:29:24 +0100
commit6b2b72101124d4bf5cb91aaba577af2455ef0558 (patch)
tree3e8fbe0bbb80f8bb78229237ad88f609c93ddd64
parent70d354e1ac408b1531b6696608d963c7be9722df (diff)
downloadbuildroot-6b2b72101124d4bf5cb91aaba577af2455ef0558.tar.gz
buildroot-6b2b72101124d4bf5cb91aaba577af2455ef0558.zip
uclibc: add patch to unbreak sparc non-threaded builds
SPARC non-threaded builds are broken, add patch for uClibc & uClibc-ng to fix it. Status: upstream uClibc (so likely -ng will follow suit shortly). Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/uclibc/0.9.33.2/0067-sparc-clone.S-guard-tcb-offsets.h-include-with-RESET_P.patch31
-rw-r--r--package/uclibc/1.0.0/0001-sparc-clone.S-guard-tcb-offsets.h-include-with-RESET_P.patch31
2 files changed, 62 insertions, 0 deletions
diff --git a/package/uclibc/0.9.33.2/0067-sparc-clone.S-guard-tcb-offsets.h-include-with-RESET_P.patch b/package/uclibc/0.9.33.2/0067-sparc-clone.S-guard-tcb-offsets.h-include-with-RESET_P.patch
new file mode 100644
index 0000000000..a98ee688cc
--- /dev/null
+++ b/package/uclibc/0.9.33.2/0067-sparc-clone.S-guard-tcb-offsets.h-include-with-RESET_P.patch
@@ -0,0 +1,31 @@
+From 857420a3271dc5bbddbe45a9e9878b9dc88fd143 Mon Sep 17 00:00:00 2001
+From: Gustavo Zacarias <gustavo@zacarias.com.ar>
+Date: Tue, 3 Mar 2015 14:56:17 -0300
+Subject: [PATCH] sparc/clone.S: guard tcb-offsets.h include with RESET_PID
+
+Status: upstream [uClibc]
+
+Otherwise we have a broken scenario with non-threading builds.
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+---
+ libc/sysdeps/linux/sparc/clone.S | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/libc/sysdeps/linux/sparc/clone.S b/libc/sysdeps/linux/sparc/clone.S
+index 8d9da5a..1d0e3e6 100644
+--- a/libc/sysdeps/linux/sparc/clone.S
++++ b/libc/sysdeps/linux/sparc/clone.S
+@@ -22,7 +22,9 @@
+
+ #include <asm/errno.h>
+ #include <asm/unistd.h>
++#ifdef RESET_PID
+ #include <tcb-offsets.h>
++#endif
+ #include <sysdep.h>
+
+ #define CLONE_VM 0x00000100
+--
+2.0.5
+
diff --git a/package/uclibc/1.0.0/0001-sparc-clone.S-guard-tcb-offsets.h-include-with-RESET_P.patch b/package/uclibc/1.0.0/0001-sparc-clone.S-guard-tcb-offsets.h-include-with-RESET_P.patch
new file mode 100644
index 0000000000..a98ee688cc
--- /dev/null
+++ b/package/uclibc/1.0.0/0001-sparc-clone.S-guard-tcb-offsets.h-include-with-RESET_P.patch
@@ -0,0 +1,31 @@
+From 857420a3271dc5bbddbe45a9e9878b9dc88fd143 Mon Sep 17 00:00:00 2001
+From: Gustavo Zacarias <gustavo@zacarias.com.ar>
+Date: Tue, 3 Mar 2015 14:56:17 -0300
+Subject: [PATCH] sparc/clone.S: guard tcb-offsets.h include with RESET_PID
+
+Status: upstream [uClibc]
+
+Otherwise we have a broken scenario with non-threading builds.
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+---
+ libc/sysdeps/linux/sparc/clone.S | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/libc/sysdeps/linux/sparc/clone.S b/libc/sysdeps/linux/sparc/clone.S
+index 8d9da5a..1d0e3e6 100644
+--- a/libc/sysdeps/linux/sparc/clone.S
++++ b/libc/sysdeps/linux/sparc/clone.S
+@@ -22,7 +22,9 @@
+
+ #include <asm/errno.h>
+ #include <asm/unistd.h>
++#ifdef RESET_PID
+ #include <tcb-offsets.h>
++#endif
+ #include <sysdep.h>
+
+ #define CLONE_VM 0x00000100
+--
+2.0.5
+
OpenPOWER on IntegriCloud