sysroot_lib: Infer toolchain from sysroot's config.

If the toolchain is not provided when creating wrappers, use the value
from make.conf.board_setup.

BUG=brillo:662
TEST=trybots.
TEST=Unittests.

Change-Id: Ibc05efbea7204eaaabc1eb9b50363b7de144c460
Reviewed-on: https://chromium-review.googlesource.com/262923
Trybot-Ready: Bertrand Simonnet <bsimonnet@chromium.org>
Tested-by: Bertrand Simonnet <bsimonnet@chromium.org>
Reviewed-by: Steve Fung <stevefung@chromium.org>
Commit-Queue: Bertrand Simonnet <bsimonnet@chromium.org>
diff --git a/scripts/cros_sysroot_utils.py b/scripts/cros_sysroot_utils.py
index 96780c1..3009fe9 100644
--- a/scripts/cros_sysroot_utils.py
+++ b/scripts/cros_sysroot_utils.py
@@ -28,8 +28,7 @@
   wrapper = subparser.add_parser('create-wrappers')
   wrapper.add_argument('--sysroot', help='Path to the sysroot.', required=True)
   wrapper.add_argument('--friendlyname', help='Name to append to the commands.')
-  wrapper.add_argument('--toolchain', help='Toolchain used in this sysroot.',
-                       required=True)
+  wrapper.add_argument('--toolchain', help='Toolchain used in this sysroot.')
   wrapper.set_defaults(command='create-wrappers')
 
   config = subparser.add_parser('generate-config')