summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2025-02-03 13:55:02 -0700
committerMark Hatle <mark.hatle@amd.com>2025-03-30 14:16:15 -0600
commit82cb81d5911529ed1499f310fa02937ef3f82bc6 (patch)
tree4ab00d95793d95f7498f0f2f7f5ac31f69dbd9b1
parent5d11769812f09c73d05e9fe550bbe351929f66d8 (diff)
downloadmeta-xilinx-82cb81d5911529ed1499f310fa02937ef3f82bc6.tar.gz
meta-xilinx-core: qemuboot-xilinx.bbclass: Rename QB_ vars
QB_ variables are automatically included in the generated qemuboot.conf files, even if they are not used by runqemu. Rename various AMD specific values to avoid them being added to the file. QB_BOOT_MODE -> QEMU_HW_BOOT_MODE QB_SD_DRIVE_INDEX -> QEMU_HW_SD_DRIVE_INDEX Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-core/classes-recipe/qemuboot-xilinx.bbclass12
1 files changed, 6 insertions, 6 deletions
diff --git a/meta-xilinx-core/classes-recipe/qemuboot-xilinx.bbclass b/meta-xilinx-core/classes-recipe/qemuboot-xilinx.bbclass
index df7016d4..67612d05 100644
--- a/meta-xilinx-core/classes-recipe/qemuboot-xilinx.bbclass
+++ b/meta-xilinx-core/classes-recipe/qemuboot-xilinx.bbclass
@@ -26,7 +26,7 @@ QB_DEFAULT_KERNEL:microblaze ?= "${@'simpleImage.mb' if \
26# https://docs.amd.com/r/en-US/ug585-zynq-7000-SoC-TRM/Boot-Mode-Pin-Settings 26# https://docs.amd.com/r/en-US/ug585-zynq-7000-SoC-TRM/Boot-Mode-Pin-Settings
27# https://docs.amd.com/r/en-US/ug1085-zynq-ultrascale-trm/Boot-Modes 27# https://docs.amd.com/r/en-US/ug1085-zynq-ultrascale-trm/Boot-Modes
28# https://docs.amd.com/r/en-US/ug1304-versal-acap-ssdg/Boot-Device-Modes 28# https://docs.amd.com/r/en-US/ug1304-versal-acap-ssdg/Boot-Device-Modes
29QB_BOOT_MODE ?= "-boot mode=5" 29QEMU_HW_BOOT_MODE ?= "-boot mode=5"
30 30
31 31
32# ZynqMP or Versal SD and eMMC drive index. 32# ZynqMP or Versal SD and eMMC drive index.
@@ -39,9 +39,9 @@ QB_BOOT_MODE ?= "-boot mode=5"
39# ZynqMP, Versal eMMC0(secondary boot only) 2 39# ZynqMP, Versal eMMC0(secondary boot only) 2
40# ZynqMP, Versal eMMC1 3 40# ZynqMP, Versal eMMC1 3
41 41
42QB_SD_DRIVE_INDEX ?= "1" 42QEMU_HW_SD_DRIVE_INDEX ?= "1"
43QB_SD_DRIVE_INDEX:zynq ?= "0" 43QEMU_HW_SD_DRIVE_INDEX:zynq ?= "0"
44QB_SD_DRIVE_INDEX:versal-net ?= "0" 44QEMU_HW_SD_DRIVE_INDEX:versal-net ?= "0"
45 45
46inherit qemuboot 46inherit qemuboot
47 47
@@ -66,7 +66,7 @@ def qemu_add_extra_args(data):
66 deploy_dir = data.getVar('DEPLOY_DIR_IMAGE') or "" 66 deploy_dir = data.getVar('DEPLOY_DIR_IMAGE') or ""
67 machine_name = data.getVar('MACHINE') or "" 67 machine_name = data.getVar('MACHINE') or ""
68 soc_family = data.getVar('SOC_FAMILY') or "" 68 soc_family = data.getVar('SOC_FAMILY') or ""
69 boot_mode = data.getVar('QB_BOOT_MODE') or "" 69 boot_mode = data.getVar('QEMU_HW_BOOT_MODE') or ""
70 qb_extra_args = '' 70 qb_extra_args = ''
71 # Add kernel image and boot.scr to qemu boot command when initramfs_image supplied 71 # Add kernel image and boot.scr to qemu boot command when initramfs_image supplied
72 kernel_name = '' 72 kernel_name = ''
@@ -94,7 +94,7 @@ def qemu_rootfs_params(data, param):
94 bundle_image = data.getVar('INITRAMFS_IMAGE_BUNDLE') or "" 94 bundle_image = data.getVar('INITRAMFS_IMAGE_BUNDLE') or ""
95 soc_family = data.getVar('SOC_FAMILY') or "" 95 soc_family = data.getVar('SOC_FAMILY') or ""
96 tune_features = (data.getVar('TUNE_FEATURES') or []).split() 96 tune_features = (data.getVar('TUNE_FEATURES') or []).split()
97 sd_index = data.getVar('QB_SD_DRIVE_INDEX') or "" 97 sd_index = data.getVar('QEMU_HW_SD_DRIVE_INDEX') or ""
98 if 'microblaze' in tune_features: 98 if 'microblaze' in tune_features:
99 soc_family = 'microblaze' 99 soc_family = 'microblaze'
100 100