[scripts] add parallel building script and use it in most build scripts

This commit is contained in:
Travis Geiselbrecht
2019-03-30 20:02:18 -07:00
parent 4148863969
commit 41a7937444
17 changed files with 94 additions and 50 deletions

View File

@@ -1,4 +1,6 @@
#!/bin/bash
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
function HELP {
echo "help:"
@@ -95,6 +97,6 @@ elif [ $DO_MINIHEAP == 1 ]; then
MAKE_VARS=LK_HEAP_IMPLEMENTATION=miniheap
fi
make $MAKE_VARS $PROJECT -j4 &&
$DIR/make-parallel $MAKE_VARS $PROJECT &&
echo $SUDO $QEMU $ARGS $@ &&
$SUDO $QEMU $ARGS $@