summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorChristopher Clark <christopher.w.clark@gmail.com>2020-08-07 00:04:59 -0700
committerBruce Ashfield <bruce.ashfield@gmail.com>2020-08-11 15:58:37 -0400
commitb34307e2f49649aca2f455de8c2ed48eee101138 (patch)
treef04005385ab821aaf7edc4f50bc7cfc5b0f4bf3e /conf
parent62a39b48a8c48c6eae1ad889c0f7a935221fe010 (diff)
downloadmeta-virtualization-b34307e2f49649aca2f455de8c2ed48eee101138.tar.gz
xen: retire the Raspberry Pi sdcard class
The sdcard class in the meta-raspberrypi layer is now extensible with support for adding files such as hypervisor binaries to the boot partition, so this layer can switch to use that and drop the custom sdcard bbclass. Uses the new RPI_SDIMG_EXTRA_DEPENDS and DEPLOYPAYLOAD variables, and: IMAGE_CLASS: sdcard_image-rpi-xen => sdcard_image-rpi IMAGE_FSTYPE: rpi-xen-sdimg => rpi-sdimg Please note that the filename suffix of the image is changed by this. Also apply _raspberrypi4-64 scoping to the Raspberry Pi settings. 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.inc13
1 files changed, 8 insertions, 5 deletions
diff --git a/conf/distro/include/meta-virt-xen.inc b/conf/distro/include/meta-virt-xen.inc
index b61f612a..1ad670ed 100644
--- a/conf/distro/include/meta-virt-xen.inc
+++ b/conf/distro/include/meta-virt-xen.inc
@@ -6,11 +6,14 @@ PACKAGECONFIG_append_pn-qemu_arm = " fdt"
6PACKAGECONFIG_append_pn-qemu_aarch64 = " fdt" 6PACKAGECONFIG_append_pn-qemu_aarch64 = " fdt"
7 7
8# Raspberry Pi settings 8# Raspberry Pi settings
9# - Xen uses u-boot for configuration and uses the uart 9# Xen uses u-boot for configuration and uses the uart
10RPI_USE_U_BOOT = "1" 10RPI_USE_U_BOOT_raspberrypi4-64 = "1"
11ENABLE_UART = "1" 11ENABLE_UART_raspberrypi4-64 = "1"
12# Build the bootable SD card image 12# Build the bootable SD card image
13IMAGE_CLASSES_append_raspberrypi4-64 = " sdcard_image-rpi-xen" 13IMAGE_CLASSES_append_raspberrypi4-64 = " sdcard_image-rpi"
14IMAGE_FSTYPES_append_raspberrypi4-64 = " rpi-xen-sdimg" 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"
15# Align kernel version with current meta-virtualization kernel version 18# Align kernel version with current meta-virtualization kernel version
16PREFERRED_VERSION_linux-raspberrypi ?= "5.4.%" 19PREFERRED_VERSION_linux-raspberrypi ?= "5.4.%"