/external/toolchain-utils/ |
D | image_chromeos.py | 39 def CheckForCrosFlash(chromeos_root, remote, log_level): argument 45 chromeos_root=chromeos_root, 102 if options.chromeos_root is None: 108 options.chromeos_root = os.path.expanduser(options.chromeos_root) 111 board = cmd_executer.CrosLearnBoard(options.chromeos_root, options.remote) 116 images_dir = misc.GetImageDir(options.chromeos_root, board) 138 list(options.remote.split()), options.chromeos_root) 152 chromeos_root=options.chromeos_root, 162 [found, located_image] = LocateOrCopyImage(options.chromeos_root, 169 is_test_image = IsImageModdedForTest(options.chromeos_root, [all …]
|
D | remote_test.py | 38 if options.chromeos_root is None: 44 options.chromeos_root = os.path.expanduser(options.chromeos_root) 49 chromeos_root=options.chromeos_root, 60 chromeos_root=options.chromeos_root) 65 chromeos_root=options.chromeos_root) 71 chromeos_root=options.chromeos_root) 77 chromeos_root=options.chromeos_root) 85 chromeos_root=options.chromeos_root) 91 chromeos_root=options.chromeos_root) 92 board = ce.CrosLearnBoard(options.chromeos_root, options.remote)
|
D | cros_login.py | 69 def RestartUI(remote, chromeos_root, login=True): argument 70 chromeos_root = os.path.expanduser(chromeos_root) 74 ce.CrosRunCommand(command, machine=remote, chromeos_root=chromeos_root) 88 chromeos_root=chromeos_root, 92 chromeos_root=chromeos_root, 113 return RestartUI(options.remote, options.chromeos_root)
|
D | remote_gcc_build.py | 46 def FindVersionForToolchain(branch, chromeos_root): argument 51 manifest_dir = os.path.join(chromeos_root, 'manifest-internal') 186 def UploadManifest(manifest, chromeos_root, branch='master'): argument 188 chromeos_root = misc.CanonicalizePath(chromeos_root) 189 manifest_dir = os.path.join(chromeos_root, 'manifest-internal') 211 def GetManifestPatch(manifests, version, chromeos_root, branch='master'): argument 216 return UploadManifest(to_file, chromeos_root, branch) 233 def ReplaceSysroot(chromeos_root, dest_dir, target): argument 238 board_dir = os.path.join(chromeos_root, 'chroot', 'build', board) 245 image_dir = os.path.join(chromeos_root, 'src', 'build', 'images', board, [all …]
|
D | build_chromeos.py | 108 if options.chromeos_root is None: 110 options.chromeos_root = os.path.expanduser(options.chromeos_root) 111 scripts_dir = os.path.join(options.chromeos_root, 'src', 'scripts') 132 misc.RemoveChromeBrowserObjectFiles(options.chromeos_root, options.board) 155 ret = cmd_executer.ChrootRunCommand(options.chromeos_root, command) 159 if not os.path.isdir(options.chromeos_root + '/chroot/build/' + 162 ret = cmd_executer.ChrootRunCommand(options.chromeos_root, 189 options.chromeos_root, "CFLAGS=\"$(portageq-%s envvar CFLAGS) %s\" " 211 options.chromeos_root, "CFLAGS=\"$(portageq-%s envvar CFLAGS) %s\" " 235 options.chromeos_root, "CFLAGS=\"$(portageq-%s envvar CFLAGS) %s\" " [all …]
|
D | tc_enter_chroot.py | 127 chromeos_root = options.chromeos_root 129 chromeos_root = os.path.expanduser(chromeos_root) 133 chromeos_root = os.path.abspath(chromeos_root) 150 if not os.path.exists(chromeos_root): 151 logger.GetLogger().LogError('chromeos_root ' + options.chromeos_root + 156 if not os.path.exists(chromeos_root + '/src/scripts/build_packages'): 158 ).LogError(options.chromeos_root + '/src/scripts/build_packages' 166 full_mounted_tc_root = chromeos_root + '/chroot/' + mounted_tc_root 203 chromeos_root + '/chroot/') 229 command = 'cd %s/src/scripts && cros_sdk --enter' % chromeos_root [all …]
|
D | weekly_report.py | 23 chromeos_root, cmd_executer): argument 58 """ % (test_name, chromeos_root, os.path.join(test_path, 66 chromeos_root, cmd_executer): argument 98 """ % (vanilla_image_path.split('/')[-1], chromeos_root, 112 """ % (test_name, chromeos_root, os.path.join(test_path, 199 chromeos_root = None 213 chromeos_root = chroot 214 if chromeos_root: 216 if chromeos_root: 219 if not chromeos_root: [all …]
|
D | build_chrome_browser.py | 103 if options.chromeos_root is None: 123 options.chromeos_root = misc.CanonicalizePath(options.chromeos_root) 148 misc.RemoveChromeBrowserObjectFiles(options.chromeos_root, options.board) 155 ret = cmd_executer.ChrootRunCommandWOutput(options.chromeos_root, command) 182 ret = cmd_executer.ChrootRunCommand(options.chromeos_root, 191 ret = cmd_executer.ChrootRunCommand(options.chromeos_root, command) 201 options.chromeos_root, 212 options.chromeos_root, options.board, flags_file_name) 221 options.chromeos_root, options.board)
|
D | heat_map.py | 26 def __init__(self, chromeos_root, perf_data, page_size, binary): argument 27 self.chromeos_root = os.path.realpath(chromeos_root) 41 prefix=os.path.join(self.chromeos_root, 'src/')) 50 retval = self.ce.ChrootRunCommand(self.chromeos_root, cmd) 124 if not IsARepoRoot(options.chromeos_root): 125 parser.error('% does not contain .repo dir.' % options.chromeos_root) 130 heatmap_producer = HeatMapProducer(options.chromeos_root, options.perf_data,
|
D | chromiumos_image_diff.py | 36 def __init__(self, image, chromeos_root, no_unmount): argument 38 self.chromeos_root = chromeos_root 70 self.chromeos_root, self.image, self.rootfs, self.stateful) 290 chromeos_root = None 291 if options.chromeos_root: 292 chromeos_root = options.chromeos_root 301 chromeos_root = t 303 if not chromeos_root: 308 image = CrosImage(image_path, chromeos_root, options.no_unmount)
|
D | build_tool.py | 53 chromeos_root, argument 62 self._chromeos_root = chromeos_root 345 def ResetToolEbuildFile(chromeos_root, tool_name): argument 356 os.path.join(chromeos_root, CHROMIUMOS_OVERLAY_PATH), 361 chromeos_root, CHROMIUMOS_OVERLAY_PATH)) 729 if not options.chromeos_root: 735 options.chromeos_root = wdir 739 if not options.chromeos_root: 743 options.chromeos_root = os.path.abspath(os.path.expanduser( 744 options.chromeos_root)) [all …]
|
/external/toolchain-utils/crosperf/ |
D | download_images.py | 54 def GetBuildID(self, chromeos_root, xbuddy_label): argument 59 _, build_id_tuple_str, _ = self._ce.ChrootRunCommandWOutput(chromeos_root, 69 def DownloadImage(self, chromeos_root, build_id, image_name): argument 75 download_path = os.path.join(chromeos_root, 'chroot/tmp', build_id) 83 gsutil_cmd = os.path.join(chromeos_root, GS_UTIL) 96 def UncompressImage(self, chromeos_root, build_id): argument 99 os.path.join(chromeos_root, 'chroot/tmp', build_id, 104 download_path = os.path.join(chromeos_root, 'chroot/tmp', build_id) 135 def DownloadSingleAutotestFile(self, chromeos_root, build_id, argument 141 gsutil_cmd = os.path.join(chromeos_root, GS_UTIL) [all …]
|
D | label.py | 23 chromeos_root, argument 36 chromeos_root = os.path.expanduser(chromeos_root) 52 if not chromeos_root: 54 chromeos_root = FileUtils().ChromeOSRootFromImage(chromeos_image) 55 if not chromeos_root: 60 chromeos_root = FileUtils().CanonicalizeChromeOSRoot(chromeos_root) 61 if not chromeos_root: 63 (name, chromeos_root)) 65 self.chromeos_root = chromeos_root 68 self.chromeos_root, '.cache/distfiles/target/chrome-src-internal') [all …]
|
D | suite_runner.py | 62 self.PinGovernorExecutionFrequencies(machine, label.chromeos_root) 64 self.DecreaseWaitTime(machine, label.chromeos_root) 67 self.DecreaseWaitTime(machine, label.chromeos_root) 86 def PinGovernorExecutionFrequencies(self, machine_name, chromeos_root): argument 114 set_cpu_freq, machine=machine_name, chromeos_root=chromeos_root) 118 def DecreaseWaitTime(self, machine_name, chromeos_root): argument 122 'ls ' + FILE, machine=machine_name, chromeos_root=chromeos_root) 129 sed_command + FILE, machine=machine_name, chromeos_root=chromeos_root) 133 def RebootMachine(self, machine_name, chromeos_root): argument 136 command, machine=machine_name, chromeos_root=chromeos_root) [all …]
|
D | machine_manager.py | 47 def __init__(self, name, chromeos_root, log_level, cmd_exec=None): argument 57 self.chromeos_root = chromeos_root 83 chromeos_root=self.chromeos_root) 126 chromeos_root=self.chromeos_root) 136 chromeos_root=self.chromeos_root) 158 chromeos_root=self.chromeos_root) 168 chromeos_root=self.chromeos_root) 203 chromeos_root, argument 214 self.chromeos_root = None 229 self.chromeos_root = chromeos_root [all …]
|
D | experiment.py | 27 def __init__(self, name, remote, working_directory, chromeos_root, argument 34 self.chromeos_root = chromeos_root 66 if not chromeos_root: 68 if label.chromeos_root: 69 chromeos_root = label.chromeos_root 71 if not chromeos_root: 78 self.machine_manager = machine_manager_fn(chromeos_root, acquire_timeout, 208 all_machines, '', self.labels[0].chromeos_root, None)
|
/external/toolchain-utils/cros_utils/ |
D | misc.py | 78 def GetChromeOSKeyFile(chromeos_root): argument 79 return os.path.join(chromeos_root, 'src', 'scripts', 'mod_for_test_scripts', 83 def GetChrootPath(chromeos_root): argument 84 return os.path.join(chromeos_root, 'chroot') 87 def GetInsideChrootPath(chromeos_root, file_path): argument 88 if not file_path.startswith(GetChrootPath(chromeos_root)): 90 (file_path, chromeos_root)) 91 return file_path[len(GetChrootPath(chromeos_root)):] 94 def GetOutsideChrootPath(chromeos_root, file_path): argument 95 return os.path.join(GetChrootPath(chromeos_root), file_path.lstrip('/')) [all …]
|
D | file_utils.py | 39 def CanonicalizeChromeOSRoot(self, chromeos_root): argument 40 chromeos_root = os.path.expanduser(chromeos_root) 41 if os.path.isdir(os.path.join(chromeos_root, 'chromite')): 42 return chromeos_root 47 chromeos_root = os.path.join( 49 return self.CanonicalizeChromeOSRoot(chromeos_root) 74 def CanonicalizeChromeOSRoot(self, chromeos_root): argument
|
D | buildbot_utils.py | 150 def FindArchiveImage(chromeos_root, build, build_id): argument 156 chromeos_root, command, print_to_console=False) 191 def GetTrybotImage(chromeos_root, argument 218 cbuildbot_path = os.path.join(chromeos_root, 'chromite/cbuildbot') 334 trybot_image = FindArchiveImage(chromeos_root, build, build_id) 340 trybot_image = FindArchiveImage(chromeos_root, build, build_id) 351 def GetGSContent(chromeos_root, path): argument 357 chromeos_root, command, print_to_console=False) 361 def DoesImageExist(chromeos_root, build): argument 367 ret = ce.ChrootRunCommand(chromeos_root, command, print_to_console=False) [all …]
|
D | command_executer.py | 224 def RemoteAccessInitCommand(self, chromeos_root, machine): argument 227 command += '\n. ' + chromeos_root + '/src/scripts/common.sh' 228 command += '\n. ' + chromeos_root + '/src/scripts/remote_access.sh' 241 def CrosLearnBoard(self, chromeos_root, machine): argument 242 command = self.RemoteAccessInitCommand(chromeos_root, machine) 257 chromeos_root=None, argument 272 self.logger.LogFatalIf(not chromeos_root, 'chromeos_root not given!') 274 if not chromeos_root or not machine: 276 chromeos_root = os.path.expanduser(chromeos_root) 284 chromeos_root=chromeos_root, [all …]
|
D | locks.py | 13 def AcquireLock(machines, chromeos_root, timeout=1200): argument 20 afe_lock_machine.AFELockManager(machines, False, chromeos_root, 34 def ReleaseLock(machines, chromeos_root): argument 38 afe_lock_machine.AFELockManager(machines, False, chromeos_root,
|
/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 | 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,
|
/external/toolchain-utils/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/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,
|