Skip to content

Commit 880fdc6

Browse files
ewpafrank-w
authored andcommitted
build.sh: Build DEB packages in parallel.
1 parent 7ebbad7 commit 880fdc6

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
@@ -331,8 +331,9 @@ function pack {
331331
function pack_debs {
332332
get_version
333333
echo "pack linux-headers, linux-image, linux-libc-dev debs..."
334-
echo "LOCALVERSION=${gitbranch} board=$board ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE"
335-
LOCALVERSION="${gitbranch}" board="$board" KDEB_COMPRESS=gzip make bindeb-pkg
334+
echo "LOCALVERSION=${gitbranch} board=$board ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE"
335+
LOCALVERSION="${gitbranch}" board="$board" KDEB_COMPRESS=gzip make -j${numproc} bindeb-pkg
336+
if [[ $? -ne 0 ]];then exit 1;fi;
336337
ls ../*.deb
337338
}
338339

0 commit comments

Comments
 (0)