diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2011-11-04 08:38:41 +0100 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-11-04 08:38:41 +0100 |
commit | e6fe491161bb36bb3199254b0792129ebe09ca8d (patch) | |
tree | 2e5f130526896d390cbd99b2769936b2cd2990b1 /classes | |
parent | 8f9c640564b52001c782adfb2539aac0815d04b0 (diff) | |
download | meta-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.bbclass | 4 |
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" | |||
18 | BOOTPARTNAME_beaglebone = "BEAGLE_BONE" | 18 | BOOTPARTNAME_beaglebone = "BEAGLE_BONE" |
19 | BOOTPARTNAME ?= "${MACHINE}" | 19 | BOOTPARTNAME ?= "${MACHINE}" |
20 | 20 | ||
21 | IMAGEDATESTAMP = "${@time.strftime('%Y.%m.%d',time.gmtime())}" | ||
22 | |||
21 | IMAGE_CMD_sdimg () { | 23 | IMAGE_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 | } |