summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>2025-02-06 14:13:24 -0700
committerMark Hatle <mark.hatle@amd.com>2025-03-30 14:16:15 -0600
commit7194b45beba30f906e340644cdcfc2d5980a703b (patch)
treeaaf8da4cd151703b212db313751030431de2cd89
parent5483fae07c0608aced894d840c9e1eac2591c42d (diff)
downloadmeta-xilinx-7194b45beba30f906e340644cdcfc2d5980a703b.tar.gz
qemuboot-xilinx: Refactor QEMU_HW_BOOT_MODE to accept only value
Refactor QEMU_HW_BOOT_MODE to accept only boot mode value and move "-boot mode" to qb_extra_args. This makes checking for boot mode value easier in getVar operations. Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-core/classes-recipe/qemuboot-xilinx.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta-xilinx-core/classes-recipe/qemuboot-xilinx.bbclass b/meta-xilinx-core/classes-recipe/qemuboot-xilinx.bbclass
index 2b704645..45d7f3c6 100644
--- a/meta-xilinx-core/classes-recipe/qemuboot-xilinx.bbclass
+++ b/meta-xilinx-core/classes-recipe/qemuboot-xilinx.bbclass
@@ -14,7 +14,7 @@ QB_DTB ?= "${@qemu_default_dtb(d)}"
14# https://docs.amd.com/r/en-US/ug585-zynq-7000-SoC-TRM/Boot-Mode-Pin-Settings 14# https://docs.amd.com/r/en-US/ug585-zynq-7000-SoC-TRM/Boot-Mode-Pin-Settings
15# https://docs.amd.com/r/en-US/ug1085-zynq-ultrascale-trm/Boot-Modes 15# https://docs.amd.com/r/en-US/ug1085-zynq-ultrascale-trm/Boot-Modes
16# https://docs.amd.com/r/en-US/ug1304-versal-acap-ssdg/Boot-Device-Modes 16# https://docs.amd.com/r/en-US/ug1304-versal-acap-ssdg/Boot-Device-Modes
17QEMU_HW_BOOT_MODE ?= "-boot mode=5" 17QEMU_HW_BOOT_MODE ?= "5"
18 18
19 19
20# ZynqMP or Versal SD and eMMC drive index. 20# ZynqMP or Versal SD and eMMC drive index.
@@ -71,10 +71,10 @@ def qemu_add_extra_args(data):
71 qb_extra_args = ' -device loader,file=%s,addr=%s,force-raw=on' % (kernel_image, kernel_loadaddr) 71 qb_extra_args = ' -device loader,file=%s,addr=%s,force-raw=on' % (kernel_image, kernel_loadaddr)
72 qb_extra_args += ' -device loader,file=%s,addr=%s,force-raw=on' % (bootscr_image, bootscr_loadaddr) 72 qb_extra_args += ' -device loader,file=%s,addr=%s,force-raw=on' % (bootscr_image, bootscr_loadaddr)
73 if soc_family in ('versal', 'versal-net'): 73 if soc_family in ('versal', 'versal-net'):
74 qb_extra_args += ' %s' % boot_mode 74 qb_extra_args += ' -boot mode=%s' % boot_mode
75 else: 75 else:
76 if soc_family in ('zynqmp', 'versal', 'versal-net'): 76 if soc_family in ('zynqmp', 'versal', 'versal-net'):
77 qb_extra_args = ' %s' % boot_mode 77 qb_extra_args = ' -boot mode=%s' % boot_mode
78 return qb_extra_args 78 return qb_extra_args
79 79
80def qemu_rootfs_params(data, param): 80def qemu_rootfs_params(data, param):