summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2018-07-11 14:05:45 +0000
committerAndrei Gherzan <andrei@gherzan.com>2018-07-16 16:54:32 +0100
commit52255ae3afa2d6720aceb4b20130f126768920ef (patch)
tree81b5159b199157389056150f243af2c26c1ed077 /classes
parente8f9a4e8f80c44c6faf18af8d397d240e460b981 (diff)
downloadmeta-raspberrypi-52255ae3afa2d6720aceb4b20130f126768920ef.tar.gz
sdcard_image-rpi.bbclass: allow to easily deploy vfat partition even for non u-boot case
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/sdcard_image-rpi.bbclass5
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"
75FATPAYLOAD ?= "" 75FATPAYLOAD ?= ""
76 76
77# SD card vfat partition image name 77# SD card vfat partition image name
78SDIMG_VFAT_DEPLOY ?= "${RPI_USE_U_BOOT}"
78SDIMG_VFAT = "${IMAGE_NAME}.vfat" 79SDIMG_VFAT = "${IMAGE_NAME}.vfat"
79SDIMG_LINK_VFAT = "${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.vfat" 80SDIMG_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