mirror of
https://github.com/flatcar/scripts.git
synced 2026-01-15 05:22:20 +01:00
The latest gcc-config will accept the CHOST setting from the host env, so export that variable since we already spent the time running portageq to get it. This allows gcc-config to never execute portageq, and since we run it multiple times, it helps in every invocation. Along those lines, make sure we run gcc-config with `sudo -E` to pass through the setting. Since awk can handle regexps, merge the grep|awk into a single awk call. Finally, there was a slight logic typo where we would always re-run gcc-config even when the profiles were the same. This does not match the comments, nor the spirit of this code, so fix the operator typo. BUG=None TEST=`./update_chroot` still works and doesn't re-select the toolchain Change-Id: If73df81c014219f8f9ab5895e59d055696add777 Reviewed-on: https://gerrit.chromium.org/gerrit/19164 Reviewed-by: Zdenek Behan <zbehan@chromium.org> Commit-Ready: Mike Frysinger <vapier@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org>
Description
Languages
Shell
93%
Python
6.9%