blob: d91f925b548043af771af2b4456f6b098ecc94cd (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
{%- extends 'base/kernel-ci-base.jinja2' %}
{% block metadata %}
{{ super() }}
{% endblock %}
{% block main %}
{{ super() }}
tags:
- fastboot
protocols:
lava-lxc:
name: lxc-{{ platform }}-kernelci-fastboot
template: debian
distribution: debian
release: buster
{% endblock %}
{% block actions %}
actions:
{%- block deploy_lxc %}
- deploy:
namespace: host
timeout:
minutes: 15
to: lxc
packages:
- android-tools-adb
- android-tools-fastboot
- cpio
- mkbootimg
{%- endblock %}
{%- block boot_lxc %}
- boot:
namespace: host
prompts:
- 'root@(.*):/#'
timeout:
minutes: 5
method: lxc
{%- endblock %}
{%- block deploy_url %}
- deploy:
timeout:
minutes: 40
namespace: target
to: download
images:
kernel:
url: {{ kernel_url }}
{%- block kernel_image_type %}
type: {{ kernel_image.lower() }}
{%- endblock %}
{%- if initrd_url %}
ramdisk:
url: {{ initrd_url }}
{%- endif %}
{%- if modules_url %}
modules:
url: {{ modules_url }}
{%- endif %}
{%- if dtb_url %}
dtb:
url: {{ dtb_url }}
{%- endif %}
{%- endblock %}
{%- block test_lxc %}
{% include "/boot-fastboot/mkbootimg.jinja2" %}
{%- endblock %}
{%- block deploy_boot %}
- deploy:
timeout:
minutes: 40
to: fastboot
namespace: target
images:
boot:
url: lxc:///boot.img
{%- endblock %}
{%- block boot %}
- boot:
namespace: target
prompts:
- '/ #'
timeout:
minutes: 15
method: fastboot
transfer_overlay:
download_command: udhcpc ; ip addr show ; wget
unpack_command: tar -C / -zxvpf
{%- endblock %}
{% endblock %}
|