blob: 98fe99e2907bd98dd0fb7dfc7a1ffdb57fd799e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{% extends 'base.jinja2' %}
{% set adb_serial_number = adb_serial_number|default("'0000000000'") %}
{% set fastboot_serial_number = fastboot_serial_number|default("'0000000000'") %}
{% set soft_reboot_command = soft_reboot_command|default('adb -s ' + fastboot_serial_number + ' reboot bootloader') %}
{% set device_info = device_info|default([{'board_id': fastboot_serial_number}]) %}
{% block body %}
device_type: {{ device_type|default('fastboot') }}
adb_serial_number: "{{ adb_serial_number|default('0000000000') }}"
fastboot_serial_number: "{{ fastboot_serial_number|default('0000000000') }}"
fastboot_options: {{ fastboot_options|default([]) }}
{% if fastboot_deploy_uboot %}
# This attribute identifies whether a device should get into fastboot mode by
# interrupting uboot and issuing commands at the bootloader prompt.
fastboot_via_uboot: True
{% endif %}
actions:
deploy:
methods:
lxc:
ssh:
options:
{{ ssh_options }}
host: '{{ ssh_host|default('') }}'
port: {{ ssh_port|default(22) }}
user: {{ ssh_user|default('root') }}
identity_file: {{ ssh_identity_file }}
fastboot:
{{- fastboot_deploy_uboot }}
{{- fastboot_interrupt_params }}
connections:
lxc:
serial:
boot:
connections:
lxc:
serial:
methods:
lxc:
ssh:
fastboot: {{ fastboot_sequence }}
{{- fastboot_boot_uboot }}
{{- fastboot_boot_grub }}
{% endblock body %}
|