forked from xen-troops/meta-xt-prod-devel-rcar-gen4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prod-devel-rcar-s4.yaml
233 lines (214 loc) · 8.23 KB
/
prod-devel-rcar-s4.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
desc: "Xen-Troops development setup for Renesas RCAR Gen4 hardware"
min_ver: "0.4"
variables:
YOCTOS_WORK_DIR: "yocto"
DOM0_BUILD_DIR: "build-dom0"
DOMD_BUILD_DIR: "build-domd"
DOMU_BUILD_DIR: "build-domu"
XT_DOMD_DTB_NAME: "%{SOC_FAMILY}-%{MACHINE}-domd.dtb"
XT_DOMU_DTB_NAME: "%{SOC_FAMILY}-%{MACHINE}-domu.dtb"
XT_XEN_DTB_NAME: "%{SOC_FAMILY}-%{MACHINE}-xen.dtb"
XT_GENERIC_DOMU_TAG: ""
MACHINE: "spider"
SOC_FAMILY: "r8a779f0"
XT_DOMD_CONFIG_NAME: "domd-spider.cfg"
XT_DOMU_CONFIG_NAME: "domu-spider.cfg"
common_data:
# Sources used by all yocto-based domains
sources: &COMMON_SOURCES
- type: git
url: "git://git.yoctoproject.org/poky"
rev: 232b5533d
- type: git
url: "git://git.openembedded.org/meta-openembedded"
rev: 814eec96c
- type: git
url: "git://git.yoctoproject.org/meta-virtualization"
rev: 180241e
- type: git
url: "https://github.com/xen-troops/meta-xt-common.git"
rev: master
- type: git
url: "https://github.com/xen-troops/meta-xt-prod-devel-rcar-gen4.git"
rev: master
# Common configuration options for all yocto-based domains
conf: &COMMON_CONF
- [SSTATE_DIR, "${TOPDIR}/../../../common_data/sstate"]
- [DL_DIR, "${TOPDIR}/../../../common_data/downloads"]
# Skip warning about missing "virtualization" distro feature
- [SKIP_META_VIRT_SANITY_CHECK, "1"]
# Use hypervisor console on all guests
- [SERIAL_CONSOLES, "115200;hvc0"]
# Remove features that we are not using
- [DISTRO_FEATURES_remove, "x11 gtk gobject-introspection-data wifi nfc
bluetooth irda zeroconf 3g sysvinit acl alsa argp pcmcia usbgadget
usbhost opengl ptest multiarch wayland vulkan sysvinit"]
# Conf options for domain that are built used renesas layer
domd_domu_conf: &DOMD_DOMU_CONF
- [MACHINE, "%{MACHINE}"]
- [SOC_FAMILY, "%{SOC_FAMILY}"]
# Add systemd configuration
- [DISTRO_FEATURES_append, " systemd"]
- [VIRTUAL-RUNTIME_init_manager, "systemd"]
# add the static lib to SDK toolchain
- [SDKIMAGE_FEATURES_append, " staticdev-pkgs"]
# Add for gstreamer plugins ugly
- [LICENSE_FLAGS_WHITELIST, "commercial"]
# Add Capacity Aware migration Strategy (CAS)
- [MACHINE_FEATURES_append, " cas"]
# Remove ptest to reduce the build time
- [DISTRO_FEATURES_remove, "ptest"]
# Generate ext4 image files
- [IMAGE_FSTYPES_append, " ext4"]
components:
dom0:
build-dir: "%{YOCTOS_WORK_DIR}"
default: true
sources:
- *COMMON_SOURCES
builder:
type: yocto
work_dir: "%{DOM0_BUILD_DIR}"
conf:
- *COMMON_CONF
- [MACHINE, "generic-armv8-xt"]
- [XT_DOM_NAME, "dom0"]
- [XT_DOMD_CONFIG_NAME, "%{XT_DOMD_CONFIG_NAME}"]
- [XT_DOMU_CONFIG_NAME, "%{XT_DOMU_CONFIG_NAME}"]
- [XT_DOMD_DTB_NAME, "%{XT_DOMD_DTB_NAME}"]
- [XT_DOMU_DTB_NAME, "%{XT_DOMU_DTB_NAME}"]
- [XT_GUEST_INSTALL, "%{XT_GENERIC_DOMU_TAG} domd"]
# Disable HWDB which quite huge (around 15MB) and is not required at all
- [BAD_RECOMMENDATIONS_append, " udev-hwdb"]
# Enable systemd on dom0
- [DISTRO_FEATURES_append, " systemd"]
- [VIRTUAL-RUNTIME_init_manager, "systemd"]
# Do not install kernel image to rootfs to decrease initrd size
- ["RDEPENDS_${KERNEL_PACKAGE_NAME}-base", ""]
layers:
- "../meta-virtualization"
- "../meta-openembedded/meta-oe"
- "../meta-openembedded/meta-filesystems"
- "../meta-openembedded/meta-python"
- "../meta-openembedded/meta-networking"
- "../meta-xt-common/meta-xt-control-domain"
- "../meta-xt-common/meta-xt-dom0"
- "../meta-xt-common/meta-xt-domx"
- "../meta-xt-prod-devel-rcar-gen4/meta-xt-dom0-gen4"
- "../meta-xt-prod-devel-rcar-gen4/meta-xt-domx-gen4"
- "../meta-xt-prod-devel-rcar-gen4/meta-xt-prod-devel-rcar-control-gen4"
build_target: core-image-thin-initramfs
external_src:
domd: "%{YOCTOS_WORK_DIR}/%{DOMD_BUILD_DIR}/tmp/deploy/images/%{MACHINE}/"
additional_deps:
- "%{DOMD_BUILD_DIR}/tmp/deploy/images/%{MACHINE}/Image"
target_images:
- "tmp/deploy/images/generic-armv8-xt/Image"
domd:
build-dir: "%{YOCTOS_WORK_DIR}"
sources:
- *COMMON_SOURCES
- type: git
url: https://github.com/renesas-rcar/meta-renesas.git
rev: dunfell
- type: git
url: git://git.yoctoproject.org/meta-selinux
rev: 46bcf05
builder:
type: yocto
work_dir: "%{DOMD_BUILD_DIR}"
conf:
- *COMMON_CONF
- *DOMD_DOMU_CONF
- [XT_DOM_NAME, "domd"]
- [XT_DEVICE_TREES, "%{XT_DOMD_DTB_NAME} %{XT_XEN_DTB_NAME}"]
- [IMAGE_INSTALL_append, " iperf3"]
build_target: rcar-image-minimal
layers:
- "../poky/meta"
- "../poky/meta-poky"
- "../poky/meta-yocto-bsp"
- "../meta-virtualization"
- "../meta-selinux"
- "../meta-openembedded/meta-oe"
- "../meta-openembedded/meta-networking"
- "../meta-openembedded/meta-python"
- "../meta-openembedded/meta-filesystems"
- "../meta-renesas/meta-rcar-gateway"
- "../meta-xt-common/meta-xt-domx"
- "../meta-xt-common/meta-xt-driver-domain"
- "../meta-xt-prod-devel-rcar-gen4/meta-xt-domd-gen4"
- "../meta-xt-prod-devel-rcar-gen4/meta-xt-domx-gen4"
- "../meta-xt-prod-devel-rcar-gen4/meta-xt-driver-domain-gen4"
target_images:
- "tmp/deploy/images/%{MACHINE}/Image"
- "tmp/deploy/images/%{MACHINE}/rcar-image-minimal-spider.ext4"
domu:
build-dir: "%{YOCTOS_WORK_DIR}"
sources:
- *COMMON_SOURCES
- type: git
url: https://github.com/renesas-rcar/meta-renesas.git
rev: dunfell
builder:
type: yocto
work_dir: "%{DOMU_BUILD_DIR}"
conf:
- *COMMON_CONF
- *DOMD_DOMU_CONF
- [XT_DOM_NAME, "domu"]
- [IMAGE_INSTALL_append, " iperf3 "]
layers:
- "../meta-openembedded/meta-oe"
- "../meta-openembedded/meta-filesystems"
- "../meta-openembedded/meta-python"
- "../meta-renesas/meta-rcar-gateway"
- "../meta-xt-common/meta-xt-domu"
- "../meta-xt-prod-devel-rcar-gen4/meta-xt-domx-gen4"
- "../meta-xt-prod-devel-rcar-gen4/meta-xt-domu-gen4"
build_target: rcar-image-minimal
target_images:
- "tmp/deploy/images/%{MACHINE}/Image"
- "tmp/deploy/images/%{MACHINE}/rcar-image-minimal-spider.ext4"
images:
full:
type: gpt
desc: "Full SD-card/eMMC image"
partitions:
boot:
gpt_type: 21686148-6449-6E6F-744E-656564454649 # BIOS boot partition (kinda...)
type: ext4
size: 128 MiB
files:
"Image": "%{YOCTOS_WORK_DIR}/build-dom0/tmp/deploy/images/generic-armv8-xt/Image"
"uInitramfs": "%{YOCTOS_WORK_DIR}/build-dom0/tmp/deploy/images/generic-armv8-xt/uInitramfs"
"xen": "%{YOCTOS_WORK_DIR}/build-domd/tmp/deploy/images/%{MACHINE}/xen-%{MACHINE}.uImage"
"xenpolicy": "%{YOCTOS_WORK_DIR}/build-domd/tmp/deploy/images/%{MACHINE}/xenpolicy-%{MACHINE}"
"xen.dtb": "%{YOCTOS_WORK_DIR}/build-domd/tmp/deploy/images/%{MACHINE}/%{XT_XEN_DTB_NAME}"
domd_rootfs:
gpt_type: B921B045-1DF0-41C3-AF44-4C6F280D3FAE # Linux aarch64 root
type: raw_image
image_path: "%{YOCTOS_WORK_DIR}/build-domd/tmp/deploy/images/%{MACHINE}/rcar-image-minimal-spider.ext4"
parameters:
ENABLE_DOMU:
desc: "Build generic Yocto-based DomU"
"no":
default: true
"yes":
overrides:
variables:
XT_GENERIC_DOMU_TAG: "domu"
components:
dom0:
builder:
additional_deps:
- "%{DOMU_BUILD_DIR}/tmp/deploy/images/%{MACHINE}/Image"
external_src:
domu: "%{YOCTOS_WORK_DIR}/%{DOMU_BUILD_DIR}/tmp/deploy/images/%{MACHINE}/"
images:
full:
partitions:
domu-rootfs:
type: raw_image
gpt_type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 # Linux filesystem data
image_path: "%{YOCTOS_WORK_DIR}/%{DOMU_BUILD_DIR}/tmp/deploy/images/%{MACHINE}/rcar-image-minimal-spider.ext4"