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) --- diff --git a/resources/scripts/helpers/build/module/bucts b/resources/scripts/helpers/build/module/bucts index 8f2a49a..08ed951 100755 --- a/resources/scripts/helpers/build/module/bucts +++ b/resources/scripts/helpers/build/module/bucts @@ -3,6 +3,7 @@ # helper script: builds bucts 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 @@ -43,7 +44,7 @@ if [ "${buildtype}" = "static" ]; then fi make clean -make +make -j$(nproc) if [ "${buildtype}" = "static" ]; then patch "Makefile" -R < "../resources/bucts/patch/staticlink.diff" diff --git a/resources/scripts/helpers/build/module/coreboot b/resources/scripts/helpers/build/module/coreboot index 1522196..c939068 100755 --- a/resources/scripts/helpers/build/module/coreboot +++ b/resources/scripts/helpers/build/module/coreboot @@ -3,6 +3,7 @@ # helper script: builds the dependencies that coreboot needs before building a ROM image # # 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 @@ -37,7 +38,7 @@ cd "coreboot/" # cbfstool cd "util/cbfstool/" -make +make -j$(nproc) # done. go back to coreboot dir cd "../../" 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 diff --git a/resources/scripts/helpers/build/module/grub b/resources/scripts/helpers/build/module/grub index e6b548a..fe073d6 100755 --- a/resources/scripts/helpers/build/module/grub +++ b/resources/scripts/helpers/build/module/grub @@ -3,6 +3,7 @@ # helper script: builds GRUB 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 @@ -37,7 +38,7 @@ cd "grub/" # build grub ./autogen.sh ./configure --with-platform=coreboot -make +make -j$(nproc) printf "\n\n" diff --git a/resources/scripts/helpers/build/module/i945pwm b/resources/scripts/helpers/build/module/i945pwm index 0c5200c..c263b25 100755 --- a/resources/scripts/helpers/build/module/i945pwm +++ b/resources/scripts/helpers/build/module/i945pwm @@ -3,6 +3,7 @@ # helper script: builds i945-pwm 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,7 +34,7 @@ cd "resources/utilities/i945-pwm/" make clean # build it -make +make -j$(nproc) # done. go back to main directory cd "../../../" diff --git a/resources/scripts/helpers/build/module/ich9deblob b/resources/scripts/helpers/build/module/ich9deblob index d1d0d2f..7622b87 100755 --- a/resources/scripts/helpers/build/module/ich9deblob +++ b/resources/scripts/helpers/build/module/ich9deblob @@ -3,6 +3,7 @@ # helper script: builds ich9deblob 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 @@ -35,7 +36,7 @@ cd "resources/utilities/ich9deblob/" make clean # build ich9deblob -make +make -j$(nproc) # done. go back to main directory cd "../../../" diff --git a/resources/scripts/helpers/build/module/memtest86plus b/resources/scripts/helpers/build/module/memtest86plus index 8fd9c1d..ca9c7b7 100755 --- a/resources/scripts/helpers/build/module/memtest86plus +++ b/resources/scripts/helpers/build/module/memtest86plus @@ -3,6 +3,7 @@ # helper script: builds memtest86+ 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 @@ -35,7 +36,7 @@ cd "memtest86+-5.01/" make clean # build memtest86+ -make +make -j$(nproc) # done. go back to main directory cd "../" diff --git a/resources/scripts/helpers/build/roms/withgrub_helper b/resources/scripts/helpers/build/roms/withgrub_helper index d68e9a2..fbd0cfd 100755 --- a/resources/scripts/helpers/build/roms/withgrub_helper +++ b/resources/scripts/helpers/build/roms/withgrub_helper @@ -3,6 +3,7 @@ # helper script: create ROM images for a given system, with GRUB # # 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 @@ -75,7 +76,7 @@ do make clean mv "config_${romtype}" ".config" mv "grub_${romtype}.elf" "grub.elf" - make + make -j$(nproc) mv "grub.elf" "grub_${romtype}.elf" mv "build/coreboot.rom" "${1}_${romtype}.rom" # .config no longer needed -- cgit v0.9.1