aboutsummaryrefslogtreecommitdiff
path: root/build_tc.py
diff options
context:
space:
mode:
authorRahul Chaudhry <rahulchaudhry@chromium.org>2014-11-01 09:31:15 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-11-05 06:05:33 +0000
commit8ac4ec04a55eff35b33977dbb5a0964fd62cacd8 (patch)
treeb3d1cfc76a483297e4bc80e85617c7cc567f79d1 /build_tc.py
parentc1635a82211eecd977fcf923a09017e8c9af12cd (diff)
downloadtoolchain-utils-8ac4ec04a55eff35b33977dbb5a0964fd62cacd8.tar.gz
Specify full paths for scripts run inside the chroot.
Remove the assumption that the current directory is ~/trunk/src/scripts/ when the chroot is entered with cros_sdk. BUG=chromium:429765 TEST=Ran build_chromeos.py, build_tc.py with the changes. Change-Id: I9e54fda6b5f8ec8fe18b18cf67824c923a7e82e2 Reviewed-on: https://chrome-internal-review.googlesource.com/182270 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-xbuild_tc.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/build_tc.py b/build_tc.py
index 5419b55d..ad092aaf 100755
--- a/build_tc.py
+++ b/build_tc.py
@@ -1,6 +1,8 @@
#!/usr/bin/python
#
-# Copyright 2010 Google Inc. All Rights Reserved.
+# Copyright 2010 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
"""Script to build the ChromeOS toolchain.
@@ -50,7 +52,8 @@ class ToolchainPart(object):
"chroot",
"usr/local/bin/emerge-%s" % self._board)
if not os.path.exists(cross_symlink):
- command = "./setup_board --board=%s" % self._board
+ command = ("%s/setup_board --board=%s" %
+ (misc.CHROMEOS_SCRIPTS_DIR, self._board))
self._ce.ChrootRunCommand(self._chromeos_root, command)
def Build(self):