diff options
Diffstat (limited to 'conf/distro/include/meta-virt-xen.inc')
-rw-r--r-- | conf/distro/include/meta-virt-xen.inc | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/conf/distro/include/meta-virt-xen.inc b/conf/distro/include/meta-virt-xen.inc index 44853d95..5fbb57f8 100644 --- a/conf/distro/include/meta-virt-xen.inc +++ b/conf/distro/include/meta-virt-xen.inc @@ -1,23 +1,15 @@ # Make sure Xen mode is enabled in qemu -PACKAGECONFIG_append_pn-qemu = " xen" +PACKAGECONFIG:append:pn-qemu = " xen" # For builds for ARM platforms, enable fdt -PACKAGECONFIG_append_pn-qemu_arm = " fdt" -PACKAGECONFIG_append_pn-qemu_aarch64 = " fdt" +PACKAGECONFIG:append:pn-qemu:arm = " fdt" +PACKAGECONFIG:append:pn-qemu:aarch64 = " fdt" -# Raspberry Pi settings -# Xen uses u-boot for configuration and uses the uart -RPI_USE_U_BOOT_raspberrypi4-64 = "1" -ENABLE_UART_raspberrypi4-64 = "1" -# Build the bootable SD card image -IMAGE_CLASSES_append_raspberrypi4-64 = " sdcard_image-rpi" -IMAGE_FSTYPES_append_raspberrypi4-64 = " rpi-sdimg" -# Add Xen to the bootable SD card image -RPI_SDIMG_EXTRA_DEPENDS_append_raspberrypi4-64 = " xen:do_deploy" -DEPLOYPAYLOAD_raspberrypi4-64 = "xen-${MACHINE}:xen" -# We need the GIC enabled for Xen to work -RPI_EXTRA_CONFIG_append_raspberrypi4-64 = "\nenable_gic=1" -# Increase boot partition for space for kernel and Xen -BOOT_SPACE_raspberrypi4-64 = "61440" -# Override the meta-raspberrypi default kernel preference -PREFERRED_PROVIDER_virtual/kernel_raspberrypi4-64 = "linux-yocto-dev" +# Xen on Raspberry Pi 4 64-bit support +XEN_RPI4_64_CONFIG_PATH ??= \ + 'dynamic-layers/raspberrypi/conf/distro/include/xen-raspberrypi4-64.inc' +include ${@bb.utils.contains('MACHINE', 'raspberrypi4-64', \ + '${XEN_RPI4_64_CONFIG_PATH}', '', d)} + +# Set serial for working qemuboot console +SERIAL_CONSOLES:qemuarm64 ?= "115200;ttyAMA0" |