Skip to content

Commit

Permalink
tools/suit_v4: small cleanup in gen_manifest script
Browse files Browse the repository at this point in the history
  • Loading branch information
aabadie authored and kaspar030 committed Jul 3, 2019
1 parent 1980c97 commit eec3b02
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dist/tools/suit_v4/gen_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,16 @@ def main(template, urlroot, offsets, slotfiles, output, seqnr, uuid_vendor,
uri = os.path.join(urlroot, os.path.basename(filename))
offset = offsets[slot]

template["components"][0]["images"][slot].update({
_image_slot = template["components"][0]["images"][slot]
_image_slot.update({
"file": filename,
"uri": uri,
"size": size,
"digest": sha256_from_file(slotfile),
})

template["components"][0]["images"][slot]["conditions"][0]["condition-component-offset"] = offset
template["components"][0]["images"][slot]["file"] = filename
_image_slot["conditions"][0]["condition-component-offset"] = offset
_image_slot["file"] = filename

result = compile_to_suit(template)
if output:
Expand Down

0 comments on commit eec3b02

Please sign in to comment.