diff options
| author | Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> | 2021-03-16 11:55:51 +0530 |
|---|---|---|
| committer | Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | 2021-07-14 14:49:19 -0700 |
| commit | e0ee4e4cf6ce05f99bcd8fa95104ea605738a50c (patch) | |
| tree | 492168ed67d8750c53dc389fbddb774f8fdfed1d /meta-xilinx-bsp | |
| parent | 9e0f025df88b7e13aa4abf2eff1852a5fc1fb0a4 (diff) | |
| download | meta-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.bb | 4 |
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 | |||
| 20 | RAMDISK_IMAGE ?= "" | 20 | RAMDISK_IMAGE ?= "" |
| 21 | RAMDISK_IMAGE_zynq ?= "uramdisk.image.gz" | 21 | RAMDISK_IMAGE_zynq ?= "uramdisk.image.gz" |
| 22 | 22 | ||
| 23 | PXERAMDISK_IMAGE ?= "${@'ramdisk.cpio.gz.u-boot' if d.getVar('INITRAMFS_IMAGE') and d.getVar('INITRAMFS_IMAGE').find('initramfs') > 0 else '${RAMDISK_IMAGE}'}" | ||
| 24 | |||
| 23 | KERNEL_BOOTCMD_zynqmp ?= "booti" | 25 | KERNEL_BOOTCMD_zynqmp ?= "booti" |
| 24 | KERNEL_BOOTCMD_zynq ?= "bootm" | 26 | KERNEL_BOOTCMD_zynq ?= "bootm" |
| 25 | KERNEL_BOOTCMD_versal ?= "booti" | 27 | KERNEL_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 | ||
