aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2016-03-07 16:28:16 +0000
committerFrancis Rowe <info@gluglug.org.uk>2016-03-07 16:28:16 +0000
commit01fad71236a6753b85a0df4a2da9caed4cdaa6af (patch)
treeeabe5b41dcab8635411a9b82e571a10d06d8f5de /resources
parent239bfb38a5586047fa8268d1aa0966133fb3ee0b (diff)
downloadlibrebootfr-01fad71236a6753b85a0df4a2da9caed4cdaa6af.tar.gz
librebootfr-01fad71236a6753b85a0df4a2da9caed4cdaa6af.zip
build/module/crossgcc: Allow user to specify what architectures they want
By default, libreboot will built for all relevant architectures, but this patch allows the user to skip some if they want to.
Diffstat (limited to 'resources')
-rwxr-xr-xresources/scripts/helpers/build/module/crossgcc14
1 files changed, 10 insertions, 4 deletions
diff --git a/resources/scripts/helpers/build/module/crossgcc b/resources/scripts/helpers/build/module/crossgcc
index 17eaa64f..56c2172e 100755
--- a/resources/scripts/helpers/build/module/crossgcc
+++ b/resources/scripts/helpers/build/module/crossgcc
@@ -26,9 +26,15 @@ set -u -e
./build clean crossgcc
-# Now build crossgcc
(
-cd "crossgcc/util/crossgcc"
-make build-i386
-make build-arm
+cd "crossgcc/util/crossgcc/"
+if [ $# -lt 1 ]; then
+ make build-i386
+ make build-arm
+else
+ for architecture in "${@}"; do
+ make build-${architecture}
+ done
+fi
)
+