commit 99f234e993c484882944d2ab31bad68865f9f09b
parent 197b799f450c1ec761b819698224e618f076e0af
Author: sin <sin@2f30.org>
Date: Fri, 6 Sep 2013 10:53:51 +0100
Add nprocs
Diffstat:
4 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/cross-scripts/musl-0.9.13 b/cross-scripts/musl-0.9.13
@@ -13,7 +13,7 @@ unpack() {
build() {
pushd src/musl-0.9.13
./configure --prefix=$top/cross --syslibdir=$top/cross/lib
- make -j2
+ make -j$nprocs
popd
}
diff --git a/pkgs/sbase b/pkgs/sbase
@@ -7,7 +7,7 @@ fetch() {
build() {
pushd src/sbase
make clean
- make CC=musl-gcc LDFLAGS=-static
+ make -j$nprocs CC=musl-gcc LDFLAGS=-static
popd
}
diff --git a/pkgs/ubase b/pkgs/ubase
@@ -7,7 +7,7 @@ fetch() {
build() {
pushd src/ubase
make clean
- make CC=musl-gcc LDFLAGS=-static
+ make -j$nprocs CC=musl-gcc LDFLAGS=-static
popd
}
diff --git a/stage0 b/stage0
@@ -3,8 +3,9 @@
# Export important variables for the build scripts
top=$(pwd)
root=$top/root
+nprocs=4
mirror=http://dl.2f30.org/morpheus-pkgs
-export top root mirror
+export top root nprocs mirror
./clean
# Create directory hierarchy