cros_choose_profile: use the sysroot configuration.

Instead of using the board name or brick name, get ARCH and the overlay
stack from the sysroot's configuration file.

BUG=brillo:661
TEST=trybots.
TEST=manual: can select the minimal profile on panther.

CQ-DEPEND=CL:262921

Change-Id: I6f5300a79aa59582bb0580ee234b9c945458a437
Reviewed-on: https://chromium-review.googlesource.com/262767
Tested-by: Bertrand Simonnet <bsimonnet@chromium.org>
Reviewed-by: Steve Fung <stevefung@chromium.org>
Commit-Queue: Bertrand Simonnet <bsimonnet@chromium.org>
Trybot-Ready: Bertrand Simonnet <bsimonnet@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
1 file changed