diff options
author | Christopher Clark <christopher.w.clark@gmail.com> | 2021-08-01 18:26:56 -0700 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2021-08-02 15:51:15 -0400 |
commit | 5fdf66c1e2ec0c6b08573bf0a6aa9f84d2fc4ae6 (patch) | |
tree | f5acaa9eb32081b7a55bbc89905a928c5d51cd75 /classes/qemuboot-xen-dtb.bbclass | |
parent | b975a66297cf07071c36f14b4d1490680982793e (diff) | |
download | meta-virtualization-5fdf66c1e2ec0c6b08573bf0a6aa9f84d2fc4ae6.tar.gz |
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 <jdmason@kudzu.us>
Signed-off-by: Christopher Clark <christopher.clark@starlab.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'classes/qemuboot-xen-dtb.bbclass')
-rw-r--r-- | classes/qemuboot-xen-dtb.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
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() { | |||
176 | # Not all architectures qemuboot with a device tree binary, so check | 176 | # Not all architectures qemuboot with a device tree binary, so check |
177 | # to see if one is needed. This allows this bbclass file to be used | 177 | # to see if one is needed. This allows this bbclass file to be used |
178 | # in the same image recipe for multiple architectures. | 178 | # in the same image recipe for multiple architectures. |
179 | if [ -n "${QB_DTB}" ] ; then | 179 | if [ -n "${QB_DTB}" ] && [ -n "${QB_SYSTEM_NAME}" ] ; then |
180 | generate_xen_qemuboot_dtb | 180 | generate_xen_qemuboot_dtb |
181 | fi | 181 | fi |
182 | } | 182 | } |