diff options
-rw-r--r-- | classes/sdcard_image-rpi.bbclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass index db02847..02c5aa1 100644 --- a/classes/sdcard_image-rpi.bbclass +++ b/classes/sdcard_image-rpi.bbclass | |||
@@ -75,6 +75,7 @@ SDIMG = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.rpi-sdimg" | |||
75 | FATPAYLOAD ?= "" | 75 | FATPAYLOAD ?= "" |
76 | 76 | ||
77 | # SD card vfat partition image name | 77 | # SD card vfat partition image name |
78 | SDIMG_VFAT_DEPLOY ?= "${RPI_USE_U_BOOT}" | ||
78 | SDIMG_VFAT = "${IMAGE_NAME}.vfat" | 79 | SDIMG_VFAT = "${IMAGE_NAME}.vfat" |
79 | SDIMG_LINK_VFAT = "${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.vfat" | 80 | SDIMG_LINK_VFAT = "${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.vfat" |
80 | 81 | ||
@@ -161,8 +162,8 @@ IMAGE_CMD_rpi-sdimg () { | |||
161 | echo "${IMAGE_NAME}" > ${WORKDIR}/image-version-info | 162 | echo "${IMAGE_NAME}" > ${WORKDIR}/image-version-info |
162 | mcopy -i ${WORKDIR}/boot.img -v ${WORKDIR}/image-version-info :: | 163 | mcopy -i ${WORKDIR}/boot.img -v ${WORKDIR}/image-version-info :: |
163 | 164 | ||
164 | # Deploy vfat partition (for u-boot case only) | 165 | # Deploy vfat partition |
165 | if [ "${RPI_USE_U_BOOT}" = "1" ]; then | 166 | if [ "${SDIMG_VFAT_DEPLOY}" = "1" ]; then |
166 | cp ${WORKDIR}/boot.img ${IMGDEPLOYDIR}/${SDIMG_VFAT} | 167 | cp ${WORKDIR}/boot.img ${IMGDEPLOYDIR}/${SDIMG_VFAT} |
167 | ln -sf ${SDIMG_VFAT} ${SDIMG_LINK_VFAT} | 168 | ln -sf ${SDIMG_VFAT} ${SDIMG_LINK_VFAT} |
168 | fi | 169 | fi |