Home
last modified time | relevance | path

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

123

/external/toolchain-utils/
Dimage_chromeos.py44 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 …]
Dremote_test.py41 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)
Dbuild_chromeos.py120 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 …]
Dtc_enter_chroot.py136 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 …]
Dchromiumos_image_diff.py42 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/
Ddownload_images.py56 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 …]
Dlabel.py27 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 …]
Dmachine_manager.py50 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 …]
Dexperiment.py28 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/
Dmisc.py87 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 …]
Dbuildbot_utils.py42 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 …]
Dfile_utils.py44 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
Dcommand_executer.py232 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 …]
Dlocks.py18 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/
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 …]
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 …]
Dweekly_report.py25 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 …]
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)
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,
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))
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/
Dsetup_chromeos_testing.py82 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/
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/deprecated/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,
/external/toolchain-utils/heatmaps/
Dheat_map.py31 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,

123