build target by the alphabetical order

We want to replace armv7a-cros-linux-gnueabi with
armv7a-cros-linux-gnueabihf. During the transition, we have to keep
these two sets of toolchain at the same time. Because of install
conflict issue, we do not install compiler-rt for
armv7a-cros-linux-gnueabihf and use the one from
armv7a-cros-linux-gnueabi. This incurs implicit dependency between
armv7a-cros-linux-gnueabi and armv7a-cros-linux-gnueabihf. This
patch makes sure armv7a-cros-linux-gnueabi get installed before
armv7a-cros-linux-gnueabihf.

BUG=chromium:711369
TEST=cbuildbot chromiumos-sdk

Change-Id: I29d17456b18f6c8d608de4973aa5f5fecac1a869
Reviewed-on: https://chromium-review.googlesource.com/711595
Commit-Ready: Yunlian Jiang <yunlian@chromium.org>
Tested-by: Yunlian Jiang <yunlian@chromium.org>
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
diff --git a/scripts/cros_setup_toolchains.py b/scripts/cros_setup_toolchains.py
index 79d77aa..9b5a412 100644
--- a/scripts/cros_setup_toolchains.py
+++ b/scripts/cros_setup_toolchains.py
@@ -255,7 +255,11 @@
     cmdbase.extend(['--overlays', overlays])
     cmdbase.extend(['--ov-output', CROSSDEV_OVERLAY])
 
-    for target in targets:
+    # Build target by the alphabetical order to make sure
+    # armv7a-cros-linux-gnueabihf builds after armv7a-cros-linux-gnueabi
+    # because some dependency issue. This can be reverted once we
+    # migrated to armv7a-cros-linux-gnueabihf. crbug.com/711369
+    for target in sorted(targets):
       if config_only and target in configured_targets:
         continue