summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--classes/sdcard_image.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/sdcard_image.bbclass b/classes/sdcard_image.bbclass
index e3edf615..bf0f0aa6 100644
--- a/classes/sdcard_image.bbclass
+++ b/classes/sdcard_image.bbclass
@@ -18,6 +18,8 @@ SDIMG_SIZE ?= "444"
18BOOTPARTNAME_beaglebone = "BEAGLE_BONE" 18BOOTPARTNAME_beaglebone = "BEAGLE_BONE"
19BOOTPARTNAME ?= "${MACHINE}" 19BOOTPARTNAME ?= "${MACHINE}"
20 20
21IMAGEDATESTAMP = "${@time.strftime('%Y.%m.%d',time.gmtime())}"
22
21IMAGE_CMD_sdimg () { 23IMAGE_CMD_sdimg () {
22 SDIMG=${WORKDIR}/sd.img 24 SDIMG=${WORKDIR}/sd.img
23 25
@@ -121,6 +123,6 @@ IMAGE_CMD_sdimg () {
121 123
122 ${LOSETUP} -d ${LOOPDEV_FS} || true 124 ${LOSETUP} -d ${LOOPDEV_FS} || true
123 125
124 gzip -c ${WORKDIR}/sd.img > ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-${PR}.img.gz 126 gzip -c ${WORKDIR}/sd.img > ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-${IMAGEDATESTAMP}.img.gz
125 rm -f ${WORKDIR}/sd.img 127 rm -f ${WORKDIR}/sd.img
126} 128}