diff options
Diffstat (limited to 'classes/qemuboot-xen-defaults.bbclass')
| -rw-r--r-- | classes/qemuboot-xen-defaults.bbclass | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/classes/qemuboot-xen-defaults.bbclass b/classes/qemuboot-xen-defaults.bbclass new file mode 100644 index 00000000..67751d3a --- /dev/null +++ b/classes/qemuboot-xen-defaults.bbclass | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | # Set defaults for booting Xen images with qemuboot | ||
| 2 | |||
| 3 | # Xen and Dom0 command line options | ||
| 4 | QB_XEN_CMDLINE_EXTRA ??= "dom0_mem=192M" | ||
| 5 | QB_XEN_DOM0_BOOTARGS ??= \ | ||
| 6 | "console=hvc0 earlyprintk clk_ignore_unused root=/dev/vda" | ||
| 7 | |||
| 8 | # Launch with one initial domain, dom0, with one boot module, the kernel | ||
| 9 | DOM0_KERNEL ??= "${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}" | ||
| 10 | DOM0_KERNEL_LOAD_ADDR ??= "0x45000000" | ||
| 11 | QB_XEN_DOMAIN_MODULES ??= "${DOM0_KERNEL}:${DOM0_KERNEL_LOAD_ADDR}:multiboot,kernel" | ||
| 12 | |||
| 13 | # Qemuboot for 64-bit Arm uses the QB_DEFAULT_KERNEL method to load Xen | ||
| 14 | # and the device loader option for the dom0 kernel: | ||
| 15 | QB_OPT_APPEND_append_aarch64 = " \ | ||
| 16 | -device loader,file=${DOM0_KERNEL},addr=${DOM0_KERNEL_LOAD_ADDR} \ | ||
| 17 | " | ||
| 18 | QB_DEFAULT_KERNEL_aarch64 = "xen-${MACHINE}" | ||
| 19 | |||
| 20 | # 64-bit Arm: gic version 3 | ||
| 21 | QB_MACHINE_aarch64 = "-machine virt,gic-version=3 -machine virtualization=true" | ||
| 22 | |||
| 23 | # Increase the default qemu memory allocation to allow for the hypervisor. | ||
| 24 | # Use a weak assignment to allow for change of default and override elsewhere. | ||
| 25 | QB_MEM_VALUE ??= "512" | ||
| 26 | QB_MEM = "-m ${QB_MEM_VALUE}" | ||
| 27 | |||
| 28 | # 64-bit Arm: qemuboot with a device tree binary | ||
| 29 | QB_DTB_aarch64 = "${IMAGE_NAME}.qemuboot.dtb" | ||
| 30 | QB_DTB_LINK_aarch64 = "${IMAGE_LINK_NAME}.qemuboot.dtb" | ||
