From 5fdf66c1e2ec0c6b08573bf0a6aa9f84d2fc4ae6 Mon Sep 17 00:00:00 2001 From: Christopher Clark Date: Sun, 1 Aug 2021 18:26:56 -0700 Subject: xen-image-minimal: fix aarch64 build for non-qemuboot-enabled machines The qemuboot device tree generation task in qemuboot-xen-dtb.bbclass requires the QB_SYSTEM_NAME variable to be set to identify the Qemu binary to use. Skip the task if it is not set. Reported-and-tested-by: Jon Mason Signed-off-by: Christopher Clark Signed-off-by: Bruce Ashfield --- classes/qemuboot-xen-dtb.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes') diff --git a/classes/qemuboot-xen-dtb.bbclass b/classes/qemuboot-xen-dtb.bbclass index 08f9b02e..2d37e913 100644 --- a/classes/qemuboot-xen-dtb.bbclass +++ b/classes/qemuboot-xen-dtb.bbclass @@ -176,7 +176,7 @@ do_write_xen_qemuboot_dtb() { # Not all architectures qemuboot with a device tree binary, so check # to see if one is needed. This allows this bbclass file to be used # in the same image recipe for multiple architectures. - if [ -n "${QB_DTB}" ] ; then + if [ -n "${QB_DTB}" ] && [ -n "${QB_SYSTEM_NAME}" ] ; then generate_xen_qemuboot_dtb fi } -- cgit v1.2.3-54-g00ecf