diff options
author | Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> | 2022-06-27 17:36:15 +0530 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2022-07-28 12:49:51 -0700 |
commit | 177c6a7789249026bd966c76e1dafcd380dc7b50 (patch) | |
tree | cf7a3868164b4b0a44dba8273e63383ca339e357 | |
parent | 1d3a6ec61716a45318a8210c92253848d351d245 (diff) | |
download | meta-xilinx-177c6a7789249026bd966c76e1dafcd380dc7b50.tar.gz |
qemuboot-xilinx:machine-xilinx-default: Update kernel images
For zynq,microblaze qemu supports direct kernel boot by specifying
kernel image name to QB_DEFAULT_KERNEL.
Adjusting the kernel image based on the bundle image selection.
Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com>
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r-- | meta-xilinx-core/classes/qemuboot-xilinx.bbclass | 4 | ||||
-rw-r--r-- | meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/meta-xilinx-core/classes/qemuboot-xilinx.bbclass b/meta-xilinx-core/classes/qemuboot-xilinx.bbclass index 48dfa6e2..59d3f0ab 100644 --- a/meta-xilinx-core/classes/qemuboot-xilinx.bbclass +++ b/meta-xilinx-core/classes/qemuboot-xilinx.bbclass | |||
@@ -12,6 +12,10 @@ QB_MACHINE_XILINX:microblaze = "-M microblaze-fdt-plnx" | |||
12 | 12 | ||
13 | # defaults | 13 | # defaults |
14 | QB_DEFAULT_KERNEL ?= "none" | 14 | QB_DEFAULT_KERNEL ?= "none" |
15 | QB_DEFAULT_KERNEL:zynq ?= "${@'zImage' if \ | ||
16 | d.getVar('INITRAMFS_IMAGE_BUNDLE') != '1' else 'zImage-initramfs-${MACHINE}.bin'}" | ||
17 | QB_DEFAULT_KERNEL:microblaze ?= "${@'simpleImage.mb' if \ | ||
18 | d.getVar('INITRAMFS_IMAGE_BUNDLE') != '1' else 'simpleImage.mb-initramfs-${MACHINE}.bin'}" | ||
15 | 19 | ||
16 | inherit qemuboot | 20 | inherit qemuboot |
17 | 21 | ||
diff --git a/meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc b/meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc index a15e92c6..a4b0c59a 100644 --- a/meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc +++ b/meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc | |||
@@ -46,6 +46,7 @@ def get_default_image_boot_files(d): | |||
46 | # kernel images | 46 | # kernel images |
47 | kerneltypes = set((d.getVar("KERNEL_IMAGETYPE") or "").split()) | 47 | kerneltypes = set((d.getVar("KERNEL_IMAGETYPE") or "").split()) |
48 | kerneltypes |= set((d.getVar("KERNEL_IMAGETYPES") or "").split()) | 48 | kerneltypes |= set((d.getVar("KERNEL_IMAGETYPES") or "").split()) |
49 | kerneltypes |= set((d.getVar("KERNEL_ALT_IMAGETYPE") or "").split()) | ||
49 | for i in kerneltypes: | 50 | for i in kerneltypes: |
50 | files.append(i) | 51 | files.append(i) |
51 | 52 | ||