Skip to content

Commit

Permalink
manifest: Allow to use int as MFST_VAR values
Browse files Browse the repository at this point in the history
Allow to set content using integer values inside manifest templates.

Ref: NCSDK-30807

Signed-off-by: Tomasz Chyrowicz <[email protected]>
  • Loading branch information
tomchy committed Dec 16, 2024
1 parent aa3da7d commit bc281c2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion suit_generator/suit/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,12 @@ class SuitParameterInvokeArgs(SuitKeyValue):
)


class SuitParameterContent(SuitUnion):
"""Abstract element to define possible sub-elements."""

_metadata = Metadata(children=[cbstr(SuitUint), SuitBstr])


class SuitParameters(SuitKeyValue):
"""Representation of SUIT parameters."""

Expand All @@ -290,7 +296,7 @@ class SuitParameters(SuitKeyValue):
suit_parameter_strict_order: SuitBool,
suit_parameter_soft_failure: SuitBool,
suit_parameter_image_size: SuitImageSize,
suit_parameter_content: SuitBstr,
suit_parameter_content: SuitParameterContent,
suit_parameter_encryption_info: SuitEncryptionInfo,
suit_parameter_uri: SuitTstr,
suit_parameter_source_component: SuitUint,
Expand Down

0 comments on commit bc281c2

Please sign in to comment.