Home
last modified time | relevance | path

Searched refs:chromeos_root (Results 1 – 25 of 55) sorted by relevance

123

/external/toolchain-utils/
Dimage_chromeos.py40 def CheckForCrosFlash(chromeos_root, remote, log_level): argument
46 command, chromeos_root=chromeos_root, machine=remote)
54 def DisableCrosBeeps(chromeos_root, remote, log_level): argument
62 command, chromeos_root=chromeos_root, machine=remote)
68 def FindChromeOSImage(image_file, chromeos_root): argument
88 real_chroot_dir = os.path.join(os.path.realpath(chromeos_root), 'chroot')
90 real_chromeos_root = os.path.realpath(chromeos_root)
158 if options.chromeos_root is None:
164 options.chromeos_root = os.path.expanduser(options.chromeos_root)
167 board = cmd_executer.CrosLearnBoard(options.chromeos_root, options.remote)
[all …]
Dremote_test.py37 if options.chromeos_root is None:
43 options.chromeos_root = os.path.expanduser(options.chromeos_root)
48 command, chromeos_root=options.chromeos_root, machine=options.remote)
59 chromeos_root=options.chromeos_root)
65 chromeos_root=options.chromeos_root)
72 chromeos_root=options.chromeos_root)
79 chromeos_root=options.chromeos_root)
88 chromeos_root=options.chromeos_root)
95 chromeos_root=options.chromeos_root)
96 board = ce.CrosLearnBoard(options.chromeos_root, options.remote)
Dcros_login.py68 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)
Dremote_gcc_build.py47 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 …]
Dbuild_chromeos.py116 if options.chromeos_root is None:
118 options.chromeos_root = os.path.expanduser(options.chromeos_root)
119 scripts_dir = os.path.join(options.chromeos_root, 'src', 'scripts')
140 misc.RemoveChromeBrowserObjectFiles(options.chromeos_root, options.board)
162 ret = cmd_executer.ChrootRunCommand(options.chromeos_root, command)
166 if not os.path.isdir(options.chromeos_root + '/chroot/build/' +
169 ret = cmd_executer.ChrootRunCommand(options.chromeos_root,
196 options.chromeos_root, "CFLAGS=\"$(portageq-%s envvar CFLAGS) %s\" "
218 options.chromeos_root, "CFLAGS=\"$(portageq-%s envvar CFLAGS) %s\" "
242 options.chromeos_root, "CFLAGS=\"$(portageq-%s envvar CFLAGS) %s\" "
[all …]
Dtc_enter_chroot.py133 chromeos_root = options.chromeos_root
135 chromeos_root = os.path.expanduser(chromeos_root)
139 chromeos_root = os.path.abspath(chromeos_root)
158 if not os.path.exists(chromeos_root):
159 logger.GetLogger().LogError('chromeos_root ' + options.chromeos_root +
164 if not os.path.exists(chromeos_root + '/src/scripts/build_packages'):
165 logger.GetLogger().LogError(options.chromeos_root +
174 full_mounted_tc_root = chromeos_root + '/chroot/' + mounted_tc_root
211 chromeos_root + '/chroot/')
237 command = 'cd %s/src/scripts && cros_sdk --enter' % chromeos_root
[all …]
Dweekly_report.py23 chromeos_root, cmd_executer): argument
58 """ % (test_name, chromeos_root,
66 chromeos_root, cmd_executer): argument
98 """ % (vanilla_image_path.split('/')[-1], chromeos_root,
112 """ % (test_name, chromeos_root,
200 chromeos_root = None
214 chromeos_root = chroot
215 if chromeos_root:
217 if chromeos_root:
220 if not chromeos_root:
[all …]
Dbuild_chrome_browser.py113 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)
Dheat_map.py27 def __init__(self, chromeos_root, perf_data, page_size, binary): argument
28 self.chromeos_root = os.path.realpath(chromeos_root)
41 self.tempDir = tempfile.mkdtemp(prefix=os.path.join(self.chromeos_root,
51 retval = self.ce.ChrootRunCommand(self.chromeos_root, cmd)
126 if not IsARepoRoot(options.chromeos_root):
127 parser.error('% does not contain .repo dir.' % options.chromeos_root)
132 heatmap_producer = HeatMapProducer(options.chromeos_root, options.perf_data,
Dchromiumos_image_diff.py36 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)
318 chromeos_root = None
319 if options.chromeos_root:
320 chromeos_root = options.chromeos_root
329 chromeos_root = t
331 if not chromeos_root:
336 image = CrosImage(image_path, chromeos_root, options.no_unmount)
Dbuild_tool.py52 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))
726 if not options.chromeos_root:
732 options.chromeos_root = wdir
736 if not options.chromeos_root:
740 options.chromeos_root = os.path.abspath(
741 os.path.expanduser(options.chromeos_root))
[all …]
/external/toolchain-utils/crosperf/
Ddownload_images.py54 def GetBuildID(self, chromeos_root, xbuddy_label): argument
60 chromeos_root, command)
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 …]
Dlabel.py23 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 …]
Dsuite_runner.py62 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
122 set_cpu_freq, machine=machine_name, chromeos_root=chromeos_root)
126 def DecreaseWaitTime(self, machine_name, chromeos_root): argument
130 'ls ' + FILE, machine=machine_name, chromeos_root=chromeos_root)
137 sed_command + FILE, machine=machine_name, chromeos_root=chromeos_root)
141 def RestartUI(self, machine_name, chromeos_root): argument
144 command, machine=machine_name, chromeos_root=chromeos_root)
[all …]
Dmachine_manager.py47 def __init__(self, name, chromeos_root, log_level, cmd_exec=None): argument
57 self.chromeos_root = chromeos_root
82 command, machine=self.name, chromeos_root=self.chromeos_root)
123 command, machine=self.name, chromeos_root=self.chromeos_root)
131 command, machine=self.name, chromeos_root=self.chromeos_root)
151 command, machine=self.name, chromeos_root=self.chromeos_root)
159 command, machine=self.name, chromeos_root=self.chromeos_root)
194 chromeos_root, argument
205 self.chromeos_root = None
220 self.chromeos_root = chromeos_root
[all …]
Dexperiment.py27 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,
209 all_machines, '', self.labels[0].chromeos_root, None)
/external/toolchain-utils/cros_utils/
Dmisc.py83 def GetChromeOSKeyFile(chromeos_root): argument
84 return os.path.join(chromeos_root, 'src', 'scripts', 'mod_for_test_scripts',
88 def GetChrootPath(chromeos_root): argument
89 return os.path.join(chromeos_root, 'chroot')
92 def GetInsideChrootPath(chromeos_root, file_path): argument
93 if not file_path.startswith(GetChrootPath(chromeos_root)):
95 (file_path, chromeos_root))
96 return file_path[len(GetChrootPath(chromeos_root)):]
99 def GetOutsideChrootPath(chromeos_root, file_path): argument
100 return os.path.join(GetChrootPath(chromeos_root), file_path.lstrip('/'))
[all …]
Dbuildbot_utils.py39 def PeekTrybotImage(chromeos_root, buildbucket_id): argument
53 rc, out, _ = RunCommandInPath(chromeos_root, command)
81 def SubmitTryjob(chromeos_root, argument
116 _, out, _ = RunCommandInPath(chromeos_root, command)
125 def GetTrybotImage(chromeos_root, argument
154 buildbucket_id = SubmitTryjob(chromeos_root, buildbot_name, patch_list,
166 status, image = PeekTrybotImage(chromeos_root, buildbucket_id)
206 def DoesImageExist(chromeos_root, build): argument
212 ret = ce.ChrootRunCommand(chromeos_root, command, print_to_console=False)
216 def WaitForImage(chromeos_root, build): argument
[all …]
Dfile_utils.py39 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
Dcommand_executer.py225 def RemoteAccessInitCommand(self, chromeos_root, machine): argument
228 command += '\n. ' + chromeos_root + '/src/scripts/common.sh'
229 command += '\n. ' + chromeos_root + '/src/scripts/remote_access.sh'
242 def CrosLearnBoard(self, chromeos_root, machine): argument
243 command = self.RemoteAccessInitCommand(chromeos_root, machine)
258 chromeos_root=None, argument
273 self.logger.LogFatalIf(not chromeos_root, 'chromeos_root not given!')
275 if not chromeos_root or not machine:
277 chromeos_root = os.path.expanduser(chromeos_root)
286 chromeos_root=chromeos_root,
[all …]
Dlocks.py13 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/
Drun_benchmarks.py71 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 …]
Dbuild_benchmarks.py203 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/
Dcrb_driver.py20 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/
Dprofile_cycler.py27 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,

123