[oe-commits] Khem Raj : gcc-4.4.1.inc: Make cross compile for SH architecture.

git version control git at git.openembedded.org
Sat Aug 8 18:58:06 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: f2ee6f993790daa0765f89712c14b9e49b686ab8
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=f2ee6f993790daa0765f89712c14b9e49b686ab8

Author: Khem Raj <raj.khem at gmail.com>
Date:   Sat Aug  8 11:54:55 2009 -0700

gcc-4.4.1.inc: Make cross compile for SH architecture.
checksums.ini: Add checksum for lilo.

Signed-off-by: Khem Raj <raj.khem at gmail.com>

---

 conf/checksums.ini                                 |    8 ++++
 recipes/gcc/gcc-4.4.1.inc                          |    4 ++-
 ...cc-disable-linux-unwind-with-libc-inhibit.patch |   35 ++++++++++++++++++++
 3 files changed, 46 insertions(+), 1 deletions(-)

diff --git a/conf/checksums.ini b/conf/checksums.ini
index f6cbe6e..9c62151 100644
--- a/conf/checksums.ini
+++ b/conf/checksums.ini
@@ -15430,6 +15430,10 @@ sha256=97d0ac5957745eeaf311ec38ebbbf3b30a5316b01c320a759af47129c994c20c
 md5=949c33a81e83f7718a47280bef21b90c
 sha256=197bd2b57c5e2b9bfc30bb565a4c44fbea82daa20a31fa8ba490dd61dad69f2a
 
+[http://twibble.org/dist/sh4/src/lilosh/lilo-21.tar.gz]
+md5=1e975d827ad96e1942df73f63512178e
+sha256=da2340aca2eaf451243d2e4c2bf66aa4b80cc0abaef96860da8daf5db1cae12f
+
 [http://www-users.cs.york.ac.uk/~aw/pylinda/dist/linda-0.6.tar.gz]
 md5=c3e1b6c428218968e2963182c1df1fdc
 sha256=cba8ac22d77bbf8f6ed4a98933242b89ee2426cbc216f54415eafcac1274547a
@@ -28438,6 +28442,10 @@ sha256=0937b15ca5dcd6f49adff04096610cee1f70197e17d461aefa98ed52e5ea0b72
 md5=48958b1a3fc86261a26eea40a4f7d4af
 sha256=f539e6db53233fa75d5fa389b4807d54add312fc96de71b5eb7cf4f071719027
 
+[http://www.zsh.org/pub/zsh-4.3.10.tar.bz2]
+md5=74c5b275544400082a1cde806c98682a
+sha256=63fdc0273eadbb42d164f38b0b79922c0b3df0e97084e746a318276d935a4f7c
+
 [http://www.lachner-net.de/Frames/Software/zshopi_0.2.tar.bz2]
 md5=1343c4de6d586a1b4ed2b5c97d53e717
 sha256=6a136cbc7fdb38c73fe5862f21913e8fe63864063bba833c149c1098d758a12f
diff --git a/recipes/gcc/gcc-4.4.1.inc b/recipes/gcc/gcc-4.4.1.inc
index e05da2b..a5b9d91 100644
--- a/recipes/gcc/gcc-4.4.1.inc
+++ b/recipes/gcc/gcc-4.4.1.inc
@@ -14,7 +14,9 @@ FILESPATHPKG .= ":gcc-$PV"
 SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \
         file://gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch;patch=1 \
 	file://100-uclibc-conf.patch;patch=1 \
-	  "
+	file://gcc-uclibc-locale-ctype_touplow_t.patch;patch=1 \
+	file://gcc-disable-linux-unwind-with-libc-inhibit.patch;patch=1 \
+	"
 # Language Overrides
 FORTRAN = ""
 JAVA = ""
diff --git a/recipes/gcc/gcc-4.4.1/gcc-disable-linux-unwind-with-libc-inhibit.patch b/recipes/gcc/gcc-4.4.1/gcc-disable-linux-unwind-with-libc-inhibit.patch
new file mode 100644
index 0000000..a6ba7a7
--- /dev/null
+++ b/recipes/gcc/gcc-4.4.1/gcc-disable-linux-unwind-with-libc-inhibit.patch
@@ -0,0 +1,35 @@
+Backport this patch
+
+2009-04-02  Andrew Stubbs  <ams at codesourcery.com>
+
+	* config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
+
+
+http://gcc.gnu.org/viewcvs?view=rev&revision=145442
+
+To get gcc compiled for SH
+
+-Khem
+Index: gcc-4.4.1/gcc/config/sh/linux-unwind.h
+===================================================================
+--- gcc-4.4.1.orig/gcc/config/sh/linux-unwind.h	2009-08-08 10:21:35.943210469 -0700
++++ gcc-4.4.1/gcc/config/sh/linux-unwind.h	2009-08-08 10:22:18.643210817 -0700
+@@ -24,7 +24,11 @@
+ 
+ 
+ /* Do code reading to identify a signal frame, and set the frame
+-   state data appropriately.  See unwind-dw2.c for the structs.  */
++   state data appropriately.  See unwind-dw2.c for the structs.
++   Don't use this at all if inhibit_libc is used.  */
++
++#ifndef inhibit_libc
++
+ 
+ #include <signal.h>
+ #include <sys/ucontext.h>
+@@ -248,3 +252,5 @@
+   return _URC_NO_REASON;
+ }
+ #endif /* defined (__SH5__) */
++
++#endif /* inhibit_libc */





More information about the Openembedded-commits mailing list