diff options
author | Mark Hatle <mark.hatle@amd.com> | 2022-12-16 10:15:11 -0800 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2022-12-16 10:18:32 -0800 |
commit | 2dccf9c8a88c21e404d2b3eb4438e1489b0bdd3d (patch) | |
tree | c66eb7ff5a7f130d31e795a03c34fb519f27fbd8 | |
parent | f1692bd0d50f9ca6d4cdc3c5d221af60acb50a18 (diff) | |
download | meta-xilinx-2dccf9c8a88c21e404d2b3eb4438e1489b0bdd3d.tar.gz |
qemuboot-xilinx: Return empty if soc_family not defined
Fix an issue when soc_family is not defined that an exception was thrown.
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r-- | meta-xilinx-core/classes/qemuboot-xilinx.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-xilinx-core/classes/qemuboot-xilinx.bbclass b/meta-xilinx-core/classes/qemuboot-xilinx.bbclass index 3835591d..7466ab5e 100644 --- a/meta-xilinx-core/classes/qemuboot-xilinx.bbclass +++ b/meta-xilinx-core/classes/qemuboot-xilinx.bbclass | |||
@@ -91,6 +91,8 @@ def qemu_rootfs_params(data, param): | |||
91 | image_fs = data.getVar('IMAGE_FSTYPES') | 91 | image_fs = data.getVar('IMAGE_FSTYPES') |
92 | if 'wic.qemu-sd' in image_fs: | 92 | if 'wic.qemu-sd' in image_fs: |
93 | return 'wic.qemu-sd' | 93 | return 'wic.qemu-sd' |
94 | if soc_family not in fstype_dict: | ||
95 | return "" | ||
94 | return fstype_dict[soc_family] | 96 | return fstype_dict[soc_family] |
95 | 97 | ||
96 | elif param == 'rootfs-opt': | 98 | elif param == 'rootfs-opt': |