/external/toolchain-utils/ |
D | image_chromeos.py | 44 def CheckForCrosFlash(chromeos_root, remote, log_level): argument 50 command, chromeos_root=chromeos_root, machine=remote) 58 def DisableCrosBeeps(chromeos_root, remote, log_level): argument 66 command, chromeos_root=chromeos_root, machine=remote) 72 def FindChromeOSImage(image_file, chromeos_root): argument 92 real_chroot_dir = os.path.join(os.path.realpath(chromeos_root), 'chroot') 94 real_chromeos_root = os.path.realpath(chromeos_root) 162 if options.chromeos_root is None: 168 options.chromeos_root = os.path.expanduser(options.chromeos_root) 171 board = cmd_executer.CrosLearnBoard(options.chromeos_root, options.remote) [all …]
|
D | remote_test.py | 41 if options.chromeos_root is None: 47 options.chromeos_root = os.path.expanduser(options.chromeos_root) 52 command, chromeos_root=options.chromeos_root, machine=options.remote) 63 chromeos_root=options.chromeos_root) 69 chromeos_root=options.chromeos_root) 76 chromeos_root=options.chromeos_root) 83 chromeos_root=options.chromeos_root) 92 chromeos_root=options.chromeos_root) 99 chromeos_root=options.chromeos_root) 100 board = ce.CrosLearnBoard(options.chromeos_root, options.remote)
|
D | build_chromeos.py | 120 if options.chromeos_root is None: 122 options.chromeos_root = os.path.expanduser(options.chromeos_root) 123 scripts_dir = os.path.join(options.chromeos_root, 'src', 'scripts') 144 misc.RemoveChromeBrowserObjectFiles(options.chromeos_root, options.board) 166 ret = cmd_executer.ChrootRunCommand(options.chromeos_root, command) 170 if not os.path.isdir(options.chromeos_root + '/chroot/build/' + 174 options.chromeos_root, 199 options.chromeos_root, 'CFLAGS="$(portageq-%s envvar CFLAGS) %s" ' 221 options.chromeos_root, 'CFLAGS="$(portageq-%s envvar CFLAGS) %s" ' 245 options.chromeos_root, 'CFLAGS="$(portageq-%s envvar CFLAGS) %s" ' [all …]
|
D | tc_enter_chroot.py | 136 chromeos_root = options.chromeos_root 138 chromeos_root = os.path.expanduser(chromeos_root) 142 chromeos_root = os.path.abspath(chromeos_root) 161 if not os.path.exists(chromeos_root): 162 logger.GetLogger().LogError('chromeos_root ' + options.chromeos_root + 167 if not os.path.exists(chromeos_root + '/src/scripts/build_packages'): 168 logger.GetLogger().LogError(options.chromeos_root + 177 full_mounted_tc_root = chromeos_root + '/chroot/' + mounted_tc_root 214 chromeos_root + '/chroot/') 240 command = 'cd %s/src/scripts && cros_sdk --enter' % chromeos_root [all …]
|
D | chromiumos_image_diff.py | 42 def __init__(self, image, chromeos_root, no_unmount): argument 44 self.chromeos_root = chromeos_root 324 chromeos_root = None 325 if options.chromeos_root: 326 chromeos_root = options.chromeos_root 335 chromeos_root = t 337 if not chromeos_root: 342 image = CrosImage(image_path, chromeos_root, options.no_unmount)
|
/external/toolchain-utils/crosperf/ |
D | download_images.py | 56 def GetBuildID(self, chromeos_root, xbuddy_label): argument 62 chromeos_root, command) 71 def DownloadImage(self, chromeos_root, build_id, image_name): argument 77 download_path = os.path.join(chromeos_root, 'chroot/tmp', build_id) 85 gsutil_cmd = os.path.join(chromeos_root, GS_UTIL) 98 def UncompressImage(self, chromeos_root, build_id): argument 101 os.path.join(chromeos_root, 'chroot/tmp', build_id, 106 download_path = os.path.join(chromeos_root, 'chroot/tmp', build_id) 137 def DownloadSingleFile(self, chromeos_root, build_id, package_file_name): argument 142 gsutil_cmd = os.path.join(chromeos_root, GS_UTIL) [all …]
|
D | label.py | 27 chromeos_root, argument 41 chromeos_root = os.path.expanduser(chromeos_root) 60 if not chromeos_root: 62 chromeos_root = FileUtils().ChromeOSRootFromImage(chromeos_image) 63 if not chromeos_root: 68 chromeos_root = FileUtils().CanonicalizeChromeOSRoot(chromeos_root) 69 if not chromeos_root: 71 (name, chromeos_root)) 73 self.chromeos_root = chromeos_root 76 self.chromeos_root, '.cache/distfiles/target/chrome-src-internal') [all …]
|
D | machine_manager.py | 50 def __init__(self, name, chromeos_root, log_level, cmd_exec=None): argument 60 self.chromeos_root = chromeos_root 86 command, machine=self.name, chromeos_root=self.chromeos_root) 133 command, machine=self.name, chromeos_root=self.chromeos_root) 141 command, machine=self.name, chromeos_root=self.chromeos_root) 160 command, machine=self.name, chromeos_root=self.chromeos_root) 168 command, machine=self.name, chromeos_root=self.chromeos_root) 203 chromeos_root, argument 214 self.chromeos_root = None 229 self.chromeos_root = chromeos_root [all …]
|
D | experiment.py | 28 def __init__(self, name, remote, working_directory, chromeos_root, argument 36 self.chromeos_root = chromeos_root 70 if not chromeos_root: 72 if label.chromeos_root: 73 chromeos_root = label.chromeos_root 75 if not chromeos_root: 82 self.machine_manager = machine_manager_fn(chromeos_root, acquire_timeout,
|
/external/toolchain-utils/cros_utils/ |
D | misc.py | 87 def GetChromeOSKeyFile(chromeos_root): argument 88 return os.path.join(chromeos_root, 'src', 'scripts', 'mod_for_test_scripts', 92 def GetChrootPath(chromeos_root): argument 93 return os.path.join(chromeos_root, 'chroot') 96 def GetInsideChrootPath(chromeos_root, file_path): argument 97 if not file_path.startswith(GetChrootPath(chromeos_root)): 99 (file_path, chromeos_root)) 100 return file_path[len(GetChrootPath(chromeos_root)):] 103 def GetOutsideChrootPath(chromeos_root, file_path): argument 104 return os.path.join(GetChrootPath(chromeos_root), file_path.lstrip('/')) [all …]
|
D | buildbot_utils.py | 42 def PeekTrybotImage(chromeos_root, buildbucket_id): argument 56 rc, out, _ = RunCommandInPath(chromeos_root, command) 88 def SubmitTryjob(chromeos_root, argument 123 _, out, _ = RunCommandInPath(chromeos_root, command) 132 def GetTrybotImage(chromeos_root, argument 161 buildbucket_id = SubmitTryjob(chromeos_root, buildbot_name, patch_list, 173 status, image = PeekTrybotImage(chromeos_root, buildbucket_id) 213 def DoesImageExist(chromeos_root, build): argument 219 ret = ce.ChrootRunCommand(chromeos_root, command, print_to_console=False) 223 def WaitForImage(chromeos_root, build): argument [all …]
|
D | file_utils.py | 44 def CanonicalizeChromeOSRoot(self, chromeos_root): argument 45 chromeos_root = os.path.expanduser(chromeos_root) 46 if os.path.isdir(os.path.join(chromeos_root, 'chromite')): 47 return chromeos_root 52 chromeos_root = os.path.join( 54 return self.CanonicalizeChromeOSRoot(chromeos_root) 79 def CanonicalizeChromeOSRoot(self, chromeos_root): argument
|
D | command_executer.py | 232 def RemoteAccessInitCommand(self, chromeos_root, machine): argument 235 command += '\n. ' + chromeos_root + '/src/scripts/common.sh' 236 command += '\n. ' + chromeos_root + '/src/scripts/remote_access.sh' 252 def CrosLearnBoard(self, chromeos_root, machine): argument 253 command = self.RemoteAccessInitCommand(chromeos_root, machine) 268 chromeos_root=None, argument 283 self.logger.LogFatalIf(not chromeos_root, 'chromeos_root not given!') 285 if not chromeos_root or not machine: 287 chromeos_root = os.path.expanduser(chromeos_root) 296 chromeos_root=chromeos_root, [all …]
|
D | locks.py | 18 def AcquireLock(machines, chromeos_root, timeout=1200): argument 26 chromeos_root).UpdateMachines(True) 39 def ReleaseLock(machines, chromeos_root): argument 44 chromeos_root).UpdateMachines(False)
|
/external/toolchain-utils/deprecated/ |
D | run_benchmarks.py | 71 def RunBrowserBenchmark(chromeos_root, board, bench, machine): argument 82 ret = run_tests.RunRemoteTests(chromeos_root, machine, board, benchname) 86 def RunStartupBenchmark(chromeos_root, board, machine): argument 96 ret = run_tests.RunRemoteTests(chromeos_root, machine, board, benchname) 100 def RunCpuBenchmark(chromeos_root, bench, workdir, machine): argument 121 chromeos_root=chromeos_root, 129 chromeos_root=chromeos_root, 151 chromeos_root=chromeos_root, 186 if options.chromeos_root is None: 203 retv = RunCpuBenchmark(options.chromeos_root, arg, options.workdir, [all …]
|
D | cros_login.py | 68 def RestartUI(remote, chromeos_root, login=True): argument 69 chromeos_root = os.path.expanduser(chromeos_root) 73 ce.CrosRunCommand(command, machine=remote, chromeos_root=chromeos_root) 88 chromeos_root=chromeos_root, 93 chromeos_root=chromeos_root, 110 return RestartUI(options.remote, options.chromeos_root)
|
D | remote_gcc_build.py | 47 def FindVersionForToolchain(branch, chromeos_root): argument 52 manifest_dir = os.path.join(chromeos_root, 'manifest-internal') 189 def UploadManifest(manifest, chromeos_root, branch='master'): argument 191 chromeos_root = misc.CanonicalizePath(chromeos_root) 192 manifest_dir = os.path.join(chromeos_root, 'manifest-internal') 214 def GetManifestPatch(manifests, version, chromeos_root, branch='master'): argument 219 return UploadManifest(to_file, chromeos_root, branch) 236 def ReplaceSysroot(chromeos_root, dest_dir, target): argument 241 board_dir = os.path.join(chromeos_root, 'chroot', 'build', board) 248 image_dir = os.path.join(chromeos_root, 'src', 'build', 'images', board, [all …]
|
D | weekly_report.py | 25 chromeos_root, cmd_executer): argument 60 """ % (test_name, chromeos_root, 68 chromeos_root, cmd_executer): argument 100 """ % (vanilla_image_path.split('/')[-1], chromeos_root, 114 """ % (test_name, chromeos_root, 202 chromeos_root = None 216 chromeos_root = chroot 217 if chromeos_root: 219 if chromeos_root: 222 if not chromeos_root: [all …]
|
D | build_chrome_browser.py | 113 if options.chromeos_root is None: 133 options.chromeos_root = misc.CanonicalizePath(options.chromeos_root) 158 misc.RemoveChromeBrowserObjectFiles(options.chromeos_root, options.board) 165 ret = cmd_executer.ChrootRunCommandWOutput(options.chromeos_root, command) 193 options.chromeos_root, 202 ret = cmd_executer.ChrootRunCommand(options.chromeos_root, command) 211 ret = cmd_executer.ChrootRunCommand(options.chromeos_root, 222 options.chromeos_root, options.board, flags_file_name) 231 options.chromeos_root, options.board)
|
D | build_benchmarks.py | 203 if options.chromeos_root is None: 212 options.chromeos_root = os.path.expanduser(options.chromeos_root) 231 retval = cmd_executer.ChrootRunCommand(options.chromeos_root, 238 options.chromeos_root, 263 '--chromeos_root=' + options.chromeos_root, 271 benchdir = '%s/src/build/images/%s/latest' % (options.chromeos_root, 285 '--chromeos_root=' + options.chromeos_root, 292 benchdir = '%s/src/build/images/%s/latest' % (options.chromeos_root,
|
D | build_tool.py | 52 chromeos_root, argument 61 self._chromeos_root = chromeos_root 338 def ResetToolEbuildFile(chromeos_root, tool_name): argument 349 os.path.join(chromeos_root, CHROMIUMOS_OVERLAY_PATH), 354 os.path.join(chromeos_root, CHROMIUMOS_OVERLAY_PATH)) 725 if not options.chromeos_root: 731 options.chromeos_root = wdir 735 if not options.chromeos_root: 739 options.chromeos_root = os.path.abspath( 740 os.path.expanduser(options.chromeos_root)) [all …]
|
/external/toolchain-utils/go/chromeos/ |
D | setup_chromeos_testing.py | 82 def GenerateGoHelperScripts(ce, arm_board, x86_board, chromeos_root): argument 90 toolchain_dir = os.path.join(chromeos_root, 'src', 'third_party', 115 chromeos_root): argument 119 ssh_dir = os.path.join(chromeos_root, 'chroot', 'home', user, '.ssh') 121 src_file = os.path.join(chromeos_root, 'src', 'scripts', 169 def CleanUp(ce, x86_board, arm_board, chromeos_root): argument 178 toolchain_dir = os.path.join(chromeos_root, 'src', 'third_party', 223 if not os.path.exists(options.chromeos_root): 224 print('Invalid ChromeOS Root: %s' % options.chromeos_root) 241 options.chromeos_root) [all …]
|
/external/toolchain-utils/deprecated/crb/ |
D | crb_driver.py | 20 def CanonicalizeChromeOSRoot(chromeos_root): argument 21 chromeos_root = os.path.expanduser(chromeos_root) 22 if os.path.isfile(os.path.join(chromeos_root, 'src/scripts/enter_chroot.sh')): 23 return chromeos_root 77 chromeos_root = main_chromeos_root 81 chromeos_root = CanonicalizeChromeOSRoot(image_chromeos_root) 82 assert chromeos_root, 'chromeos_root: %s invalid' % image_chromeos_root 84 chromeos_root = CanonicalizeChromeOSRoot(main_chromeos_root) 85 assert chromeos_root, 'chromeos_root: %s invalid' % main_chromeos_root 90 if not MachineManagerSingleton().chromeos_root: [all …]
|
/external/toolchain-utils/deprecated/fdo_scripts/ |
D | profile_cycler.py | 27 def __init__(self, chromeos_root, board, cycler, profile_dir, remote): argument 28 self._chromeos_root = chromeos_root 50 chromeos_root=self._chromeos_root, 59 chromeos_root=self._chromeos_root, 64 chromeos_root=self._chromeos_root, 84 chromeos_root=self._chromeos_root, 91 chromeos_root=self._chromeos_root, 111 chromeos_root=self._chromeos_root, 118 chromeos_root=self._chromeos_root, 185 cp = CyclerProfiler(options.chromeos_root, options.board, options.cycler,
|
/external/toolchain-utils/heatmaps/ |
D | heat_map.py | 31 chromeos_root, argument 37 self.chromeos_root = os.path.realpath(os.path.expanduser(chromeos_root)) 51 chroot_prefix = os.path.join(self.chromeos_root, 'chroot') 61 prefix=os.path.join(self.chromeos_root, 'src/')) 71 retval = self.ce.ChrootRunCommand(self.chromeos_root, cmd) 163 if not IsARepoRoot(options.chromeos_root): 164 parser.error('%s does not contain .repo dir.' % options.chromeos_root) 177 heatmap_producer = HeatMapProducer(options.chromeos_root, options.perf_data,
|