[coreboot-gerrit] New patch to review for coreboot: a7e47c7 xcompile: break out big loop content into function

Patrick Georgi (patrick@georgi-clan.de) gerrit at coreboot.org
Wed May 14 16:38:32 CEST 2014


Patrick Georgi (patrick at georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5745

-gerrit

commit a7e47c7558a4cdd572b1a9cf7f0fa62089f3deb3
Author: Patrick Georgi <patrick at georgi-clan.de>
Date:   Wed May 14 14:32:11 2014 +0200

    xcompile: break out big loop content into function
    
    Change-Id: Id98afa956a2af7113a6ef848b436d661a1fa39f2
    Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
---
 util/xcompile/xcompile | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index cb27306..239c233 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
 



More information about the coreboot-gerrit mailing list