Skip to contentSkip to conversation

uClibc: fix sparc build breakage

PATCH New Gustavo Zacarias 3 participants 6 messages Nov 11, 2011 – Nov 13, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 uClibc: fix sparc build breakage

Fix build breakage for sparc as reported in bug #4021 Patches from Konrad Eisele <[email protected]> Submitted in the uclibc mailing list.

---
 .../uClibc/uClibc-0.9.31.1-sparc-errno-fix.patch   |   11 +++++++++++
 .../uClibc/uClibc-0.9.32-sparc-errno-fix.patch     |   11 +++++++++++
 2 files changed, 22 insertions(+), 0 deletions(-)
 create mode 100644 toolchain/uClibc/uClibc-0.9.31.1-sparc-errno-fix.patch
 create mode 100644 toolchain/uClibc/uClibc-0.9.32-sparc-errno-fix.patch
toolchain/uClibc/uClibc-0.9.31.1-sparc-errno-fix.patch new file +11 -0
new file mode 100644
index 0000000..44d06cb
@@ -0,0 +1,11 @@
+--- uClibc-0.9.32.ori/libc/sysdeps/linux/sparc/pipe.S	2011-06-08 21:35:20.000000000 +0200
++++ uClibc-0.9.32/libc/sysdeps/linux/sparc/pipe.S	2011-11-11 15:57:25.000000000 +0100
+@@ -52,7 +52,7 @@
+ 	 restore %g0,%g0,%o0
+ 
+ .Lerror:
+-	call	HIDDEN_JUMPTARGET(__errno_location)
++	call	__errno_location
+ 	 or	%g0,EINVAL,%i0
+ 	st	%i0,[%o0]
+ 	ret
toolchain/uClibc/uClibc-0.9.32-sparc-errno-fix.patch new file +11 -0
new file mode 100644
index 0000000..44d06cb
@@ -0,0 +1,11 @@
+--- uClibc-0.9.32.ori/libc/sysdeps/linux/sparc/pipe.S	2011-06-08 21:35:20.000000000 +0200
++++ uClibc-0.9.32/libc/sysdeps/linux/sparc/pipe.S	2011-11-11 15:57:25.000000000 +0100
+@@ -52,7 +52,7 @@
+ 	 restore %g0,%g0,%o0
+ 
+ .Lerror:
+-	call	HIDDEN_JUMPTARGET(__errno_location)
++	call	__errno_location
+ 	 or	%g0,EINVAL,%i0
+ 	st	%i0,[%o0]
+ 	ret
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 2/2 qemu_sparc: add new qemu defconfig

Add a new qemu sample config for the SPARC architecture.

---
 board/qemu/sparc-ss10/readme.txt  |    7 +++++++
 configs/qemu_sparc_ss10_defconfig |   14 ++++++++++++++
 2 files changed, 21 insertions(+), 0 deletions(-)
 create mode 100644 board/qemu/sparc-ss10/readme.txt
 create mode 100644 configs/qemu_sparc_ss10_defconfig
board/qemu/sparc-ss10/readme.txt new file +7 -0
new file mode 100644
index 0000000..5f01efa
@@ -0,0 +1,7 @@
+Run the emulation with:
+
+  qemu-system-sparc -M SS-10 -kernel output/images/zImage -drive file=output/images/rootfs.ext2 -append "root=/dev/sda console=ttyS0,115200" -serial stdio
+
+The login prompt will appear in the terminal that started Qemu.
+The graphical window is the framebuffer.
+
configs/qemu_sparc_ss10_defconfig new file +14 -0
new file mode 100644
index 0000000..20cd9fb
@@ -0,0 +1,14 @@
+# Architecture
+BR2_sparc=y
+BR2_sparc_supersparc=y
+
+# filesystem
+BR2_TARGET_ROOTFS_EXT2=y
+# BR2_TARGET_ROOTFS_TAR is not set
+
+# Linux kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.1"
+BR2_LINUX_KERNEL_DEFCONFIG="sparc32"
+BR2_LINUX_KERNEL_ZIMAGE=y
Signature · 1 line
1.7.3.4
#2 lore raw

PATCH 2/2 qemu_sparc: add new qemu defconfig

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

Gustavo> Add a new qemu sample config for the SPARC architecture. Gustavo> Signed-off-by: Gustavo Zacarias <[email protected]>

Committed to next, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

PATCH 1/2 uClibc: fix sparc build breakage

In reply to Gustavo Zacarias
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

Gustavo> Fix build breakage for sparc as reported in bug #4021 Gustavo> Patches from Konrad Eisele <[email protected]> Gustavo> Submitted in the uclibc mailing list.

Committed to next, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#4 lore raw

PATCH 1/2 uClibc: fix sparc build breakage

Le Fri, 11 Nov 2011 22:15:45 +0100,
Peter Korsgaard <[email protected]> a ?crit :

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

Gustavo> Fix build breakage for sparc as reported in bug #4021 Gustavo> Patches from Konrad Eisele <[email protected]> Gustavo> Submitted in the uclibc mailing list.

Committed to next, thanks.

Since it fixes a build breakage, shouldn't it be applied to 2011.11 instead ? The fix itself only touches Sparc, so the risk is fairly minimal.

Regards,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#5 lore raw

PATCH 1/2 uClibc: fix sparc build breakage

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Hi,

Quoted 1 line
Quoted 1 line

Committed to next, thanks.

Thomas> Since it fixes a build breakage, shouldn't it be applied to Thomas> 2011.11 instead ? The fix itself only touches Sparc, so the Thomas> risk is fairly minimal.

Perhaps, but I would like to see some feedback on the uClibc list first.

Signature · 1 line
Bye, Peter Korsgaard