forked from droidian-onclite/rootfs-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.yaml
58 lines (51 loc) · 1.65 KB
/
device.yaml
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
{{- $architecture := or .architecture "arm64" -}}
{{- $suffix := or .suffix "testbuild" -}}
{{- $image := or .image (printf "droidian-rootfs-api29gsi-%s%s.zip" $architecture $suffix) -}}
{{- $output_type := or .output_type "rootfs" -}}
{{- $apilevel := or .apilevel 28 -}}
{{- $version := or .version "nightly" -}}
{{- $edition := or .edition "phosh" -}}
{{- $variant := or .variant "phone" -}}
{{- $use_internal_repository := or .use_internal_repository "no" -}}
architecture: {{ $architecture }}
actions:
- action: recipe
description: Generate rootfs
recipe: droidian_{{ $edition }}.yaml
variables:
architecture: {{ $architecture }}
variant: {{ $variant }}
apilevel: {{ $apilevel }}
version: {{ $version }}
use_internal_repository: {{ $use_internal_repository }}
- action: recipe
description: Install device-specific packages
recipe: ../generated/product.yaml
variables:
architecture: {{ $architecture }}
edition: {{ $edition }}
variant: {{ $variant }}
apilevel: {{ $apilevel }}
- action: recipe
description: Polish the image
recipe: recipes/polish.yaml
variables:
architecture: {{ $architecture }}
image: {{ $image }}
output_type: {{ $output_type }}
{{ if eq $output_type "rootfs" }}
- action: run
chroot: false
description: Generate flashable zip
script: scripts/genzip.sh {{ $image }}
{{end}}
{{ if eq $output_type "image" }}
- action: run
chroot: false
description: Generate flashable image
script: scripts/genimage.sh {{ $image }}
{{end}}
- action: run
chroot: false
description: Show build output
command: ls -lha