forked from droidian-releng/rootfs-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgsi_base.yaml
64 lines (53 loc) · 1.47 KB
/
gsi_base.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
59
60
61
62
63
64
{{- $architecture := or .architecture "arm64" -}}
{{- $apilevel := or .apilevel "28" -}}
{{- $suite := "bookworm" -}}
{{- $username := or .username "droidian" -}}
{{- $password := or .password "1234" -}}
{{- $hostname := or .hostname "droidian" -}}
architecture: {{ $architecture }}
actions:
- action: recipe
description: Generate base rootfs
recipe: recipes/droidian_base.yaml
variables:
architecture: {{ $architecture }}
suite: {{ $suite }}
- action: apt
chroot: true
description: install packages
packages:
- adaptation-hybris-api{{ $apilevel }}
- action: run
description: Set up android base
chroot: true
script: scripts/setup-gsi.sh
- action: run
description: Set up default user
chroot: true
script: scripts/setup-user.sh {{ $username }} {{ $password }}
- action: run
description: Set up system
chroot: true
script: scripts/setup-system.sh {{ $hostname }}
{{ if eq $architecture "armhf" }}
- action: run
chroot: true
description: add arm64 arch
command: dpkg --add-architecture arm64
- action: run
chroot: true
description: update repositories
command: apt update
{{end}}
{{ if ne $architecture "amd64" }}
- action: apt
chroot: true
description: install android GSI
packages:
- android-system-gsi-{{ $apilevel }}:arm64
{{end}}
- action: apt
chroot: true
description: install package sideload-tools
packages:
- package-sideload-tools