[yocto] [meta-raspberrypi][PATCH] sdcard_image-rpi.bbclass: Fix do_image_rpi_sdimg tashhash mismatch

Petter Mabäcker petter at technux.se
Tue May 3 22:53:29 PDT 2016


 

2016-04-29 03:57 skrev Jonathan Liu: 

> IMAGE_CMD_rpi-sdimg() uses
the IMAGEDATESTAMP variable, so the taskhash
> of the function keeps
changing. This results in a taskhash mismatch
> error.
> 
> Fix this by
excluding the IMAGEDATESTAMP variable from the checksum.
> 
> Change-Id:
Ie6f30ad29e279d5312ec655ac4a3bf246c8a04de
> Signed-off-by: Jonathan Liu
<net147 at gmail.com>
> ---
> classes/sdcard_image-rpi.bbclass | 1 +
> 1
file changed, 1 insertion(+)
> 
> diff --git
a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass
>
index 1b055bd..989d77a 100644
> --- a/classes/sdcard_image-rpi.bbclass
>
+++ b/classes/sdcard_image-rpi.bbclass
> @@ -67,6 +67,7 @@ SDIMG =
"${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.rpi-sdimg"
> FATPAYLOAD ?=
""
> 
> IMAGEDATESTAMP = "${@time.strftime('%Y.%m.%d',time.gmtime())}"
>
+IMAGE_CMD_rpi-sdimg[vardepsexclude] = "IMAGEDATESTAMP"
> 
>
IMAGE_CMD_rpi-sdimg () {
> 
> -- 
> 2.8.0

Hi Andrei, 

Any plans for
merging this patch soon? I have been using it in my tree for quite some
time and the fix seems reasonable and solves the annoying taskhash
problem when creating the image. 

BR Petter 

Petter Mabäcker

Technux
<petter at technux.se>
www.technux.se
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160504/323fc48e/attachment.html>


More information about the yocto mailing list