Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

build-toolchain.sh now makes use of all processors.

  • Loading branch information...
commit d0ebce95f6c09893544b0848456d083f66e35765 1 parent 811d93e
@splatterb0y splatterb0y authored
Showing with 9 additions and 9 deletions.
  1. +9 −9 toolchain/build-toolchain.sh
View
18 toolchain/build-toolchain.sh
@@ -7,7 +7,7 @@
######### Setup Variables ###########
MYDIR="$PWD/`dirname $0`"
-
+declare -i CPU="$(cat /proc/cpuinfo | grep processor | wc -l) + 1"
# Package URL
PKG_MIRROR="http://www.gnuarm.com"

the url is no longer valid, packages wont be able to be downloaded. Luckily i found the correct url and changed in the toolchain.sh file. The correct one that can be used now is "www2.amontec.com/gnuarm". It worked for me completly! image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@@ -171,14 +171,14 @@ stage_binutils_configure() {
stage_binutils_build() {
echo "- Building binutils"
cd $TOOLCHAIN_PATH/binutils-build
- log make all
+ log make -j$CPU all
checkRet "Failed to build binutils"
}
stage_binutils_install() {
echo "- Installing binutils"
cd $TOOLCHAIN_PATH/binutils-build
- log make install
+ log make -j$CPU install
checkRet "Failed to install binutils"
}
@@ -216,14 +216,14 @@ stage_gcc_configure() {
stage_gcc_build() {
echo "- Building GCC part 1"
cd $TOOLCHAIN_PATH/gcc-build
- log make all-gcc
+ log make -j$CPU all-gcc
checkRet "Failed to build GCC part 1"
}
stage_gcc_install() {
echo "- Installing GCC part 1"
cd $TOOLCHAIN_PATH/gcc-build
- log make install-gcc
+ log make -j$CPU install-gcc
checkRet "Failed to install GCC part 1"
}
@@ -252,28 +252,28 @@ stage_makesymlink() {
stage_newlib_build() {
echo "- Building Newlib"
cd $TOOLCHAIN_PATH/newlib-build
- log make all
+ log make -j$CPU all
checkRet "Failed to build newlib"
}
stage_newlib_install() {
echo "- Installing NewLib"
cd $TOOLCHAIN_PATH/newlib-build
- log make install
+ log make -j$CPU install
checkRet "Failed to install newlib"
}
stage_gcc_build2() {
echo "- Building GCC part 2"
cd $TOOLCHAIN_PATH/gcc-build
- log make all
+ log make -j$CPU all
checkRet "Failed to build GCC part 2"
}
stage_gcc_install2() {
echo "- Installing GCC part 2"
cd $TOOLCHAIN_PATH/gcc-build
- log make install
+ log make -j$CPU install
checkRet "Failed to install GCC part 2"
}
Please sign in to comment.
Something went wrong with that request. Please try again.