Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1209)

Unified Diff: slave/skia_slave_scripts/flavor_utils/arm64model_build_step_utils.py

Issue 648353002: Remove Skia's forked buildbot code (Closed) Base URL: https://skia.googlesource.com/buildbot.git@master
Patch Set: Address comment Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: slave/skia_slave_scripts/flavor_utils/arm64model_build_step_utils.py
diff --git a/slave/skia_slave_scripts/flavor_utils/arm64model_build_step_utils.py b/slave/skia_slave_scripts/flavor_utils/arm64model_build_step_utils.py
deleted file mode 100644
index 110ad481341a53653bc2144970e49d4d745af8e3..0000000000000000000000000000000000000000
--- a/slave/skia_slave_scripts/flavor_utils/arm64model_build_step_utils.py
+++ /dev/null
@@ -1,71 +0,0 @@
-# Copyright (c) 2014 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import datetime
-import os
-import sys
-
-from py.utils import shell_utils
-from py.utils import ssh_utils
-from flavor_utils.ssh_build_step_utils import SshBuildStepUtils
-
-class Arm64ModelBuildStepUtils(SshBuildStepUtils):
- # make sure deps_target_os = 'barelinux' so that all dependencies
- # can be installed.
- def __init__(self, build_step_instance):
- SshBuildStepUtils.__init__(self, build_step_instance)
-
- self._remote_dir = 'skia'
- self._build_dir = os.path.join('out', 'config', 'arm64linux')
-
- self._working_dir = os.path.abspath(self._step.args.get(
- 'working_dir', os.path.join(os.pardir, os.pardir, 'arm64bareLinux')))
-
- if type(build_step_instance).__name__ not in ['RunGYP', 'Compile']:
- # SSH connection not needed and host may not exist yet in these steps.
- key_file = os.path.join(self._working_dir, 'key')
- assert os.path.isfile(key_file)
- ssh_utils.SSHAdd(key_file)
- print >> sys.stderr, 'Testing ssh connection...'
- self._ssh.Run(['echo', 'SUCCESS FROM SSH'])
-
- old_timeout = self._step.timeout
- self._step.timeout *= 10
- print 'Extended timeout from %s to %s.' % (
- datetime.timedelta(0, old_timeout),
- datetime.timedelta(0, self._step.timeout))
-
- def RunGYP(self):
- # barelinux_make handles gyp
- pass
-
- def Compile(self, target):
- platform_bin = os.path.join('platform_tools', 'barelinux', 'bin')
- # If working_dir doesn't exist, arm64_download will create it.
- # this script should download everything we need to start the
- # virtual machine, and then boot it up. If it fails it will
- # return a non-zero exit status and shell_utils.run will throw an
- # exception. We do not catch this exception.
- print 'Installing build tools and VM to', self._working_dir
- self.AddGsutilToPath() # needed by arm64_download
- shell_utils.run(
- [os.path.join(platform_bin, 'arm64_download'), self._working_dir])
-
- assert os.path.isdir(self._working_dir)
-
- toolchain_bin = os.path.join(
- self._working_dir,
- 'gcc-linaro-aarch64-linux-gnu-4.8-2013.12_linux',
- 'bin')
- assert os.path.isdir(toolchain_bin)
-
- make_cmd = [
- 'sh', '-x',
- os.path.join(platform_bin, 'arm64_make'),
- '-o', self._build_dir,
- '-c', os.path.join(toolchain_bin, 'aarch64-linux-gnu-gcc'),
- '-x', os.path.join(toolchain_bin, 'aarch64-linux-gnu-g++'),
- '-t', self._step.configuration,
- ]
- shell_utils.run(make_cmd)

Powered by Google App Engine
This is Rietveld 408576698