forked from erfanoabdi/rootfs-builder-debos-android9
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pine64-common.yaml
82 lines (71 loc) · 2.08 KB
/
pine64-common.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{{- $architecture := or .architecture "arm64" -}}
{{- $variant := or .variant "lima" -}}
{{- $debug := or .debug "off" -}}
architecture: {{ $architecture }}
actions:
- action: recipe
description: Setup core rootfs
recipe: mainline-rootfs-core.yaml
variables:
architecture: {{ $architecture }}
debug: {{ $debug }}
imagesuffix: "-edge-pine"
- action: run
chroot: true
description: Install u-boot-tools
label: apt
script: scripts/apt-install.sh u-boot-tools
- action: download
description: Fetch latest kernel ci build
url: https://gitlab.com/pine64-org/linux/-/jobs/artifacts/pine64-kernel-ubports/download?job=build
name: kernel
filename: kernel.zip
unpack: true
compression: zip
- action: download
description: Fetch u-boot build
url: https://gitlab.com/pine64-org/u-boot/-/jobs/artifacts/master/download?job=build
name: u-boot
filename: build.zip
unpack: true
compression: zip
- action: overlay
source: pine64/overlay
destination: /
- action: run
chroot: true
description: Setting egl libs to use mesa
script: scripts/enable-mesa.sh
{{ if eq $variant "mali" }}
- action: recipe
description: Setting up mali
recipe: pine64-mali.yaml
variables:
architecture: {{ $architecture }}
{{end}}
- action: overlay
description: Copying kernel to rootfs
origin: kernel
source: .
destination: /var/tmp/
{{ if eq $debug "on" }}
- action: run
chroot: true
description: Installing kernel on rootfs (with debug packages)
label: dpkg
command: dpkg -i /var/tmp/*.deb && /bin/rm /var/tmp/* -r
{{ else }}
- action: run
chroot: true
description: Installing kernel on rootfs (no debug packages)
label: dpkg
command: dpkg -i /var/tmp/linux-image*pine64_*.deb
{{ end }}
- action: run
chroot: true
description: Installing WLAN/BT firmware on rootfs
label: apt
script: scripts/apt-install.sh linux-firmware-rtlwifi linux-firmware-pine64-rtl8723-bt
- action: run
chroot: true
script: scripts/try-depmod-installed.sh