blob: b9f63858fd431f7ff94904218382adcebd5f2977 (
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
|
{% extends "template-lkft.yaml" %}
{% block device_type %}hi960-hikey{% endblock %}
{% block secrets %}
{{ super() }}
AP_SSID: "{{AP_SSID}}"
AP_KEY: "{{AP_KEY}}"
{% endblock %}
{% block deploy_target %}
- deploy:
to: downloads
images:
ptable:
url: https://images.validation.linaro.org/snapshots.linaro.org/96boards/reference-platform/components/uefi-staging/85/hikey960/release/prm_ptable.img
{% if TUXSUITE_DOWNLOAD_URL is defined %}
postprocess:
docker:
image: tuxsuite/tuxsuite:0.25.0
steps:
- apt-get update && apt-get install -y wget selinux-utils cpio rsync sudo bc curl git xz-utils
- rm -fr /linaro-android/lkft && mkdir -p /linaro-android/lkft
- wget https://android-git.linaro.org/android-build-configs.git/plain/lkft/linaro-lkft.sh?h=lkft -O /linaro-android/lkft/linaro-lkft.sh && chmod +x /linaro-android/lkft/linaro-lkft.sh
- cd /linaro-android/lkft && TUXSUITE_DOWNLOAD_URL={{TUXSUITE_DOWNLOAD_URL}} ./linaro-lkft.sh -c {{LKFT_BUILD_CONFIG}} && cd -
- for f in {{PUBLISH_FILES}}; do if echo $f|grep '\.xz$'; then [ -f /linaro-android/lkft/out/{{LKFT_BUILD_CONFIG}}/${f} ] && rm -f /linaro-android/lkft/out/{{LKFT_BUILD_CONFIG}}/$(echo ${f}|sed "s|.xz$||") && xz -d /linaro-android/lkft/out/{{LKFT_BUILD_CONFIG}}/${f}; fi;done
- for f in {{PUBLISH_FILES}}; do f_no_xz=$(echo ${f}|sed "s|.xz$||"); [ -f /linaro-android/lkft/out/{{LKFT_BUILD_CONFIG}}/${f_no_xz} ] && mv -v /linaro-android/lkft/out/{{LKFT_BUILD_CONFIG}}/${f_no_xz} /lava-downloads/${f_no_xz}; done
{% else %}
boot:
url: {{DOWNLOAD_URL}}/boot.img.xz
compression: xz
userdata:
url: {{REFERENCE_BUILD_URL}}/userdata.img.xz
compression: xz
{% if HIKEY960_SUPPORT_SUPER is defined %}
super:
url: {{REFERENCE_BUILD_URL}}/super.img.xz
compression: xz
{% else %}
system:
url: {{REFERENCE_BUILD_URL}}/system.img.xz
compression: xz
vendor:
url: {{REFERENCE_BUILD_URL}}/vendor.img.xz
compression: xz
{% endif %}
{% endif %}
- deploy:
timeout:
minutes: 15
to: fastboot
docker:
image: yongqinliu/linaro-android-docker:0.1
images:
ptable:
url: downloads://prm_ptable.img
boot:
url: downloads://boot.img
userdata:
url: downloads://userdata.img
{% if HIKEY960_SUPPORT_SUPER is defined %}
super:
url: downloads://super.img
{% else %}
system:
url: downloads://system.img
vendor:
url: downloads://vendor.img
{% endif %}
{% endblock deploy_target %}
{% block boot_target %}
- boot:
docker:
image: yongqinliu/linaro-android-docker:0.1
prompts:
- 'root@(.*):/#'
- 'hikey:/'
- 'console:/'
timeout:
minutes: 15
method: fastboot
{% endblock boot_target %}
{% block test_target %}
{% endblock test_target %}
|