Skip to content

Commit 9c50df6

Browse files
ewpafrank-w
authored andcommitted
build.sh: Build DEB packages in parallel.
1 parent 19bc745 commit 9c50df6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,9 @@ function pack {
326326
function pack_debs {
327327
get_version
328328
echo "pack linux-headers, linux-image, linux-libc-dev debs..."
329-
echo "LOCALVERSION=${gitbranch} board=$board ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE"
330-
LOCALVERSION="${gitbranch}" board="$board" KDEB_COMPRESS=gzip make bindeb-pkg
329+
echo "LOCALVERSION=${gitbranch} board=$board ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE"
330+
LOCALVERSION="${gitbranch}" board="$board" KDEB_COMPRESS=gzip make -j${numproc} bindeb-pkg
331+
if [[ $? -ne 0 ]];then exit 1;fi;
331332
ls ../*.deb
332333
}
333334

0 commit comments

Comments
 (0)