summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-bsp
diff options
context:
space:
mode:
authorRaju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com>2021-03-16 11:55:51 +0530
committerSai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>2021-07-14 14:49:19 -0700
commite0ee4e4cf6ce05f99bcd8fa95104ea605738a50c (patch)
tree492168ed67d8750c53dc389fbddb774f8fdfed1d /meta-xilinx-bsp
parent9e0f025df88b7e13aa4abf2eff1852a5fc1fb0a4 (diff)
downloadmeta-xilinx-e0ee4e4cf6ce05f99bcd8fa95104ea605738a50c.tar.gz
u-boot-zynq-scr.bb: Use ramdisk.cpio image when switch_root enabled
Use the ramdisk.cpio.gz.u-boot image for pxeboot when INITRAMFS_IMAGE has the image name *initramfs*. Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
Diffstat (limited to 'meta-xilinx-bsp')
-rw-r--r--meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-zynq-scr.bb4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-zynq-scr.bb b/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-zynq-scr.bb
index ed6ff60f..12b76010 100644
--- a/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-zynq-scr.bb
+++ b/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-zynq-scr.bb
@@ -20,6 +20,8 @@ DEVICE_TREE_NAME ?= "${@bb.utils.contains('PREFERRED_PROVIDER_virtual/dtb', 'dev
20RAMDISK_IMAGE ?= "" 20RAMDISK_IMAGE ?= ""
21RAMDISK_IMAGE_zynq ?= "uramdisk.image.gz" 21RAMDISK_IMAGE_zynq ?= "uramdisk.image.gz"
22 22
23PXERAMDISK_IMAGE ?= "${@'ramdisk.cpio.gz.u-boot' if d.getVar('INITRAMFS_IMAGE') and d.getVar('INITRAMFS_IMAGE').find('initramfs') > 0 else '${RAMDISK_IMAGE}'}"
24
23KERNEL_BOOTCMD_zynqmp ?= "booti" 25KERNEL_BOOTCMD_zynqmp ?= "booti"
24KERNEL_BOOTCMD_zynq ?= "bootm" 26KERNEL_BOOTCMD_zynq ?= "bootm"
25KERNEL_BOOTCMD_versal ?= "booti" 27KERNEL_BOOTCMD_versal ?= "booti"
@@ -223,7 +225,7 @@ do_compile() {
223 mkimage -A arm -T script -C none -n "Boot script" -d "${WORKDIR}/boot.cmd" boot.scr 225 mkimage -A arm -T script -C none -n "Boot script" -d "${WORKDIR}/boot.cmd" boot.scr
224 sed -e 's/@@KERNEL_IMAGETYPE@@/${KERNEL_IMAGETYPE}/' \ 226 sed -e 's/@@KERNEL_IMAGETYPE@@/${KERNEL_IMAGETYPE}/' \
225 -e 's/@@DEVICE_TREE_NAME@@/${DEVICE_TREE_NAME}/' \ 227 -e 's/@@DEVICE_TREE_NAME@@/${DEVICE_TREE_NAME}/' \
226 -e 's/@@RAMDISK_IMAGE@@/${RAMDISK_IMAGE}/' \ 228 -e 's/@@RAMDISK_IMAGE@@/${PXERAMDISK_IMAGE}/' \
227 "${WORKDIR}/pxeboot.pxe" > "pxeboot.pxe" 229 "${WORKDIR}/pxeboot.pxe" > "pxeboot.pxe"
228} 230}
229 231