changeset 45:d645ac0f55d6

add instration howto for PS3 to CbC-INSTALL.
author kent <kent@cr.ie.u-ryukyu.ac.jp>
date Fri, 29 Jan 2010 12:18:08 +0900
parents a14cd9f25ac4
children 9907f3135723
files CbC-INSTALL
diffstat 1 files changed, 24 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- a/CbC-INSTALL	Mon Jan 25 17:27:45 2010 +0900
+++ b/CbC-INSTALL	Fri Jan 29 12:18:08 2010 +0900
@@ -54,31 +54,31 @@
 
  * PS3でのビルド
  SPU
-    ../CbConGCC/configure --prefix=/usr/local/spu-cbc \
-      --build=powerpc --target=spu --program-prefix=spu- \
-      --disable-bootstrap --enable-checking=tree,rtl,assert \
-      --disable-nls --disable-shared --disable-threads \
-      --enable-languages=c --with-system-zlib --with-newlib \
-      --enable-version-specific-runtime-libs --disable-libssp \
-      --with-gnu-as -with-as=/usr/bin/spu-as --with-gnu-ld \
-      --with-ld=/usr/bin/spu-ld
+    $ ../GCC/configure CFLAGS='-g -O0' --prefix=$PWD/INSTALL_DIR
+      --disable-nls --disable-shared --disable-threads
+      --enable-checking=tree,rtl,assert --with-system-zlib
+      --with-newlib --enable-languages=c
+      --enable-version-specific-runtime-libs --disable-libssp
+      --program-prefix=cbc-spu- --target=spu --disable-bootstrap
+    $ make && make install
+    $ cd INSTALL_DIR; ln -s /usr/spu; cd ..
+    で、動作確認のあと
+    $ sudo make prefix=/usr/local/cbc install
+    $ cd /usr/local/cbc; ln -s /usr/spu; cd -
+
  PPU
-  binutils
-	$ tar xzvf binutils-...tar.gz
-	$ mkdir binutils_4ps3
-	$ cd binutils_4ps3
-	$ ../binutils../configure --prefix=$PWD/INSTALL_DIR
-	> --target=ppc64-yellowdog-linux
-	$ make install
-	$ cd ..
-  cross gcc
-	$ mkdir gcc_4ps3
-	$ PATH=$PWD/../binutils_4ps3/INSTALL_DIR/bin:$PATH
-	$ ../CbConGCC/configure --prefix=$PWD/INSTALL_DIR
-	> --enable-language=c --target=ppc64-yellowdog-linux
-	> --with-newlib --with-included-gettext --enable-shared
-	> --enable-threads
-	$ make
+    $ ../GCC/configure --prefix=$PWD/INSTALL_DIR
+      --host=ppc64-redhat-linux --build=ppc64-redhat-linux
+      --target=ppc64-redhat-linux --program-prefix=cbc- --disable-bootstrap
+      --enable-checking=tree,rtl,assert --disable-nls --enable-shared
+      --enable-thread=posix --enable-languages=c --with-system-zlib
+      --enable-__cxa_atexit --disable-libunwind-exceptions --disable-dssi
+      --enable-plugin --with-long-double-128 --with-gnu-as
+      --with-as=/usr/bin/as --with-gnu-ld --with-ld=/usr/bin/ld
+      --with-cpu=default32
+    $ make && make install
+    動作確認
+    $ make prefix=/usr/local/cbc install