summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2014-05-14 14:32:11 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2014-05-15 10:07:29 +0200
commite0187df61bea98d506c8cddf5d7674d09cb50390 (patch)
tree947e56aadd6152015518ec831394357bcbbc5b5e
parentadc241326c6b751911d4ef6763aa9bea0fa12934 (diff)
downloadcoreboot-e0187df61bea98d506c8cddf5d7674d09cb50390.tar.xz
xcompile: break out big loop content into function
Change-Id: Id98afa956a2af7113a6ef848b436d661a1fa39f2 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/5745 Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
-rw-r--r--util/xcompile/xcompile10
1 files changed, 8 insertions, 2 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index cb27306935..239c23375c 100644
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -185,8 +185,9 @@ arch_config_x86() {
TWIDTH="32"
}
-# This loops over all supported architectures.
-for architecture in $SUPPORTED_ARCHITECTURE; do
+test_architecture() {
+ architecture=$1
+
GCCPREFIX="invalid"
if type arch_config_$architecture > /dev/null; then
arch_config_$architecture
@@ -225,5 +226,10 @@ for architecture in $SUPPORTED_ARCHITECTURE; do
detect_special_flags "$architecture"
report_arch_toolchain
+}
+
+# This loops over all supported architectures.
+for architecture in $SUPPORTED_ARCHITECTURE; do
+ test_architecture $architecture
done