Skip to content
Snippets Groups Projects
Commit 0095015a authored by Jan-Tarek Butt's avatar Jan-Tarek Butt
Browse files

add dynamic multithread building for targets

parent 6db029a5
No related branches found
No related tags found
No related merge requests found
...@@ -21,10 +21,11 @@ git clone https://github.com/freifunk-gluon/gluon.git ./gluon -b $GLUON_VERSION ...@@ -21,10 +21,11 @@ git clone https://github.com/freifunk-gluon/gluon.git ./gluon -b $GLUON_VERSION
mv gluon/* ./ mv gluon/* ./
make update || exit 1 make update || exit 1
CPUS=$(grep -c processor /proc/cpuinfo)
while read line; do while read line; do
if [[ $line == *GluonTarget* ]]; then if [[ $line == *GluonTarget* ]]; then
targ=$(echo $line | sed -e 's/^.*GluonTarget//' -e 's/^,//' -e 's/)).*//' -e 's/[,]/-/') targ=$(echo $line | sed -e 's/^.*GluonTarget//' -e 's/^,//' -e 's/)).*//' -e 's/[,]/-/')
make GLUON_TARGET=$targ BROKEN=1 GLUON_BRANCH=$GLUON_BRANCH || exit 1 make -j $((CPUS*2)) GLUON_TARGET=$targ BROKEN=1 GLUON_BRANCH=$GLUON_BRANCH || exit 1
fi; fi;
done < "targets/targets.mk" done < "targets/targets.mk"
make manifest GLUON_BRANCH=$GLUON_BRANCH make manifest GLUON_BRANCH=$GLUON_BRANCH
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment