diff options
| -rw-r--r-- | conf/distro/include/meta-virt-xen.inc | 22 | ||||
| -rw-r--r-- | dynamic-layers/raspberrypi/conf/distro/include/xen-raspberrypi4-64.inc | 23 |
2 files changed, 28 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" | |||
| 5 | PACKAGECONFIG_append_pn-qemu_arm = " fdt" | 5 | PACKAGECONFIG_append_pn-qemu_arm = " fdt" |
| 6 | PACKAGECONFIG_append_pn-qemu_aarch64 = " fdt" | 6 | PACKAGECONFIG_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 | 9 | XEN_RPI4_64_CONFIG_PATH ??= \ |
| 10 | RPI_USE_U_BOOT_raspberrypi4-64 = "1" | 10 | 'dynamic-layers/raspberrypi/conf/distro/include/xen-raspberrypi4-64.inc' |
| 11 | ENABLE_UART_raspberrypi4-64 = "1" | 11 | include ${@bb.utils.contains('MACHINE', 'raspberrypi4-64', \ |
| 12 | # Build the bootable SD card image | 12 | '${XEN_RPI4_64_CONFIG_PATH}', '', d)} |
| 13 | IMAGE_CLASSES_append_raspberrypi4-64 = " sdcard_image-rpi" | ||
| 14 | IMAGE_FSTYPES_append_raspberrypi4-64 = " rpi-sdimg" | ||
| 15 | # Add Xen to the bootable SD card image | ||
| 16 | RPI_SDIMG_EXTRA_DEPENDS_append_raspberrypi4-64 = " xen:do_deploy" | ||
| 17 | DEPLOYPAYLOAD_raspberrypi4-64 = "xen-${MACHINE}:xen" | ||
| 18 | # We need the GIC enabled for Xen to work | ||
| 19 | RPI_EXTRA_CONFIG_append_raspberrypi4-64 = "\nenable_gic=1" | ||
| 20 | # Increase boot partition for space for kernel and Xen | ||
| 21 | BOOT_SPACE_raspberrypi4-64 = "61440" | ||
| 22 | # Override the meta-raspberrypi default kernel preference | ||
| 23 | PREFERRED_PROVIDER_virtual/kernel_raspberrypi4-64 ?= "linux-yocto" | ||
| 24 | KERNEL_DEVICETREE_raspberrypi4-64 ?= "broadcom/bcm2711-rpi-4-b.dtb" | ||
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 | ||
| 4 | RPI_USE_U_BOOT = "1" | ||
| 5 | ENABLE_UART = "1" | ||
| 6 | |||
| 7 | # Build the bootable SD card image | ||
| 8 | IMAGE_CLASSES_append = " sdcard_image-rpi" | ||
| 9 | IMAGE_FSTYPES_append = " rpi-sdimg" | ||
| 10 | |||
| 11 | # Add Xen to the bootable SD card image | ||
| 12 | RPI_SDIMG_EXTRA_DEPENDS_append = " xen:do_deploy" | ||
| 13 | DEPLOYPAYLOAD = "xen-${MACHINE}:xen" | ||
| 14 | |||
| 15 | # We need the GIC enabled for Xen to work | ||
| 16 | RPI_EXTRA_CONFIG_append = "\nenable_gic=1" | ||
| 17 | |||
| 18 | # Increase boot partition for space for kernel and Xen | ||
| 19 | BOOT_SPACE = "61440" | ||
| 20 | |||
| 21 | # Override the meta-raspberrypi default kernel preference | ||
| 22 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto" | ||
| 23 | KERNEL_DEVICETREE ?= "broadcom/bcm2711-rpi-4-b.dtb" | ||
