summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core/conf
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@kernel.crashing.org>2022-07-23 20:52:44 -0500
committerMark Hatle <mark.hatle@amd.com>2022-07-28 12:49:51 -0700
commit289e8b5b4018c65a2596e95569e282d882f0146f (patch)
tree2994e800cef033df0ea4d8e598a8fcbf4e9d9979 /meta-xilinx-core/conf
parent443e3bdc7b0775d187122456e44e528ae030731e (diff)
downloadmeta-xilinx-289e8b5b4018c65a2596e95569e282d882f0146f.tar.gz
machine-xilinx-qemu.inc: Adjust function to verify fstype is valid
Simplify the function to treat microblaze as a soc_family. If we do not have initramfs_image defined, then verify wic.qemu-sd is available before returning that value, otherwise fall back to the dictionary. Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Diffstat (limited to 'meta-xilinx-core/conf')
-rw-r--r--meta-xilinx-core/conf/machine/include/machine-xilinx-qemu.inc13
1 files changed, 7 insertions, 6 deletions
diff --git a/meta-xilinx-core/conf/machine/include/machine-xilinx-qemu.inc b/meta-xilinx-core/conf/machine/include/machine-xilinx-qemu.inc
index 8cf9d4ed..0fcc5087 100644
--- a/meta-xilinx-core/conf/machine/include/machine-xilinx-qemu.inc
+++ b/meta-xilinx-core/conf/machine/include/machine-xilinx-qemu.inc
@@ -54,13 +54,14 @@ def qemu_rootfs_params(d,param):
54 "zynqmp": "cpio.gz.u-boot", 54 "zynqmp": "cpio.gz.u-boot",
55 "versal": "cpio.gz.u-boot.qemu-sd-fatimg" 55 "versal": "cpio.gz.u-boot.qemu-sd-fatimg"
56 } 56 }
57 if initramfs_image: 57 if 'microblaze' in tune_features:
58 if 'microblaze' in tune_features: 58 soc_family = 'microblaze'
59 return fstype_dict['microblaze'] 59 if not initramfs_image:
60 else: 60 image_fs = d.getVar('IMAGE_FSTYPES')
61 return fstype_dict[soc_family] 61 if 'wic.qemu-sd' in image_fs:
62 else:
63 return 'wic.qemu-sd' 62 return 'wic.qemu-sd'
63 return fstype_dict[soc_family]
64
64 elif param == 'rootfs-opt': 65 elif param == 'rootfs-opt':
65 if not initramfs_image or soc_family == 'versal': 66 if not initramfs_image or soc_family == 'versal':
66 sd_index = "1" 67 sd_index = "1"