summaryrefslogtreecommitdiffstats
path: root/conf
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 /conf
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 'conf')
-rw-r--r--conf/distro/include/meta-virt-xen.inc22
1 files changed, 5 insertions, 17 deletions
diff --git a/conf/distro/include/meta-virt-xen.inc b/conf/distro/include/meta-virt-xen.inc
index 584cd6eb..02a78105 100644
--- a/conf/distro/include/meta-virt-xen.inc
+++ b/conf/distro/include/meta-virt-xen.inc
@@ -5,20 +5,8 @@ PACKAGECONFIG_append_pn-qemu = " xen"
5PACKAGECONFIG_append_pn-qemu_arm = " fdt" 5PACKAGECONFIG_append_pn-qemu_arm = " fdt"
6PACKAGECONFIG_append_pn-qemu_aarch64 = " fdt" 6PACKAGECONFIG_append_pn-qemu_aarch64 = " fdt"
7 7
8# Raspberry Pi settings 8# Xen on Raspberry Pi 4 64-bit support
9# Xen uses u-boot for configuration and uses the uart 9XEN_RPI4_64_CONFIG_PATH ??= \
10RPI_USE_U_BOOT_raspberrypi4-64 = "1" 10 'dynamic-layers/raspberrypi/conf/distro/include/xen-raspberrypi4-64.inc'
11ENABLE_UART_raspberrypi4-64 = "1" 11include ${@bb.utils.contains('MACHINE', 'raspberrypi4-64', \
12# Build the bootable SD card image 12 '${XEN_RPI4_64_CONFIG_PATH}', '', d)}
13IMAGE_CLASSES_append_raspberrypi4-64 = " sdcard_image-rpi"
14IMAGE_FSTYPES_append_raspberrypi4-64 = " rpi-sdimg"
15# Add Xen to the bootable SD card image
16RPI_SDIMG_EXTRA_DEPENDS_append_raspberrypi4-64 = " xen:do_deploy"
17DEPLOYPAYLOAD_raspberrypi4-64 = "xen-${MACHINE}:xen"
18# We need the GIC enabled for Xen to work
19RPI_EXTRA_CONFIG_append_raspberrypi4-64 = "\nenable_gic=1"
20# Increase boot partition for space for kernel and Xen
21BOOT_SPACE_raspberrypi4-64 = "61440"
22# Override the meta-raspberrypi default kernel preference
23PREFERRED_PROVIDER_virtual/kernel_raspberrypi4-64 ?= "linux-yocto"
24KERNEL_DEVICETREE_raspberrypi4-64 ?= "broadcom/bcm2711-rpi-4-b.dtb"