-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/ncsdk 24446 suit build system refactoring (#84)
* feat: add possibility to use secdom_update_envelope.yaml.jinja2 as app template in case secdom is build as main application * feat: add template for root contains only secdom as dependent envelope * feat: add support for sysctrl envelope * feat: simplify root and nordic-top in the root_with_nordic_top_sysctrl_secdom_hierarchical_envelope.yaml.jinja2 Signed-off-by: Robert Stypa <[email protected]>
- Loading branch information
1 parent
11f43f1
commit 9411a49
Showing
6 changed files
with
358 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97 changes: 97 additions & 0 deletions
97
ncs/nordic_top_with_secdom_hierarchical_envelope.yaml.jinja2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
SUIT_Envelope_Tagged: | ||
suit-authentication-wrapper: | ||
SuitDigest: | ||
suit-digest-algorithm-id: cose-alg-sha-256 | ||
suit-manifest: | ||
suit-manifest-version: 1 | ||
suit-manifest-sequence-number: {{ version }} | ||
suit-common: | ||
suit-components: | ||
- - CAND_MFST | ||
- 0 | ||
- - INSTLD_MFST | ||
- RFC4122_UUID: | ||
namespace: nordicsemi.com | ||
name: nRF54H20_sec | ||
suit-shared-sequence: | ||
- suit-directive-set-component-index: 1 | ||
- suit-directive-override-parameters: | ||
suit-parameter-vendor-identifier: | ||
RFC4122_UUID: nordicsemi.com | ||
suit-parameter-class-identifier: | ||
RFC4122_UUID: | ||
namespace: nordicsemi.com | ||
name: nRF54H20_sec | ||
- suit-directive-set-component-index: 1 | ||
- suit-condition-vendor-identifier: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
- suit-condition-class-identifier: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
suit-dependencies: | ||
# Key is the index of suit-components that describe the dependency manifest | ||
"0": {} | ||
"1": {} | ||
suit-validate: | ||
- suit-directive-set-component-index: 1 | ||
- suit-condition-dependency-integrity: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
- suit-directive-process-dependency: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
|
||
suit-invoke: | ||
- suit-directive-set-component-index: 1 | ||
- suit-condition-dependency-integrity: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
- suit-directive-process-dependency: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
|
||
suit-install: | ||
- suit-directive-set-component-index: 0 | ||
- suit-directive-override-parameters: | ||
suit-parameter-uri: '#{{ secdom['name'] }}' | ||
suit-parameter-image-digest: | ||
suit-digest-algorithm-id: cose-alg-sha-256 | ||
suit-digest-bytes: | ||
envelope: {{ secdom['binary'] | replace('secdom_update_payload.bin', secdom['name'] ~ '.suit') }} | ||
- suit-directive-fetch: | ||
- suit-send-record-failure | ||
- suit-condition-image-match: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
- suit-condition-dependency-integrity: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
- suit-directive-process-dependency: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
suit-manifest-component-id: | ||
- INSTLD_MFST | ||
- RFC4122_UUID: | ||
namespace: nordicsemi.com | ||
name: nRF54H20_nordic_top | ||
suit-integrated-dependencies: | ||
'#{{ secdom['name'] }}': {{ secdom['binary'] | replace('secdom_update_payload.bin', secdom['name'] ~ '.suit') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
191 changes: 191 additions & 0 deletions
191
ncs/root_with_nordic_top_sysctrl_secdom_hierarchical_envelope.yaml.jinja2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,191 @@ | ||
SUIT_Dependent_Manifests: | ||
top_envelope: &nordic_top | ||
SUIT_Envelope_Tagged: | ||
suit-authentication-wrapper: | ||
SuitDigest: | ||
suit-digest-algorithm-id: cose-alg-sha-256 | ||
suit-manifest: | ||
suit-manifest-version: 1 | ||
suit-manifest-sequence-number: 1 | ||
suit-common: | ||
suit-components: | ||
- - CAND_MFST | ||
- 0 | ||
- - INSTLD_MFST | ||
- RFC4122_UUID: | ||
namespace: nordicsemi.com | ||
name: nRF54H20_sec | ||
- - INSTLD_MFST | ||
- RFC4122_UUID: | ||
namespace: nordicsemi.com | ||
name: nRF54H20_sys | ||
suit-shared-sequence: | ||
- suit-directive-set-component-index: 1 | ||
- suit-directive-override-parameters: | ||
suit-parameter-class-identifier: | ||
RFC4122_UUID: | ||
namespace: nordicsemi.com | ||
name: nRF54H20_sec | ||
- suit-directive-set-component-index: 2 | ||
- suit-directive-override-parameters: | ||
suit-parameter-class-identifier: | ||
RFC4122_UUID: | ||
namespace: nordicsemi.com | ||
name: nRF54H20_sys | ||
- suit-directive-set-component-index: [1,2] | ||
- suit-directive-override-parameters: | ||
suit-parameter-vendor-identifier: | ||
RFC4122_UUID: nordicsemi.com | ||
- suit-condition-vendor-identifier: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
- suit-condition-class-identifier: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
suit-dependencies: | ||
# Key is the index of suit-components that describe the dependency manifest | ||
"0": {} | ||
"1": {} | ||
"2": {} | ||
suit-validate: | ||
- suit-directive-set-component-index: 2 | ||
- suit-condition-dependency-integrity: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
- suit-directive-process-dependency: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
suit-load: | ||
- suit-directive-set-component-index: 2 | ||
- suit-condition-dependency-integrity: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
- suit-directive-process-dependency: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
suit-invoke: | ||
- suit-directive-set-component-index: 2 | ||
- suit-condition-dependency-integrity: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
- suit-directive-process-dependency: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
suit-install: | ||
- suit-directive-set-component-index: 0 | ||
- suit-directive-override-parameters: | ||
suit-parameter-uri: '#{{ secdom['name'] }}' | ||
- suit-directive-fetch: | ||
- suit-send-record-failure | ||
- suit-condition-dependency-integrity: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
- suit-directive-process-dependency: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
- suit-directive-override-parameters: | ||
suit-parameter-uri: '#{{ sysctrl['name'] }}' | ||
- suit-directive-fetch: | ||
- suit-send-record-failure | ||
- suit-condition-dependency-integrity: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
- suit-directive-process-dependency: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
suit-manifest-component-id: | ||
- INSTLD_MFST | ||
- RFC4122_UUID: | ||
namespace: nordicsemi.com | ||
name: nRF54H20_nordic_top | ||
suit-integrated-dependencies: | ||
'#{{ secdom['name'] }}': {{ secdom['binary'] | replace('secdom_update_payload.bin', secdom['name'] ~ '.suit') }} | ||
'#{{ sysctrl['name'] }}': {{ sysctrl['binary'] | replace('zephyr.bin', sysctrl['name'] ~ '.suit') }} | ||
|
||
SUIT_Envelope_Tagged: | ||
suit-authentication-wrapper: | ||
SuitDigest: | ||
suit-digest-algorithm-id: cose-alg-sha-256 | ||
suit-manifest: | ||
suit-manifest-version: 1 | ||
suit-manifest-sequence-number: {{ version }} | ||
suit-common: | ||
suit-components: | ||
- - CAND_MFST | ||
- 0 | ||
- - INSTLD_MFST | ||
- RFC4122_UUID: | ||
namespace: nordicsemi.com | ||
name: nRF54H20_nordic_top | ||
suit-shared-sequence: | ||
- suit-directive-set-component-index: 1 | ||
- suit-directive-override-parameters: | ||
suit-parameter-vendor-identifier: | ||
RFC4122_UUID: nordicsemi.com | ||
suit-parameter-class-identifier: | ||
RFC4122_UUID: | ||
namespace: nordicsemi.com | ||
name: nRF54H20_nordic_top | ||
- suit-directive-set-component-index: 1 | ||
- suit-condition-vendor-identifier: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
- suit-condition-class-identifier: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
suit-dependencies: | ||
# Key is the index of suit-components that describe the dependency manifest | ||
"0": {} | ||
"1": {} | ||
|
||
suit-install: | ||
- suit-directive-set-component-index: 0 | ||
- suit-directive-override-parameters: | ||
suit-parameter-uri: '#top' | ||
- suit-directive-fetch: | ||
- suit-send-record-failure | ||
- suit-condition-dependency-integrity: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
- suit-directive-process-dependency: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
suit-manifest-component-id: | ||
- INSTLD_MFST | ||
- RFC4122_UUID: | ||
namespace: nordicsemi.com | ||
name: nRF54H20_sample_root | ||
suit-integrated-dependencies: | ||
'#top': *nordic_top |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{# example template - need to be update #} | ||
{%- if sysctrl is not defined %} | ||
{# sysctrl domain build as main application #} | ||
{%- set sysctrl = app %} | ||
{%- endif %} | ||
SUIT_Envelope_Tagged: | ||
suit-authentication-wrapper: | ||
SuitDigest: | ||
suit-digest-algorithm-id: cose-alg-sha-256 | ||
suit-manifest: | ||
suit-manifest-version: 1 | ||
suit-manifest-sequence-number: 1 | ||
suit-common: | ||
suit-components: | ||
# fixme: template copied from secdom for testing purposes - update component using valid values for sysctrl when ready | ||
- - SOC_SPEC | ||
- 1 | ||
- - CAND_IMG | ||
- 0 | ||
suit-shared-sequence: | ||
- suit-directive-set-component-index: 0 | ||
- suit-directive-override-parameters: | ||
suit-parameter-vendor-identifier: | ||
RFC4122_UUID: | ||
name: nordicsemi.com | ||
suit-parameter-class-identifier: | ||
RFC4122_UUID: | ||
namespace: nordicsemi.com | ||
name: nRF54H20_sys | ||
- suit-condition-vendor-identifier: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
- suit-condition-class-identifier: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
suit-install: | ||
- suit-directive-set-component-index: 1 | ||
- suit-directive-override-parameters: | ||
suit-parameter-uri: '#{{ sysctrl['name'] }}' | ||
- suit-directive-fetch: | ||
- suit-send-record-failure | ||
- suit-directive-set-component-index: 0 | ||
- suit-directive-override-parameters: | ||
suit-parameter-source-component: 1 | ||
- suit-directive-copy: | ||
- suit-send-record-failure | ||
suit-manifest-component-id: | ||
- INSTLD_MFST | ||
- RFC4122_UUID: | ||
namespace: nordicsemi.com | ||
name: nRF54H20_sys | ||
suit-integrated-payloads: | ||
'#{{ sysctrl['name'] }}': {{ sysctrl['binary'] }} |