Created
May 14, 2012 01:07
-
-
Save mash/2691074 to your computer and use it in GitHub Desktop.
build https://launchpad.net/gcc-arm-embedded/4.6/2011-q4-major on macos10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/build-common.sh b/build-common.sh | |
index 3d94d3a..29a21ae 100755 | |
--- a/build-common.sh | |
+++ b/build-common.sh | |
@@ -238,7 +238,8 @@ README_FILE=readme.txt | |
LICENSE_FILE=license.txt | |
GCC_VER=`cat $SRCDIR/$GCC/gcc/BASE-VER` | |
GCC_VER_NAME=`echo $GCC_VER | cut -d'.' -f1,2 | sed -e 's/\./_/g'` | |
-JOBS=`grep ^processor /proc/cpuinfo|wc -l` | |
+# JOBS=`grep ^processor /proc/cpuinfo|wc -l` | |
+JOBS=4 | |
BUILD=i686-linux-gnu | |
HOST_LINUX=i686-linux-gnu | |
diff --git a/build-prerequisites.sh b/build-prerequisites.sh | |
index f253f4d..f4ad1ed 100755 | |
--- a/build-prerequisites.sh | |
+++ b/build-prerequisites.sh | |
@@ -35,7 +35,9 @@ umask 022 | |
exec < /dev/null | |
-script_path=`dirname $(readlink -f $0)` | |
+# script_path=`dirname $(readlink -f $0)` | |
+# . $script_path/build-common.sh | |
+script_path=`dirname $0` | |
. $script_path/build-common.sh | |
# This file contains the sequence of commands used to build the prerequisites | |
diff --git a/build-toolchain.sh b/build-toolchain.sh | |
index ce80b4f..61efd21 100755 | |
--- a/build-toolchain.sh | |
+++ b/build-toolchain.sh | |
@@ -35,7 +35,7 @@ umask 022 | |
exec < /dev/null | |
-script_path=`dirname $(readlink -f $0)` | |
+script_path=`dirname $0` | |
. $script_path/build-common.sh | |
# This file contains the sequence of commands used to build the ARM EABI toolchain. | |
@@ -95,7 +95,7 @@ else | |
make -j$JOBS | |
fi | |
-make htmldir=$INSTALLDIR_LINUX/share/doc/html pdfdir=$INSTALLDIR_LINUX/share/doc/pdf infodir=$INSTALLDIR_LINUX/share/doc/info mandir=$INSTALLDIR_LINUX/share/doc/man install install-html install-pdf | |
+make htmldir=$INSTALLDIR_LINUX/share/doc/html pdfdir=$INSTALLDIR_LINUX/share/doc/pdf infodir=$INSTALLDIR_LINUX/share/doc/info mandir=$INSTALLDIR_LINUX/share/doc/man install | |
restoreenv | |
popd | |
@@ -129,10 +129,11 @@ $SRCDIR/$GCC/configure --build=$BUILD --host=$HOST_LINUX --target=$TARGET \ | |
--with-gmp=$BUILDDIR_LINUX/host-libs/usr \ | |
--with-mpfr=$BUILDDIR_LINUX/host-libs/usr \ | |
--with-mpc=$BUILDDIR_LINUX/host-libs/usr \ | |
- --with-ppl=$BUILDDIR_LINUX/host-libs/usr \ | |
- --with-cloog=$BUILDDIR_LINUX/host-libs/usr \ | |
+ --with-ppl=/usr/local \ | |
+ --with-cloog=/usr/local \ | |
+ --enable-cloog-backend=isl \ | |
--with-libelf=$BUILDDIR_LINUX/host-libs/usr \ | |
- "--with-host-libstdcxx=-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm" \ | |
+ "--with-host-libstdcxx=-static-libgcc -Wl,-lstdc++ -lm" \ | |
"--with-pkgversion=$PKGVERSION" \ | |
--with-extra-multilibs=armv6-m,armv7-m,armv7e-m,armv7-r | |
@@ -211,10 +212,11 @@ $SRCDIR/$GCC/configure --build=$BUILD --host=$HOST_LINUX --target=$TARGET \ | |
--with-gmp=$BUILDDIR_LINUX/host-libs/usr \ | |
--with-mpfr=$BUILDDIR_LINUX/host-libs/usr \ | |
--with-mpc=$BUILDDIR_LINUX/host-libs/usr \ | |
- --with-ppl=$BUILDDIR_LINUX/host-libs/usr \ | |
- --with-cloog=$BUILDDIR_LINUX/host-libs/usr \ | |
+ --with-ppl=/usr/local \ | |
+ --with-cloog=/usr/local \ | |
+ --enable-cloog-backend=isl \ | |
--with-libelf=$BUILDDIR_LINUX/host-libs/usr \ | |
- "--with-host-libstdcxx=-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm" \ | |
+ "--with-host-libstdcxx=-static-libgcc -Wl,-lstdc++ -lm" \ | |
"--with-pkgversion=$PKGVERSION" \ | |
--with-extra-multilibs=armv6-m,armv7-m,armv7e-m,armv7-r | |
@@ -224,7 +226,7 @@ else | |
make -j$JOBS | |
fi | |
-make htmldir=$INSTALLDIR_LINUX/share/doc/html pdfdir=$INSTALLDIR_LINUX/share/doc/pdf infodir=$INSTALLDIR_LINUX/share/doc/info mandir=$INSTALLDIR_LINUX/share/doc/man install install-html install-pdf | |
+make htmldir=$INSTALLDIR_LINUX/share/doc/html pdfdir=$INSTALLDIR_LINUX/share/doc/pdf infodir=$INSTALLDIR_LINUX/share/doc/info mandir=$INSTALLDIR_LINUX/share/doc/man install | |
pushd $INSTALLDIR_LINUX | |
rm -rf bin/arm-none-eabi-gccbug | |
@@ -263,7 +265,7 @@ else | |
make -j$JOBS | |
fi | |
-make htmldir=$INSTALLDIR_LINUX/share/doc/html pdfdir=$INSTALLDIR_LINUX/share/doc/pdf infodir=$INSTALLDIR_LINUX/share/doc/info mandir=$INSTALLDIR_LINUX/share/doc/man install install-html install-pdf | |
+make htmldir=$INSTALLDIR_LINUX/share/doc/html pdfdir=$INSTALLDIR_LINUX/share/doc/pdf infodir=$INSTALLDIR_LINUX/share/doc/info mandir=$INSTALLDIR_LINUX/share/doc/man install | |
restoreenv | |
popd | |
@@ -322,8 +324,6 @@ cp $ROOT/$README_FILE $INSTALLDIR_LINUX/ | |
cp $ROOT/$LICENSE_FILE $INSTALLDIR_LINUX/ | |
ln -s $INSTALLDIR_LINUX $INSTALL_PACKAGE_NAME | |
tar cjf $PACKAGEDIR/$PACKAGE_NAME.tar.bz2 \ | |
- --owner=0 \ | |
- --group=0 \ | |
--exclude=host-$HOST_LINUX \ | |
--exclude=host-$HOST_MINGW \ | |
$INSTALL_PACKAGE_NAME/arm-none-eabi \ | |
@@ -375,7 +375,7 @@ $SRCDIR/$BINUTILS/configure --build=$BUILD \ | |
make -j$JOBS | |
-make htmldir=$INSTALLDIR_MINGW/share/doc/html pdfdir=$INSTALLDIR_MINGW/share/doc/pdf infodir=$INSTALLDIR_MINGW/share/doc/info mandir=$INSTALLDIR_MINGW/share/doc/man install install-html install-pdf | |
+make htmldir=$INSTALLDIR_MINGW/share/doc/html pdfdir=$INSTALLDIR_MINGW/share/doc/pdf infodir=$INSTALLDIR_MINGW/share/doc/info mandir=$INSTALLDIR_MINGW/share/doc/man install | |
restoreenv | |
popd | |
@@ -437,13 +437,13 @@ $SRCDIR/$GCC/configure --build=$BUILD --host=$HOST_MINGW --target=$TARGET \ | |
--with-ppl=$BUILDDIR_MINGW/host-libs/usr \ | |
--with-cloog=$BUILDDIR_MINGW/host-libs/usr \ | |
--with-libelf=$BUILDDIR_MINGW/host-libs/usr \ | |
- "--with-host-libstdcxx=-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm" \ | |
+ "--with-host-libstdcxx=-static-libgcc -Wl,-lstdc++ -lm" \ | |
"--with-pkgversion=$PKGVERSION" \ | |
--with-extra-multilibs=armv6-m,armv7-m,armv7e-m,armv7-r | |
make -j$JOBS all-gcc | |
-make htmldir=$INSTALLDIR_MINGW/share/doc/html pdfdir=$INSTALLDIR_MINGW/share/doc/pdf infodir=$INSTALLDIR_MINGW/share/doc/info mandir=$INSTALLDIR_MINGW/share/doc/man install-gcc install-html-gcc install-pdf-gcc | |
+make htmldir=$INSTALLDIR_MINGW/share/doc/html pdfdir=$INSTALLDIR_MINGW/share/doc/pdf infodir=$INSTALLDIR_MINGW/share/doc/info mandir=$INSTALLDIR_MINGW/share/doc/man install-gcc | |
popd | |
pushd $INSTALLDIR_MINGW | |
@@ -478,7 +478,7 @@ $SRCDIR/$GDB/configure --build=$BUILD \ | |
make -j$JOBS | |
-make htmldir=$INSTALLDIR_MINGW/share/doc/html pdfdir=$INSTALLDIR_MINGW/share/doc/pdf infodir=$INSTALLDIR_MINGW/share/doc/info mandir=$INSTALLDIR_MINGW/share/doc/man install install-html install-pdf | |
+make htmldir=$INSTALLDIR_MINGW/share/doc/html pdfdir=$INSTALLDIR_MINGW/share/doc/pdf infodir=$INSTALLDIR_MINGW/share/doc/info mandir=$INSTALLDIR_MINGW/share/doc/man install | |
restoreenv | |
popd | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment