summaryrefslogtreecommitdiffstats
path: root/dynamic-layers/raspberrypi
diff options
context:
space:
mode:
authorChristopher Clark <christopher.w.clark@gmail.com>2021-04-24 01:31:02 -0700
committerBruce Ashfield <bruce.ashfield@gmail.com>2021-04-29 23:05:11 -0400
commit686adaf68eac343a261ae43a9452a978479f45ad (patch)
treeb840259ee36d81d68d61c769800c20616da722b1 /dynamic-layers/raspberrypi
parentb882ebab2234401228911bfc3b76e85adfc8182c (diff)
downloadmeta-virtualization-686adaf68eac343a261ae43a9452a978479f45ad.tar.gz
xen, rpi4: move rpi4-machine+xen-distro cfg into dynamic layer
Improve meta-virt-xen.inc by moving all the Raspberry Pi 4 config settings to a new xen-raspberrypi4-64.inc file in the raspberrypi dynamic layer. The new .inc file is included only for the raspberrypi4-64 MACHINE, so the config settings no longer need to be applied using overrides. Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'dynamic-layers/raspberrypi')
-rw-r--r--dynamic-layers/raspberrypi/conf/distro/include/xen-raspberrypi4-64.inc23
1 files changed, 23 insertions, 0 deletions
diff --git a/dynamic-layers/raspberrypi/conf/distro/include/xen-raspberrypi4-64.inc b/dynamic-layers/raspberrypi/conf/distro/include/xen-raspberrypi4-64.inc
new file mode 100644
index 00000000..9c362551
--- /dev/null
+++ b/dynamic-layers/raspberrypi/conf/distro/include/xen-raspberrypi4-64.inc
@@ -0,0 +1,23 @@
1# Xen on Raspberry Pi 4 settings
2
3# Xen uses u-boot for configuration and uses the uart
4RPI_USE_U_BOOT = "1"
5ENABLE_UART = "1"
6
7# Build the bootable SD card image
8IMAGE_CLASSES_append = " sdcard_image-rpi"
9IMAGE_FSTYPES_append = " rpi-sdimg"
10
11# Add Xen to the bootable SD card image
12RPI_SDIMG_EXTRA_DEPENDS_append = " xen:do_deploy"
13DEPLOYPAYLOAD = "xen-${MACHINE}:xen"
14
15# We need the GIC enabled for Xen to work
16RPI_EXTRA_CONFIG_append = "\nenable_gic=1"
17
18# Increase boot partition for space for kernel and Xen
19BOOT_SPACE = "61440"
20
21# Override the meta-raspberrypi default kernel preference
22PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
23KERNEL_DEVICETREE ?= "broadcom/bcm2711-rpi-4-b.dtb"