Ahmad Sharif | 795ed17 | 2011-06-30 00:24:02 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
| 4 | # Use of this source code is governed by a BSD-style license that can be |
| 5 | # found in the LICENSE file. |
| 6 | |
| 7 | # Script to switch the toolchain compiler. In addition to switching the |
| 8 | # compiler by calling gcc-config, it copies over the libgcc_s.so and |
| 9 | # libstdc++.so files to all board roots that use this cross compiler. |
David James | 7c2e2f7 | 2012-07-10 17:17:10 | [diff] [blame] | 10 | . /usr/lib/crosutils/common.sh || exit 1 |
Ahmad Sharif | 795ed17 | 2011-06-30 00:24:02 | [diff] [blame] | 11 | . "${SRC_ROOT}/platform/dev/toolchain_utils.sh" || |
| 12 | ! echo "Unable to load toolchain_utils.sh" || exit 1 |
| 13 | |
| 14 | cros_gcc_config "$@" |