cip-dev.lists.cip-project.org archive mirror
 help / color / mirror / Atom feed
From: "Jan Kiszka" <jan.kiszka@siemens.com>
To: Claudius Heine <ch@denx.de>,
	cip-dev@lists.cip-project.org,
	Henning Schild <henning.schild@siemens.com>
Subject: Re: [cip-dev] [isar-cip-core] [PATCH] swupdate-img.bbclass: add checksum in non signed case as well
Date: Wed, 13 Jan 2021 11:55:05 +0100	[thread overview]
Message-ID: <e63169ec-9054-8a8f-730e-8de2addbb259@siemens.com> (raw)
In-Reply-To: <5e854316-1b0c-face-c11f-380b556da8d2@denx.de>

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

On 13.01.21 11:52, Claudius Heine wrote:
> Hi Jan,
> 
> On 2021-01-13 11:46, Jan Kiszka wrote:
>> On 11.01.21 16:48, Henning Schild wrote:
>>> From: Claudius Heine <ch@denx.de>
>>>
>>
>> Can you also provide a reasoning here?
> 
> I can, but I guess you mean that a commit message should be added here.
> 

...or that you provide me a text I can fill in on merge.

Jan

> Our swupdate has `DISABLE_CPIO_CRC=y` (because our images might be >2GB)
> and we also currently support update via usb stick without any
> signatures. So the only checksum that we have would be the sha256sum
> inside the swdescription.
> 
> regards,
> Claudius
> 
>>
>>> Signed-off-by: Claudius Heine <ch@denx.de>
>>> Signed-off-by: Henning Schild <henning.schild@siemens.com>
>>> ---
>>>   classes/swupdate-img.bbclass | 12 ++++++------
>>>   1 file changed, 6 insertions(+), 6 deletions(-)
>>>
>>> diff --git a/classes/swupdate-img.bbclass b/classes/swupdate-img.bbclass
>>> index a21d6ec..a7a70f6 100644
>>> --- a/classes/swupdate-img.bbclass
>>> +++ b/classes/swupdate-img.bbclass
>>> @@ -39,14 +39,14 @@ do_swupdate_image() {
>>>           image_do_mounts
>>>           cp -f '${SIGN_KEY}' '${WORKDIR}/dev.key'
>>>           test -e '${SIGN_CRT}' && cp -f '${SIGN_CRT}'
>>> '${WORKDIR}/dev.crt'
>>> -
>>> -        # Fill in file check sums
>>> -        for file in ${SWU_ADDITIONAL_FILES}; do
>>> -            sed -i "s:$file-sha256:$(sha256sum
>>> '${WORKDIR}/swu/'$file | cut -f 1 -d ' '):g" \
>>> -                '${WORKDIR}/swu/${SWU_DESCRIPTION_FILE}'
>>> -        done
>>>       fi
>>>   +    # Fill in file check sums
>>> +    for file in ${SWU_ADDITIONAL_FILES}; do
>>> +        sed -i "s:$file-sha256:$(sha256sum '${WORKDIR}/swu/'$file |
>>> cut -f 1 -d ' '):g" \
>>> +            '${WORKDIR}/swu/${SWU_DESCRIPTION_FILE}'
>>> +    done
>>> +
>>>       cd "${WORKDIR}/swu"
>>>       for file in '${SWU_DESCRIPTION_FILE}' ${SWU_ADDITIONAL_FILES}; do
>>>           echo "$file"
>>>
>>
>> Jan
>>
> 


-- 
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux

[-- Attachment #2: Type: text/plain, Size: 420 bytes --]


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#6064): https://lists.cip-project.org/g/cip-dev/message/6064
Mute This Topic: https://lists.cip-project.org/mt/79598691/4520388
Group Owner: cip-dev+owner@lists.cip-project.org
Unsubscribe: https://lists.cip-project.org/g/cip-dev/leave/8129055/727948398/xyzzy [cip-dev@archiver.kernel.org]
-=-=-=-=-=-=-=-=-=-=-=-


  reply	other threads:[~2021-01-13 10:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-11 15:48 [cip-dev] [isar-cip-core] [PATCH] swupdate-img.bbclass: add checksum in non signed case as well Henning Schild
2021-01-13 10:46 ` Jan Kiszka
2021-01-13 10:52   ` Claudius Heine
2021-01-13 10:55     ` Jan Kiszka [this message]
2021-01-13 11:02       ` Claudius Heine
2021-01-13 11:33         ` Jan Kiszka
2021-01-13 12:33           ` Henning Schild
2021-01-13 11:09   ` Henning Schild

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=e63169ec-9054-8a8f-730e-8de2addbb259@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=ch@denx.de \
    --cc=cip-dev@lists.cip-project.org \
    --cc=henning.schild@siemens.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).