summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2007-10-29 21:05:12 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2007-10-29 21:05:12 +0000
commit30db642883b359b01c467a2a25dcd738b304e525 (patch)
treef4f59de95116653415fb47b5f165bedc54e8456b
parent3a1b10593ee42a8a7ea1f40fbae073a96c5b415d (diff)
downloadOSELAS.Toolchain-30db642883b359b01c467a2a25dcd738b304e525.tar.gz
OSELAS.Toolchain-30db642883b359b01c467a2a25dcd738b304e525.tar.xz
* sysdeps_arm-fp-byteorder.diff, csu_Makefile-printf-fix.diff:
fixed problem with dash on ubuntu git-svn-id: https://svn.pengutronix.de/svn/oselas/toolchain/branches/OSELAS.Toolchain-1.1-branch@4524 f8d472c7-5700-0410-ac5a-87979cec3adf
-rw-r--r--patches/glibc-2.3.6/generic/csu_Makefile-printf-fix.diff39
-rw-r--r--patches/glibc-2.3.6/generic/sysdeps_arm-fp-byteorder.diff29
2 files changed, 57 insertions, 11 deletions
diff --git a/patches/glibc-2.3.6/generic/csu_Makefile-printf-fix.diff b/patches/glibc-2.3.6/generic/csu_Makefile-printf-fix.diff
new file mode 100644
index 0000000..7627895
--- /dev/null
+++ b/patches/glibc-2.3.6/generic/csu_Makefile-printf-fix.diff
@@ -0,0 +1,39 @@
+Use printf instead of echo for some shells.
+
+http://www.cygwin.com/ml/libc-alpha/2005-02/msg00123.html
+
+This patch does not generate invalid csu/version-info.h which has
+unterminating " line because some /bin/sh cannot parse correctly. The
+previous discussion was:
+
+ http://sources.redhat.com/ml/libc-alpha/2004-08/msg00129.html
+ http://sources.redhat.com/ml/libc-alpha/2004-08/msg00145.html
+
+This patch gets rid of all this issue because the conclusion of the
+discussion was to use printf instead of echo. Roland, could you look
+at it again?
+
+Regards,
+-- gotom
+
+2005-02-26 GOTO Masanori <gotom@debian.or.jp>
+
+ * csu/Makefile: Use printf instead of echo for some shells.
+
+---
+ csu/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: glibc-2.3.6/csu/Makefile
+===================================================================
+--- glibc-2.3.6.orig/csu/Makefile
++++ glibc-2.3.6/csu/Makefile
+@@ -241,7 +241,7 @@ $(objpfx)version-info.h: $(common-objpfx
+ esac; \
+ files="$(all-Banner-files)"; \
+ if test -n "$$files"; then \
+- echo "\"Available extensions:\\n\""; \
++ printf '"Available extensions:\\n"\n'; \
+ sed -e '/^#/d' -e 's/^[[:space:]]*/ /' \
+ -e 's/^\(.*\)$$/\"\1\\n\"/' $$files; \
+ fi) > $@T
diff --git a/patches/glibc-2.3.6/generic/sysdeps_arm-fp-byteorder.diff b/patches/glibc-2.3.6/generic/sysdeps_arm-fp-byteorder.diff
index d45cdbc..1fea081 100644
--- a/patches/glibc-2.3.6/generic/sysdeps_arm-fp-byteorder.diff
+++ b/patches/glibc-2.3.6/generic/sysdeps_arm-fp-byteorder.diff
@@ -50,9 +50,16 @@ Hi, Dan, This is a patch I applied to my glibc-2.3.2, then my softfloat
toolchain can printf("%f\n",1.0). So you may have a try of this
-diff -uNrp glibc.old/sysdeps/arm/bits/endian.h glibc.new/sysdeps/arm/bits/endian.h
---- glibc.old/sysdeps/arm/bits/endian.h 1999-04-12 11:59:13.000000000 -0400
-+++ glibc.new/sysdeps/arm/bits/endian.h 2004-02-12 09:15:13.000000000 -0500
+---
+ sysdeps/arm/bits/endian.h | 5 ++
+ sysdeps/arm/gmp-mparam.h | 12 ++++
+ sysdeps/arm/ieee754.h | 115 ----------------------------------------------
+ 3 files changed, 15 insertions(+), 117 deletions(-)
+
+Index: glibc-2.3.6/sysdeps/arm/bits/endian.h
+===================================================================
+--- glibc-2.3.6.orig/sysdeps/arm/bits/endian.h
++++ glibc-2.3.6/sysdeps/arm/bits/endian.h
@@ -9,4 +9,9 @@
#else
#define __BYTE_ORDER __LITTLE_ENDIAN
@@ -63,9 +70,10 @@ diff -uNrp glibc.old/sysdeps/arm/bits/endian.h glibc.new/sysdeps/arm/bits/endian
+#else
#define __FLOAT_WORD_ORDER __BIG_ENDIAN
+#endif
-diff -uNrp glibc.old/sysdeps/arm/gmp-mparam.h glibc.new/sysdeps/arm/gmp-mparam.h
---- glibc.old/sysdeps/arm/gmp-mparam.h 2001-07-07 15:21:19.000000000 -0400
-+++ glibc.new/sysdeps/arm/gmp-mparam.h 2004-02-12 09:15:13.000000000 -0500
+Index: glibc-2.3.6/sysdeps/arm/gmp-mparam.h
+===================================================================
+--- glibc-2.3.6.orig/sysdeps/arm/gmp-mparam.h
++++ glibc-2.3.6/sysdeps/arm/gmp-mparam.h
@@ -26,5 +26,13 @@ MA 02111-1307, USA. */
#define BITS_PER_SHORTINT 16
#define BITS_PER_CHAR 8
@@ -82,9 +90,10 @@ diff -uNrp glibc.old/sysdeps/arm/gmp-mparam.h glibc.new/sysdeps/arm/gmp-mparam.h
+# define IEEE_DOUBLE_BIG_ENDIAN 0
+# define IEEE_DOUBLE_MIXED_ENDIAN 1
+#endif
-diff -uNrp glibc.old/sysdeps/arm/ieee754.h glibc.new/sysdeps/arm/ieee754.h
---- glibc.old/sysdeps/arm/ieee754.h 2001-07-07 15:21:19.000000000 -0400
-+++ glibc.new/sysdeps/arm/ieee754.h 1969-12-31 19:00:00.000000000 -0500
+Index: glibc-2.3.6/sysdeps/arm/ieee754.h
+===================================================================
+--- glibc-2.3.6.orig/sysdeps/arm/ieee754.h
++++ /dev/null
@@ -1,115 +0,0 @@
-/* Copyright (C) 1992, 1995, 1996, 1998 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
@@ -201,5 +210,3 @@ diff -uNrp glibc.old/sysdeps/arm/ieee754.h glibc.new/sysdeps/arm/ieee754.h
-__END_DECLS
-
-#endif /* ieee754.h */
-
-Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>