diff options
author | Rahul Chaudhry <rahulchaudhry@chromium.org> | 2014-11-04 15:18:47 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-11-06 00:21:28 +0000 |
commit | 215c12ff93f89edcf42fa744e9767ff606d4df0f (patch) | |
tree | 8724bcb5b482cbf9e602fa84ae0f5dcb0b117ab5 /build_tc.py | |
parent | 8ac4ec04a55eff35b33977dbb5a0964fd62cacd8 (diff) | |
download | toolchain-utils-215c12ff93f89edcf42fa744e9767ff606d4df0f.tar.gz |
Copy the gcc libs to the appropriate destination directory for the board.
Use get_board_arch defined in toolchain_utils to get the right destination
directory for gcc libs.
BUG=chromium:429775
TEST=Ran build_tc.py for panther board.
Change-Id: I1eff4ac788dd61338037838f7d3f688163a6c2bc
Reviewed-on: https://chrome-internal-review.googlesource.com/182626
Reviewed-by: Luis Lozano <llozano@chromium.org>
Commit-Queue: Rahul Chaudhry <rahulchaudhry@google.com>
Tested-by: Rahul Chaudhry <rahulchaudhry@google.com>
Diffstat (limited to 'build_tc.py')
-rwxr-xr-x | build_tc.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/build_tc.py b/build_tc.py index ad092aaf..34cba543 100755 --- a/build_tc.py +++ b/build_tc.py @@ -32,6 +32,8 @@ class ToolchainPart(object): self._board = board self._ctarget = misc.GetCtargetFromBoard(self._board, self._chromeos_root) + self._gcc_libs_dest = misc.GetGccLibsDestForBoard(self._board, + self._chromeos_root) self.tag = "%s-%s" % (name, self._ctarget) self._ce = command_executer.GetCommandExecuter() self._mask_file = os.path.join( @@ -158,8 +160,8 @@ class ToolchainPart(object): if rv != 0: return rv if self._name == "gcc": - command = ("sudo cp -r /usr/lib/gcc/%s /build/%s/usr/lib/gcc/." % - (self._ctarget, self._board)) + command = ("sudo cp -r /usr/lib/gcc/%s %s" % + (self._ctarget, self._gcc_libs_dest)) rv = self._ce.ChrootRunCommand(self._chromeos_root, command) return rv |