summaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorKlemens 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)
commit094dcb6907373bb62165bee33311419600d8a4cc (patch)
tree294c5f128d4882f755eae277ac255749a5f16980 /resources
parent5016e9e0c6dd30fb49e50b698fc857f15aae6de7 (diff)
downloadlibreboot-094dcb6907373bb62165bee33311419600d8a4cc.zip
libreboot-094dcb6907373bb62165bee33311419600d8a4cc.tar.gz
libreboot-094dcb6907373bb62165bee33311419600d8a4cc.tar.bz2
scripts: use the -j option in make (multithreaded compilation)
Diffstat (limited to 'resources')
-rwxr-xr-xresources/scripts/helpers/build/module/bucts3
-rwxr-xr-xresources/scripts/helpers/build/module/coreboot3
-rwxr-xr-xresources/scripts/helpers/build/module/flashrom13
-rwxr-xr-xresources/scripts/helpers/build/module/grub3
-rwxr-xr-xresources/scripts/helpers/build/module/i945pwm3
-rwxr-xr-xresources/scripts/helpers/build/module/ich9deblob3
-rwxr-xr-xresources/scripts/helpers/build/module/memtest86plus3
-rwxr-xr-xresources/scripts/helpers/build/roms/withgrub_helper3
8 files changed, 21 insertions, 13 deletions
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 <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
@@ -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 <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
@@ -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 <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
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 <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
@@ -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 <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,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 <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
@@ -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 <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
@@ -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 <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
@@ -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