sdcard_image-sunxi.bbclass: add vardepsexclude to fix taskhash mismatch

IMAGEDATESTAMP may change while bitbake is running which can result in
a taskhash mismatch error for do_image_sunxi_sdimg.

Signed-off-by: Jonathan Liu <net147@gmail.com>
This commit is contained in:
Jonathan Liu 2016-09-11 22:17:14 +10:00
parent 26c32a3228
commit f6417032a0

View File

@ -43,6 +43,7 @@ rootfs[depends] += "virtual/kernel:do_deploy"
SDIMG = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.sunxi-sdimg" SDIMG = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.sunxi-sdimg"
IMAGEDATESTAMP = "${@time.strftime('%Y.%m.%d',time.gmtime())}" IMAGEDATESTAMP = "${@time.strftime('%Y.%m.%d',time.gmtime())}"
IMAGE_CMD_sunxi-sdimg[vardepsexclude] += "IMAGEDATESTAMP"
IMAGE_CMD_sunxi-sdimg () { IMAGE_CMD_sunxi-sdimg () {