Allows including a script to use for U-Boot.
Signed-off-by: Jonathan Liu <[email protected]>
---
classes/sdcard_image-rpi.bbclass | 3 +++
1 file changed, 3 insertions(+)
diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass
index 2efc36d..c6995b6 100644
--- a/classes/sdcard_image-rpi.bbclass
+++ b/classes/sdcard_image-rpi.bbclass
@@ -128,6 +128,9 @@ IMAGE_CMD_rpi-sdimg () {
"uImage")
mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/u-boot.img
::${SDIMG_KERNELIMAGE}
mcopy -i ${WORKDIR}/boot.img -s
${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}${KERNEL_INITRAMFS}-${MACHINE}.bin
::uImage
+ if [ -e "${DEPLOY_DIR_IMAGE}/boot.scr" ]; then
+ mcopy -i ${WORKDIR}/boot.img -s
${DEPLOY_DIR_IMAGE}/boot.scr ::boot.scr
+ fi
;;
*)
mcopy -i ${WORKDIR}/boot.img -s
${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}${KERNEL_INITRAMFS}-${MACHINE}.bin
::${SDIMG_KERNELIMAGE}
--
2.6.1
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto