diff options
author | Klemens Nanni <klemens@posteo.de> | 2015-08-16 12:01:21 (EDT) |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-08-16 12:05:34 (EDT) |
commit | 094dcb6907373bb62165bee33311419600d8a4cc (patch) | |
tree | 294c5f128d4882f755eae277ac255749a5f16980 /resources/scripts/helpers/build/module/flashrom | |
parent | 5016e9e0c6dd30fb49e50b698fc857f15aae6de7 (diff) | |
download | libreboot-094dcb6907373bb62165bee33311419600d8a4cc.zip libreboot-094dcb6907373bb62165bee33311419600d8a4cc.tar.gz libreboot-094dcb6907373bb62165bee33311419600d8a4cc.tar.bz2 |
scripts: use the -j option in make (multithreaded compilation)
Diffstat (limited to 'resources/scripts/helpers/build/module/flashrom')
-rwxr-xr-x | resources/scripts/helpers/build/module/flashrom | 13 |
1 files changed, 7 insertions, 6 deletions
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 <info@gluglug.org.uk> +# Copyright (C) 2015 Klemens Nanni <contact@autoboot.org> # # 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 |