-
Notifications
You must be signed in to change notification settings - Fork 14
/
prod-devel-rcar-virtio.yaml
780 lines (730 loc) · 30 KB
/
prod-devel-rcar-virtio.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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
desc: "Xen-Troops development setup for Renesas RCAR Gen3 hardware"
min_ver: "0.27"
variables:
YOCTOS_WORK_DIR: "yocto"
DOM0_BUILD_DIR: "build-dom0"
DOMD_BUILD_DIR: "build-domd"
DOMU_BUILD_DIR: "build-domu"
DOM0_MACHINE: "generic-armv8-xt"
DOMD_MACHINE: "%{MACHINE}"
DOMU_MACHINE: "virtio-armv8-xt"
ANDROID_KERNEL_DIR: "android_kernel"
DOMA_DIR: "android"
DOMZ_DIR: "zephyr"
BUILD_TARGET_DOMD: "core-image-weston"
BUILD_TARGET_DOMU: "core-image-weston"
XT_DOMD_DTB_NAME: "%{SOC_FAMILY}-%{DOMD_MACHINE}-domd.dtb"
XT_DOMA_DTB_NAME: ""
XT_XEN_DTB_NAME: "%{SOC_FAMILY}-%{DOMD_MACHINE}-xen.dtb"
XT_PVR_NUM_OSID: "2"
XT_OP_TEE_FLAVOUR: "generic_dt"
XT_GENERIC_DOMU_TAG: ""
XT_DOMA_TAG: ""
XT_DOMA_KERNEL_EXTRA_MODULES: ""
XT_DOMA_SOURCE_GROUP: ""
XT_DOMZ_TAG: ""
# For this product we use one config for all machines for Zephyr
XT_DOMZ_CONFIG_NAME: "domz-generic.cfg"
XT_MULTIMEDIA_EVA_DIR : ""
XT_PREBUILT_GSX_DIR: ""
XT_USE_DDK1_11: "0"
XT_MACHINEOVERRIDES_RAM: "mem8gb"
ANDROID_KERNEL_BUILD_CONFIG: "//common-modules/xen-virtual-device:xen_virtual_device_aarch64_dist"
ANDROID_KERNEL_DEPLOY_DIR: "out/deploy/common-modules/xen-virtual-device/xen_virtual_device_aarch64"
ANDROID_DEVICE: "xenvm_trout_arm64"
ANDROID_LUNCH_TARGET: "aosp_xenvm_trout_arm64-trunk_staging-userdebug"
common_data:
# Sources used by all yocto-based domains
sources: &COMMON_SOURCES
- type: git
url: https://git.yoctoproject.org/poky
rev: "e938b18b5342bd28eadb44ad39dbf1f5cf5be09b" # kirkstone
- type: git
url: https://git.openembedded.org/meta-openembedded
rev: "9a24b7679810628b594cc5a9b52f77f53d37004f" # kirkstone
- type: git
url: https://git.yoctoproject.org/meta-virtualization
rev: "e0cd09e3b8367e2745a27db2e7ff1f8452c8cf41" # kirkstone
- type: git
url: https://github.com/xen-troops/meta-xt-common.git
rev: "101f6a449ee237e3125a006e4a80196a2c70e949" # kirkstone
- type: git
url: https://github.com/xen-troops/meta-xt-rcar.git
rev: "abc6c8bae27293ca2d04c7810006df4bb984cf8f" # 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"]
# Conf options for domain that are built used renesas layer
domd_domu_conf: &DOMD_DOMU_CONF
- [SOC_FAMILY, "%{SOC_FAMILY}"]
# Add systemd configuration
- [INIT_MANAGER, "systemd"]
# add the static lib to SDK toolchain
- [SDKIMAGE_FEATURES:append, " staticdev-pkgs"]
# Add for gstreamer plugins ugly
- [LICENSE_FLAGS_ACCEPTED, "commercial"]
# Configuration for USB 3.0
- [MACHINE_FEATURES:append, " usb3"]
# Add Capacity Aware migration Strategy (CAS)
- [MACHINE_FEATURES:append, " cas"]
# Remove ptest to reduce the build time,
# remove x11 and vulkan to avoid error after removing mesa
- [DISTRO_FEATURES:remove, " ptest x11 vulkan"]
# HACK: force ipk instead of rpm b/c it makes troubles to PVR UM build otherwise
- [PACKAGE_CLASSES, "package_ipk"]
gfx_conf: &GFX_CONF
# Configure number of supported GPU virtual guests
- [XT_PVR_NUM_OSID, "%{XT_PVR_NUM_OSID}"]
# for Wayland/Weston
- [DISTRO_FEATURES_NATIVESDK:append, " wayland"]
- [DISTRO_FEATURES:append, " pam"]
# Enable Gfx Pkgs
- [MACHINE_FEATURES:append, " gsx"]
- [BB_MULTI_PROVIDER_ALLOWED:append," virtual/libgl virtual/egl virtual/libgles1 virtual/libgles2"]
- [PREFERRED_PROVIDER_virtual/libgles1, ""]
- [PREFERRED_PROVIDER_virtual/libgles2, "gles-user-module"]
- [PREFERRED_PROVIDER_virtual/libgles3, "gles-user-module"]
- [PREFERRED_PROVIDER_virtual/egl, "libegl"]
- [PREFERRED_PROVIDER_virtual/libgl, ""]
- [PREFERRED_PROVIDER_virtual/mesa, ""]
- [PREFERRED_PROVIDER_virtual/libgbm, "libgbm"]
- [PREFERRED_PROVIDER_libgbm-dev, "libgbm"]
- [BBMASK:append, " mesa-gl"]
- [XT_USE_DDK1_11, "%{XT_USE_DDK1_11}"]
# The bbappends below are only used for old DDK v1.11
- [BBMASK:append, " ${@bb.utils.contains('XT_USE_DDK1_11', '1', '', 'meta-xt-rcar-fixups/recipes-kernel/kernel-module-gles/kernel-module-gles.bbappend', d)}"]
- [BBMASK:append, " ${@bb.utils.contains('XT_USE_DDK1_11', '1', '', 'meta-xt-rcar-fixups/recipes-graphics/gles-module/gles-user-module.bbappend', d)}"]
- [BBMASK:append, " ${@bb.utils.contains('XT_USE_DDK1_11', '1', '', 'meta-xt-rcar-fixups/recipes-graphics/packagegroups/packagegroup-graphic-renesas.bbappend', d)}"]
gfx_sources: &GFX_SOURCES
- type: git
url: https://git.openembedded.org/meta-python2
rev: "f02882e2aa9279ca7becca8d0cedbffe88b5a253" # kirkstone
- type: git
url: https://github.com/kraj/meta-clang.git
rev: "8bc893d735e5f779a2dcdc3992621d5ab371800d" # kirkstone
- type: git
url: ssh://git@gitpct.epam.com/epmd-aepr/img-proprietary
rev: "6ed789681c2867c7cae8b0150e093e1e2781797e"
dir: "proprietary"
gfx_layers: &GFX_LAYERS
- "../meta-python2"
- "../meta-clang"
- "../meta-xt-rcar/meta-xt-rcar-proprietary"
- "../meta-xt-rcar/meta-xt-rcar-gles_common"
components:
dom0:
build-dir: "%{YOCTOS_WORK_DIR}"
default: true
sources:
- *COMMON_SOURCES
builder:
type: yocto
work_dir: "%{DOM0_BUILD_DIR}"
conf:
- *COMMON_CONF
- [MACHINE, "%{DOM0_MACHINE}"]
- [XT_DOMD_CONFIG_NAME, "%{XT_DOMD_CONFIG_NAME}"]
- [XT_DOMD_DTB_NAME, "%{XT_DOMD_DTB_NAME}"]
- [XT_DOM_NAME, "dom0"]
- [XT_GUEST_INSTALL, "%{XT_GENERIC_DOMU_TAG} %{XT_DOMA_TAG} %{XT_DOMZ_TAG} domd"]
# Disable HWDB which quite huge (around 15MB) and is not required at all
- [BAD_RECOMMENDATIONS:append, " udev-hwdb"]
# Remove unused DISTRO_FEATURES
- [DISTRO_FEATURES:remove, "acl alsa argp pcmcia usbgadget
usbhost opengl ptest multiarch wayland vulkan
sysvinit pulseaudio"]
# Enable systemd on dom0
- [INIT_MANAGER, "systemd"]
# Do not install kernel image to rootfs to decrease initrd size
- ["RRECOMMENDS:${KERNEL_PACKAGE_NAME}-base", ""]
# Build our own Xen version rather than proposed by meta-virtualization
- [PREFERRED_VERSION_xen, "4.19.0+git%"]
- [PREFERRED_VERSION_xen-tools, "4.19.0+git%"]
- [MACHINEOVERRIDES:append, ":%{XT_MACHINEOVERRIDES_RAM}"]
# Flag, which allows to override parameters on the Yocto level.
# E.g. amount of used RAM for driver and guest domains.
- [OVERRIDES:append, ":enable_virtio"]
# QEMU configuration
- [QEMUVERSION, "7.0%"]
# Enable related distro-feautre in order to create conditions in Yocto recipes
- [DISTRO_FEATURES:append, " enable_virtio"]
- [DISTRO_FEATURES:append, " xen vmsep"]
layers:
- "../meta-virtualization"
- "../meta-openembedded/meta-oe"
- "../meta-openembedded/meta-filesystems"
- "../meta-openembedded/meta-python"
- "../meta-openembedded/meta-networking"
- "../meta-xt-common/meta-xt-domx"
- "../meta-xt-common/meta-xt-dom0"
- "../meta-xt-common/meta-xt-control-domain"
- "../meta-xt-common/meta-xt-control-domain-virtio"
- "../meta-xt-common/meta-xt-qemu"
- "../meta-xt-rcar/meta-xt-rcar-dom0"
- "../../layers/meta-xt-domx-gen3"
- "../../layers/meta-xt-dom0-gen3"
build_target: core-image-thin-initramfs
external_src:
domd: "%{YOCTOS_WORK_DIR}/%{DOMD_BUILD_DIR}/tmp/deploy/images/%{DOMD_MACHINE}/"
additional_deps:
- "%{DOMD_BUILD_DIR}/tmp/deploy/images/%{DOMD_MACHINE}/Image"
target_images:
- "tmp/deploy/images/%{DOM0_MACHINE}/Image"
- "tmp/deploy/images/%{DOM0_MACHINE}/uInitramfs"
domd:
build-dir: "%{YOCTOS_WORK_DIR}"
sources:
- *COMMON_SOURCES
- type: git
url: https://github.com/renesas-rcar/meta-renesas.git
rev: "11221be7ff3a535f17357bc8ac7e2851d0e8ff02" # kirkstone-dev
- type: git
url: https://git.yoctoproject.org/meta-selinux
rev: "a401f4b2816a0b41ce8d9351542658c721935bcd" # kirkstone
builder:
type: yocto
work_dir: "%{DOMD_BUILD_DIR}"
conf:
- *COMMON_CONF
- *DOMD_DOMU_CONF
- [MACHINE, "%{DOMD_MACHINE}"]
- [XT_DOM_NAME, "domd"]
- [XT_OP_TEE_FLAVOUR, "%{XT_OP_TEE_FLAVOUR}"]
- [XT_DEVICE_TREES, "%{XT_DOMD_DTB_NAME} %{XT_DOMA_DTB_NAME} %{XT_XEN_DTB_NAME}"]
- [XT_GUEST_INSTALL, "%{XT_GENERIC_DOMU_TAG} %{XT_DOMA_TAG} %{XT_DOMZ_TAG}"]
# Machine feature 'multimedia' is used to enable (VSP in domd) and (LOSSY build option in ATF)
- [MACHINE_FEATURES:append, " multimedia"]
- [PREFERRED_RPROVIDER_libgstallocators-1.0, "gstreamer1.0-plugins-base"]
- [PREFERRED_RPROVIDER_libgstapp-1.0, "gstreamer1.0-plugins-base"]
- [XT_MULTIMEDIA_EVA_DIR, "%{XT_MULTIMEDIA_EVA_DIR}"]
# Build our own Xen version rather than proposed by meta-virtualization
- [PREFERRED_VERSION_xen, "4.19.0+git%"]
- [PREFERRED_VERSION_xen-tools, "4.19.0+git%"]
# Enable xen-virtio distro feature
- [DISTRO_FEATURES:append, " enable_virtio"]
# QEMU-related configuration
- [DISTRO_FEATURES:append, " xen vmsep"]
- [QEMUVERSION, "7.0%"]
build_target: "%{BUILD_TARGET_DOMD}"
layers:
- "../meta-renesas/meta-rcar-gen3"
- "../meta-virtualization"
- "../meta-selinux"
- "../meta-openembedded/meta-oe"
- "../meta-openembedded/meta-networking"
- "../meta-openembedded/meta-python"
- "../meta-openembedded/meta-filesystems"
- "../meta-openembedded/meta-gnome"
- "../meta-xt-common/meta-xt-domx"
- "../meta-xt-common/meta-xt-driver-domain"
- "../meta-xt-common/meta-xt-driver-domain-virtio"
- "../meta-xt-common/meta-xt-qemu"
- "../meta-xt-common/meta-xt-security"
- "../meta-xt-rcar/meta-oe-fixups"
- "../meta-xt-rcar/meta-xt-rcar-fixups"
- "../meta-xt-rcar/meta-xt-rcar-driver-domain"
- "../../layers/meta-xt-domx-gen3"
- "../../layers/meta-xt-domd-gen3"
target_images:
- "tmp/deploy/images/%{DOMD_MACHINE}/Image"
- "tmp/deploy/images/%{DOMD_MACHINE}/xen-%{DOMD_MACHINE}.uImage"
- "tmp/deploy/images/%{DOMD_MACHINE}/xenpolicy-%{DOMD_MACHINE}"
- "tmp/deploy/images/%{DOMD_MACHINE}/%{XT_XEN_DTB_NAME}"
- "tmp/deploy/images/%{DOMD_MACHINE}/%{BUILD_TARGET_DOMD}-%{DOMD_MACHINE}.ext4"
domu:
build-dir: "%{YOCTOS_WORK_DIR}"
sources:
- *COMMON_SOURCES
- type: git
url: https://github.com/renesas-rcar/meta-renesas.git
rev: "11221be7ff3a535f17357bc8ac7e2851d0e8ff02" # kirkstone-dev
builder:
type: yocto
work_dir: "%{DOMU_BUILD_DIR}"
conf:
- *COMMON_CONF
- *DOMD_DOMU_CONF
- [MACHINE, "%{DOMU_MACHINE}"]
- [XT_DOM_NAME, "domu"]
- [EXTRA_IMAGEDEPENDS:remove, "arm-trusted-firmware"]
- [EXTRA_IMAGEDEPENDS:remove, "optee-os"]
- [EXTRA_IMAGEDEPENDS:remove, "u-boot"]
layers:
- "../meta-openembedded/meta-oe"
- "../meta-openembedded/meta-filesystems"
- "../meta-openembedded/meta-python"
- "../meta-openembedded/meta-networking"
- "../meta-openembedded/meta-gnome"
- "../meta-xt-common/meta-xt-domu"
- "../meta-xt-common/meta-xt-domu-virtio"
- "../../layers/meta-xt-domx-gen3"
- "../../layers/meta-xt-domu-gen3"
build_target: "%{BUILD_TARGET_DOMU}"
target_images:
- "tmp/deploy/images/%{DOMU_MACHINE}/Image"
- "tmp/deploy/images/%{DOMU_MACHINE}/%{BUILD_TARGET_DOMU}-%{DOMU_MACHINE}.ext4"
doma_kernel:
build-dir: "%{ANDROID_KERNEL_DIR}"
sources:
- type: repo
url: https://github.com/xen-troops/android_kernel_manifest.git
rev: "f068d73e6ba7e8b7406d65e0d16419b660eb1dca" # common-android14-6.1-xenvm-trout-main
manifest: default.xml
depth: 1
groups: "%{XT_DOMA_SOURCE_GROUP}"
dir: "."
builder:
type: bazel
tool: "tools/bazel"
command: run
args:
- "--config=stamp"
- "--verbose_failures"
- "--sandbox_debug"
target: "%{ANDROID_KERNEL_BUILD_CONFIG}"
target-patterns:
- "--dist_dir=%{ANDROID_KERNEL_DEPLOY_DIR}"
target_images:
- "%{ANDROID_KERNEL_DEPLOY_DIR}/Image"
doma:
build-dir: "%{DOMA_DIR}"
sources:
- type: repo
url: https://github.com/xen-troops/android_manifest.git
rev: "3a56c9f5852184e0105c0bd5746c04db1669219a" # android-15-xenvm-trout-main
manifest: default.xml
depth: 1
groups: "%{XT_DOMA_SOURCE_GROUP}"
dir: "."
builder:
type: android
env:
- "TARGET_BOARD_PLATFORM=%{SOC_FAMILY}"
- "TARGET_PREBUILT_KERNEL=../%{ANDROID_KERNEL_DIR}/%{ANDROID_KERNEL_DEPLOY_DIR}/Image"
- "TARGET_PREBUILT_MODULES_DIR=../%{ANDROID_KERNEL_DIR}/%{ANDROID_KERNEL_DEPLOY_DIR}/"
lunch_target: "%{ANDROID_LUNCH_TARGET}"
target_images:
- "out/target/product/%{ANDROID_DEVICE}/boot.img"
- "out/target/product/%{ANDROID_DEVICE}/init_boot.img"
- "out/target/product/%{ANDROID_DEVICE}/vendor_boot.img"
- "out/target/product/%{ANDROID_DEVICE}/vendor_dlkm.img"
- "out/target/product/%{ANDROID_DEVICE}/vbmeta.img"
- "out/target/product/%{ANDROID_DEVICE}/vbmeta_system.img"
- "out/target/product/%{ANDROID_DEVICE}/userdata.img"
- "out/target/product/%{ANDROID_DEVICE}/super.img"
additional_deps:
- "../%{ANDROID_KERNEL_DIR}/%{ANDROID_KERNEL_DEPLOY_DIR}/Image"
zephyr:
build-dir: "%{DOMZ_DIR}"
sources:
- type: west
builder:
type: zephyr
board: xenvm
target: zephyr/samples/synchronization
target_images:
- "zephyr/build/zephyr/zephyr.bin"
pack-ipl:
build-dir: "."
builder:
type: archive
base_dir: "%{YOCTOS_WORK_DIR}/%{DOMD_BUILD_DIR}/tmp/deploy/images/%{DOMD_MACHINE}/firmware/"
name: "ipl-%{DOMD_MACHINE}.tar.bz2"
items:
- "bl2-%{DOMD_MACHINE}-4x2g.bin"
- "bl2-%{DOMD_MACHINE}-4x2g.srec"
- "bl31-%{DOMD_MACHINE}-4x2g.bin"
- "bl31-%{DOMD_MACHINE}-4x2g.srec"
- "bootparam_sa0-4x2g.bin"
- "bootparam_sa0-4x2g.srec"
- "cert_header_sa6-4x2g.bin"
- "cert_header_sa6-4x2g.srec"
- "cert_header_sa6_emmc.bin"
- "cert_header_sa6_emmc.srec"
- "../optee/tee-raw.bin"
- "../optee/tee-%{DOMD_MACHINE}.srec"
- "u-boot-elf-%{DOMD_MACHINE}.srec"
- "u-boot-%{DOMD_MACHINE}.bin"
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
items:
"Image": "%{YOCTOS_WORK_DIR}/%{DOM0_BUILD_DIR}/tmp/deploy/images/%{DOM0_MACHINE}/Image"
"uInitramfs": "%{YOCTOS_WORK_DIR}/%{DOM0_BUILD_DIR}/tmp/deploy/images/%{DOM0_MACHINE}/uInitramfs"
"xen": "%{YOCTOS_WORK_DIR}/%{DOMD_BUILD_DIR}/tmp/deploy/images/%{DOMD_MACHINE}/xen-%{DOMD_MACHINE}.uImage"
"xenpolicy": "%{YOCTOS_WORK_DIR}/%{DOMD_BUILD_DIR}/tmp/deploy/images/%{DOMD_MACHINE}/xenpolicy-%{DOMD_MACHINE}"
"xen.dtb": "%{YOCTOS_WORK_DIR}/%{DOMD_BUILD_DIR}/tmp/deploy/images/%{DOMD_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}/%{DOMD_BUILD_DIR}/tmp/deploy/images/%{DOMD_MACHINE}/%{BUILD_TARGET_DOMD}-%{DOMD_MACHINE}.ext4"
parameters:
# Machines
MACHINE:
desc: "RCAR Gen3-based device"
salvator-xs-m3-2x4g:
# This is not misprint. This machine has 2x4 memory config
overrides:
variables:
MACHINE: "salvator-x"
SOC_FAMILY: "r8a7796"
XT_DOMD_CONFIG_NAME: "domd-salvator-xs-m3-2x4g.cfg"
XT_DOMU_CONFIG_NAME: "domu-generic-m3-2x4g.cfg"
XT_DOMA_CONFIG_NAME: "doma-generic-m3-2x4g.cfg"
XT_OP_TEE_FLAVOUR: "salvator_m3_2x4g"
XT_DOMD_DTB_NAME: "r8a77961-salvator-xs-2x4g-domd.dtb"
XT_XEN_DTB_NAME: "r8a77961-salvator-xs-2x4g-xen.dtb"
salvator-xs-h3-4x2g:
overrides:
variables:
MACHINE: "salvator-x"
SOC_FAMILY: "r8a7795"
XT_DOMD_CONFIG_NAME: "domd-salvator-xs-h3-4x2g.cfg"
XT_DOMU_CONFIG_NAME: "domu-generic-h3-4x2g.cfg"
XT_DOMA_CONFIG_NAME: "doma-generic-h3-4x2g.cfg"
XT_OP_TEE_FLAVOUR: "salvator_h3_4x2g"
XT_DOMD_DTB_NAME: "r8a7795-salvator-xs-4x2g-domd.dtb"
XT_XEN_DTB_NAME: "r8a7795-salvator-xs-4x2g-xen.dtb"
salvator-x-h3-4x2g:
overrides:
variables:
MACHINE: "salvator-x"
SOC_FAMILY: "r8a7795"
XT_DOMD_CONFIG_NAME: "domd-salvator-x-h3-4x2g.cfg"
XT_DOMU_CONFIG_NAME: "domu-generic-h3-4x2g.cfg"
XT_DOMA_CONFIG_NAME: "doma-generic-h3-4x2g.cfg"
XT_OP_TEE_FLAVOUR: "salvator_h3_4x2g"
XT_DOMD_DTB_NAME: "r8a7795-salvator-x-4x2g-domd.dtb"
XT_XEN_DTB_NAME: "r8a7795-salvator-x-4x2g-xen.dtb"
h3ulcb-4x2g:
default: true
overrides:
variables:
MACHINE: "h3ulcb"
SOC_FAMILY: "r8a7795"
XT_DOMD_CONFIG_NAME: "domd-h3ulcb-4x2g.cfg"
XT_DOMU_CONFIG_NAME: "domu-generic-h3-4x2g.cfg"
XT_DOMA_CONFIG_NAME: "doma-generic-h3-4x2g.cfg"
XT_OP_TEE_FLAVOUR: "salvator_h3_4x2g"
XT_DOMD_DTB_NAME: "r8a77951-h3ulcb-4x2g-domd.dtb"
XT_XEN_DTB_NAME: "r8a77951-h3ulcb-4x2g-xen.dtb"
h3ulcb-4x2g-kf:
overrides:
variables:
MACHINE: "h3ulcb"
SOC_FAMILY: "r8a7795"
XT_DOMD_CONFIG_NAME: "domd-h3ulcb-4x2g-kf.cfg"
XT_DOMU_CONFIG_NAME: "domu-generic-h3-4x2g.cfg"
XT_DOMA_CONFIG_NAME: "doma-generic-h3-4x2g.cfg"
XT_OP_TEE_FLAVOUR: "salvator_h3_4x2g"
XT_DOMD_DTB_NAME: "r8a77951-h3ulcb-4x2g-kf-domd.dtb"
XT_XEN_DTB_NAME: "r8a77951-h3ulcb-4x2g-kf-xen.dtb"
components:
domd:
sources:
- type: git
url: https://github.com/xen-troops/meta-rcar.git
rev: "82cf69160ff894721a696644ffe4f21926a74e83" # xt-master
builder:
layers:
- "../meta-rcar/meta-rcar-gen3-adas"
- "../meta-xt-rcar/meta-xt-cogent-fixups"
conf:
# Ignore OP-TEE patches as we have own OP-TEE
- [BBMASK:append, " meta-rcar-gen3-adas/recipes-bsp/optee"]
h3ulcb-4x2g-ab:
overrides:
variables:
MACHINE: "h3ulcb"
SOC_FAMILY: "r8a7795"
XT_DOMD_CONFIG_NAME: "domd-h3ulcb-4x2g-ab.cfg"
XT_DOMU_CONFIG_NAME: "domu-generic-h3-4x2g.cfg"
XT_DOMA_CONFIG_NAME: "doma-generic-h3-4x2g.cfg"
XT_OP_TEE_FLAVOUR: "salvator_h3_4x2g"
XT_DOMD_DTB_NAME: "r8a77951-h3ulcb-4x2g-ab-domd.dtb"
XT_XEN_DTB_NAME: "r8a77951-h3ulcb-4x2g-ab-xen.dtb"
ENABLE_ANDROID:
desc: "Build Android as a guest VM"
"no":
default: true
"yes":
overrides:
variables:
XT_DOMA_TAG: "doma"
XT_DOMA_DTB_NAME: "salvator-generic-doma-virtio.dtb"
components:
dom0:
builder:
conf:
- [XT_DOMA_DTB_NAME, "%{XT_DOMA_DTB_NAME}"]
- [XT_DOMA_CONFIG_NAME, "%{XT_DOMA_CONFIG_NAME}"]
# Flag, which allows to override parameters on the Yocto level.
# E.g. amount of used RAM for driver domain.
- [OVERRIDES:append, ":enable_android"]
additional_deps:
# This is not actually a hard dep. We just want to force Android build
- "../%{DOMA_DIR}/out/target/product/%{ANDROID_DEVICE}/boot.img"
external_src:
# Android uses DTB generated by DomD
doma: "%{YOCTOS_WORK_DIR}/%{DOMD_BUILD_DIR}/tmp/deploy/images/%{DOMD_MACHINE}/"
domd:
sources:
- type: git
url: https://github.com/kraj/meta-clang.git
rev: "8bc893d735e5f779a2dcdc3992621d5ab371800d" # kirkstone
builder:
layers:
- "../meta-clang"
- "../../%{DOMA_DIR}/device/epam/aosp-xenvm-trout/agl_services_build/yocto-layer/meta-google"
additional_deps:
# We need some dependency to AOSP artifacts as we are using the "meta-google"
# layer directly from its source code. Thus DomA should be built before DomD.
- "../%{DOMA_DIR}/out/target/product/%{ANDROID_DEVICE}/boot.img"
images:
android_only: &ANDROID_IMAGE
desc: "Android sub-image (this image is passed to Android VM as a separate block device)"
gpt_type: A326898F-C893-4A64-9990-6F6B7BFDEF18 # GPT type for the upper GPT
type: gpt
partitions:
boot_a:
gpt_type: 49A4D17F-93A3-45C1-A0DE-F50B2EBE2599 # Android boot 1
type: raw_image
image_path: "%{DOMA_DIR}/out/target/product/%{ANDROID_DEVICE}/boot.img"
boot_b:
gpt_type: 20117F86-E985-4357-B9EE-374BC1D8487D # Android boot 2
type: empty
size: 70 MiB
init_boot_a:
gpt_type: 49A4D17F-93A3-45C1-A0DE-F50B2EBE2599 # Android boot 1
type: raw_image
image_path: "%{DOMA_DIR}/out/target/product/%{ANDROID_DEVICE}/init_boot.img"
init_boot_b:
gpt_type: 20117F86-E985-4357-B9EE-374BC1D8487D # Android boot 2
type: empty
size: 10 MiB
vendor_boot_a:
gpt_type: DF24E5ED-8C96-4B86-B00B-79667DC6DE11 # Android sparse 1
type: raw_image
image_path: "%{DOMA_DIR}/out/target/product/%{ANDROID_DEVICE}/vendor_boot.img"
vendor_boot_b:
gpt_type: 7C29D3AD-78B9-452E-9DEB-D098D542F092 # Android sparse 2
type: empty
size: 70 MiB
vbmeta_a:
gpt_type: 19A710A2-B3CA-11E4-B026-10604B889DCF # Android meta
type: raw_image
image_path: "%{DOMA_DIR}/out/target/product/%{ANDROID_DEVICE}/vbmeta.img"
vbmeta_b:
gpt_type: 19A710A2-B3CA-11E4-B026-10604B889DCF # Android meta
type: empty
size: 1 MiB
vbmeta_system_a:
gpt_type: E7C06570-9FDC-11E8-8C15-0A580A200C13 # Android meta
type: raw_image
image_path: "%{DOMA_DIR}/out/target/product/%{ANDROID_DEVICE}/vbmeta_system.img"
vbmeta_system_b:
gpt_type: E7C06570-9FDC-11E8-8C15-0A580A200C13 # Android meta
type: empty
size: 1 MiB
misc:
gpt_type: EF32A33B-A409-486C-9141-9FFB711F6266 # Android misc
type: empty
filled: zeroes
size: 1 MiB
metadata:
gpt_type: 20AC26BE-20B7-11E3-84C5-6CFDB94711E9 # Android metadata
type: ext4
size: 20 MiB
rpmbemul:
gpt_type: DC76DDA9-5AC1-491C-AF42-A82591580C0D # Android data
type: empty
filled: zeroes
size: 1 MiB
super:
gpt_type: 4627AE27-CFEF-48A1-88FE-99C3509ADE26 # Android raw resources
type: android_sparse
image_path: "%{DOMA_DIR}/out/target/product/%{ANDROID_DEVICE}/super.img"
userdata:
gpt_type: 1B81E7E6-F50D-419B-A739-2AEEF8DA3335 # Android userdata
type: android_sparse
image_path: "%{DOMA_DIR}/out/target/product/%{ANDROID_DEVICE}/userdata.img"
full:
partitions:
android:
*ANDROID_IMAGE
ENABLE_DOMU:
desc: "Build generic Yocto-based DomU"
"no":
default: true
"yes":
overrides:
variables:
XT_GENERIC_DOMU_TAG: "domu"
components:
dom0:
builder:
conf:
- [XT_DOMU_CONFIG_NAME, "%{XT_DOMU_CONFIG_NAME}"]
additional_deps:
- "%{DOMU_BUILD_DIR}/tmp/deploy/images/%{DOMU_MACHINE}/Image"
external_src:
domu: "%{YOCTOS_WORK_DIR}/%{DOMU_BUILD_DIR}/tmp/deploy/images/%{DOMU_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/%{DOMU_MACHINE}/%{BUILD_TARGET_DOMU}-%{DOMU_MACHINE}.ext4"
ENABLE_ZEPHYR:
desc: "Build Zephyr as guest domain"
"no":
default: true
"yes":
overrides:
variables:
XT_DOMZ_TAG: "domz"
components:
dom0:
builder:
conf:
- [XT_DOMZ_CONFIG_NAME, "%{XT_DOMZ_CONFIG_NAME}"]
additional_deps:
# paths relative to dom0 build-dir
- "../%{DOMZ_DIR}/zephyr/build/zephyr/zephyr.bin"
external_src:
# path relative to folder containing build.ninja
domz: "%{DOMZ_DIR}/zephyr/build/zephyr"
ENABLE_MM:
desc: "Enable Multimedia support"
"no":
default: true
overrides:
components:
domd:
builder:
conf:
# Mask MMP recipes
- [BBMASK:append, " kernel-module-uvcs-drv omx-user-module"]
"yes":
overrides:
variables:
# Note 1
# Folder with multimedia evaluation package, i.e. files:
# R-Car_Gen3_Series_Evaluation_Software_Package_for_Linux-*.zip
# R-Car_Gen3_Series_Evaluation_Software_Package_of_Linux_Drivers-*.zip
# Pay attention that you do not need to unpack these files,
# as they will be unpacked by recipe eval-pack.bb into two
# subfolders inside specified folder.
#
# Note 2
# You can specify folder in following ways:
# - absolute path;
# - relative to domains build root:
# - use yocto's internal variable ${TOPDIR};
# - or moulin's variable like %{DOMD_BUILD_DIR}.
# Pay attention to usage of % instead of $.
XT_MULTIMEDIA_EVA_DIR: "${TOPDIR}/../../../eva_mm"
components:
domd:
builder:
conf:
# If you enable MM you need to specify features that you need.
# See meta-renesas/meta-rcar-gen3/include/omx-control.inc for
# list of possible distro features, and make sure that required
# library is provided to you within Evaluation package.
# Following line is just example applicable for
# multimedia evaluation package 20210428.
- [DISTRO_FEATURES:append, " aaclcdec_lib aaclcdec_mdw aaclcenc_lib aaclcenc_mdw h264dec_lib h264enc_lib"]
- ["HOSTTOOLS:append", " unzip "]
ENABLE_AOS_VIS:
desc: "Enable AOS VIS service"
"no":
default: true
"yes":
overrides:
components:
domd:
sources:
- type: git
url: https://github.com/aoscloud/meta-aos
rev: "c56f0106dddae3a58080a6602db050a3fe095d9b" # main
builder:
layers:
- "../meta-aos"
conf:
- [AOS_VIS_PLUGINS, "storageadapter"]
- [AOS_VIS_DATA_PROVIDER, "telemetryemulatoradapter"]
- [DISTRO_FEATURES:append, " vis"]
doma:
builder:
env:
- "XT_USE_VIS_SERVER=true"
GRAPHICS:
desc: "Select how to use the GFX (3D hardware accelerator)"
"binaries":
default: true
overrides:
variables:
# for the linux
# Directory containing ${SOC_NAME}_linux_gsx_binaries_gles.tar.gz
XT_PREBUILT_GSX_DIR: "${TOPDIR}/../../../prebuilt_gsx"
components:
dom0:
builder:
conf:
# this machine feature is required to select proper
# configuration for DomU
- [MACHINE_FEATURES:append, " gsx"]
domd:
builder:
conf:
- *GFX_CONF
- [XT_PREBUILT_GSX_DIR, "%{XT_PREBUILT_GSX_DIR}"]
layers:
- "../meta-xt-rcar/meta-xt-rcar-gles_common"
domu:
builder:
conf:
# for Wayland/Weston
- [DISTRO_FEATURES_NATIVESDK:append, " wayland"]
- [DISTRO_FEATURES:append, " pam"]
"sources":
overrides:
# for the linux
components:
dom0:
builder:
conf:
# this machine feature is required to select proper
# configuration for DomU
- [MACHINE_FEATURES:append, " gsx"]
domd:
sources:
- *GFX_SOURCES
builder:
conf:
- *GFX_CONF
# gfx sources still require python2
- [I_SWEAR_TO_MIGRATE_TO_PYTHON3, "yes"]
layers:
- *GFX_LAYERS
domu:
builder:
conf:
# for Wayland/Weston
- [DISTRO_FEATURES_NATIVESDK:append, " wayland"]
- [DISTRO_FEATURES:append, " pam"]