summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2011-11-04 08:38:41 +0100
committerKoen Kooi <koen@dominion.thruhere.net>2011-11-04 08:38:41 +0100
commite6fe491161bb36bb3199254b0792129ebe09ca8d (patch)
tree2e5f130526896d390cbd99b2769936b2cd2990b1 /classes
parent8f9c640564b52001c782adfb2539aac0815d04b0 (diff)
downloadmeta-ti-e6fe491161bb36bb3199254b0792129ebe09ca8d.tar.gz
sdcard_image bbclass: add timestamp to image filename
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'classes')
-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}