All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrei Gherzan <andrei@gherzan.ro>
To: Jonathan Liu <net147@gmail.com>
Cc: yocto@yoctoproject.org
Subject: Re: [meta-raspberrypi][PATCH] sdcard_image-rpi.bbclass: remove redundant IMAGEDATESTAMP
Date: Fri, 16 Sep 2016 18:28:59 +0100	[thread overview]
Message-ID: <20160916172859.GA27043@resin> (raw)
In-Reply-To: <20160913020611.9265-1-net147@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1491 bytes --]

On Tue, Sep 13, 2016 at 12:06:11PM +1000, Jonathan Liu wrote:
> The IMAGE_NAME variable already contains the date and time so it is
> redundant to also include the date again with IMAGEDATESTAMP
> when writing to image-version-info in the boot partition.
>
> Signed-off-by: Jonathan Liu <net147@gmail.com>
> ---
>  classes/sdcard_image-rpi.bbclass | 8 ++------
>  1 file changed, 2 insertions(+), 6 deletions(-)
>
> diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass
> index 57cefea..388398b 100644
> --- a/classes/sdcard_image-rpi.bbclass
> +++ b/classes/sdcard_image-rpi.bbclass
> @@ -71,10 +71,6 @@ SDIMG = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.rpi-sdimg"
>  # Additional files and/or directories to be copied into the vfat partition from the IMAGE_ROOTFS.
>  FATPAYLOAD ?= ""
>
> -IMAGEDATESTAMP = "${@time.strftime('%Y.%m.%d',time.gmtime())}"
> -IMAGE_CMD_rpi-sdimg[vardepsexclude] += "IMAGEDATESTAMP"
> -IMAGE_CMD_rpi-sdimg[vardepsexclude] += "DATETIME"
> -
>  IMAGE_CMD_rpi-sdimg () {
>
>  	# Align partitions
> @@ -143,8 +139,8 @@ IMAGE_CMD_rpi-sdimg () {
>  	fi
>
>  	# Add stamp file
> -	echo "${IMAGE_NAME}-${IMAGEDATESTAMP}" > ${WORKDIR}/image-version-info
> -	mcopy -i ${WORKDIR}/boot.img -v ${WORKDIR}//image-version-info ::
> +	echo "${IMAGE_NAME}" > ${WORKDIR}/image-version-info
> +	mcopy -i ${WORKDIR}/boot.img -v ${WORKDIR}/image-version-info ::
>

I like this. Merged to master.

--
Andrei Gherzan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 817 bytes --]

  parent reply	other threads:[~2016-09-16 17:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-13  2:06 [meta-raspberrypi][PATCH] sdcard_image-rpi.bbclass: remove redundant IMAGEDATESTAMP Jonathan Liu
2016-09-13  6:40 ` Andreas Müller
2016-09-13 20:27   ` Khem Raj
2016-09-16 17:28 ` Andrei Gherzan [this message]
2016-10-04 14:05   ` Trevor Woerner
2016-10-05  0:01     ` Jonathan Liu
2016-10-05  5:40       ` Andreas Müller
2016-10-05 15:00       ` Trevor Woerner
2016-10-06 10:28         ` Jonathan Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160916172859.GA27043@resin \
    --to=andrei@gherzan.ro \
    --cc=net147@gmail.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.