xen: make QB_ assignments weak

runqemu is looking for the QB_DEFAULT_KERNEL to be set to "none"
to trigger special processing. The current set of QB_DEFAULT_KERNEL=""
won't trigger that behaviour .. so we change the default.

We also make the assignments weak, to allow easier overrides in
specific implementations.

We also need a patch to qemuboot.bbclass to make the defaults ??=,
and when that is done, our ?= here will work properly.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
Bruce Ashfield 2020-09-16 14:09:30 -04:00
parent 2711b81afd
commit 2f22425222

View File

@ -74,10 +74,10 @@ build_syslinux_cfg () {
# Enable runqemu. eg: runqemu xen-image-minimal nographic slirp
WKS_FILE_x86-64 = "directdisk-xen.wks"
QB_MEM = "-m 400"
QB_DEFAULT_KERNEL = ""
QB_DEFAULT_FSTYPE = "wic"
QB_FSINFO = "wic:kernel-in-fs"
QB_MEM ?= "-m 400"
QB_DEFAULT_KERNEL ?= "none"
QB_DEFAULT_FSTYPE ?= "wic"
QB_FSINFO ?= "wic:kernel-in-fs"
# qemux86-64 machine does not include 'wic' in IMAGE_FSTYPES, which is needed
# to boot this image, so add it here:
IMAGE_FSTYPES_qemux86-64 += "wic"