From 094dcb6907373bb62165bee33311419600d8a4cc Mon Sep 17 00:00:00 2001 From: Klemens Nanni Date: Sun, 16 Aug 2015 12:01:21 -0400 Subject: scripts: use the -j option in make (multithreaded compilation) --- (limited to 'resources/scripts/helpers/build/module/flashrom') diff --git a/resources/scripts/helpers/build/module/flashrom b/resources/scripts/helpers/build/module/flashrom index 0d2d1bf..b37299e 100755 --- a/resources/scripts/helpers/build/module/flashrom +++ b/resources/scripts/helpers/build/module/flashrom @@ -3,6 +3,7 @@ # helper script: builds flashrom source code # # Copyright (C) 2014, 2015 Francis Rowe +# Copyright (C) 2015 Klemens Nanni # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -33,12 +34,12 @@ cd "flashrom/" make clean if (( $# != 1 )); then - make + make -j$(nproc) else if [ "${1}" = "static" ]; then - make SHARED=0 CC='gcc -static' + make SHARED=0 CC='gcc -static' -j$(nproc) else - make + make -j$(nproc) fi fi @@ -59,12 +60,12 @@ do make clean if (( $# != 1 )); then - make + make -j$(nproc) else if [ "${1}" = "static" ]; then - make SHARED=0 CC='gcc -static' + make SHARED=0 CC='gcc -static' -j$(nproc) else - make + make -j$(nproc) fi fi -- cgit v0.9.1