From 01fad71236a6753b85a0df4a2da9caed4cdaa6af Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Mon, 07 Mar 2016 11:28:16 -0500 Subject: 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. --- (limited to 'resources/scripts') diff --git a/resources/scripts/helpers/build/module/crossgcc b/resources/scripts/helpers/build/module/crossgcc index 17eaa64..56c2172 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 ) + -- cgit v0.9.1