| OLD | NEW |
| 1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import datetime | 5 import datetime |
| 6 import os | 6 import os |
| 7 import sys | 7 import sys |
| 8 | 8 |
| 9 from utils import shell_utils | 9 from py.utils import shell_utils |
| 10 from utils import ssh_utils | 10 from py.utils import ssh_utils |
| 11 from flavor_utils.ssh_build_step_utils import SshBuildStepUtils | 11 from flavor_utils.ssh_build_step_utils import SshBuildStepUtils |
| 12 | 12 |
| 13 class Arm64ModelBuildStepUtils(SshBuildStepUtils): | 13 class Arm64ModelBuildStepUtils(SshBuildStepUtils): |
| 14 # make sure deps_target_os = 'barelinux' so that all dependencies | 14 # make sure deps_target_os = 'barelinux' so that all dependencies |
| 15 # can be installed. | 15 # can be installed. |
| 16 def __init__(self, build_step_instance): | 16 def __init__(self, build_step_instance): |
| 17 SshBuildStepUtils.__init__(self, build_step_instance) | 17 SshBuildStepUtils.__init__(self, build_step_instance) |
| 18 | 18 |
| 19 self._remote_dir = 'skia' | 19 self._remote_dir = 'skia' |
| 20 self._build_dir = os.path.join('out', 'config', 'arm64linux') | 20 self._build_dir = os.path.join('out', 'config', 'arm64linux') |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 make_cmd = [ | 63 make_cmd = [ |
| 64 'sh', '-x', | 64 'sh', '-x', |
| 65 os.path.join(platform_bin, 'arm64_make'), | 65 os.path.join(platform_bin, 'arm64_make'), |
| 66 '-o', self._build_dir, | 66 '-o', self._build_dir, |
| 67 '-c', os.path.join(toolchain_bin, 'aarch64-linux-gnu-gcc'), | 67 '-c', os.path.join(toolchain_bin, 'aarch64-linux-gnu-gcc'), |
| 68 '-x', os.path.join(toolchain_bin, 'aarch64-linux-gnu-g++'), | 68 '-x', os.path.join(toolchain_bin, 'aarch64-linux-gnu-g++'), |
| 69 '-t', self._step.configuration, | 69 '-t', self._step.configuration, |
| 70 ] | 70 ] |
| 71 shell_utils.run(make_cmd) | 71 shell_utils.run(make_cmd) |
| OLD | NEW |