diff --git a/config/suit/templates/nrf54h20/default/v1/app_recovery_local_envelope.yaml.jinja2 b/config/suit/templates/nrf54h20/default/v1/app_recovery_local_envelope.yaml.jinja2 index 50f1cf25b3d6..0a6f03f11861 100644 --- a/config/suit/templates/nrf54h20/default/v1/app_recovery_local_envelope.yaml.jinja2 +++ b/config/suit/templates/nrf54h20/default/v1/app_recovery_local_envelope.yaml.jinja2 @@ -65,6 +65,12 @@ SUIT_Envelope_Tagged: - suit-send-sysinfo-failure suit-invoke: - suit-directive-set-component-index: 0 +{%- if 'CONFIG_SUIT_RECOVERY_BUTTON' in app_recovery_img['config'] and app_recovery_img['config'][CONFIG_SUIT_RECOVERY_BUTTON] != '' %} + - suit-directive-override-parameters: + suit-parameter-invoke-args: + suit-synchronous-invoke: True + suit-timeout: 1000 +{%- endif %} - suit-directive-invoke: - suit-send-record-failure diff --git a/config/suit/templates/nrf54h20/default/v1/root_with_binary_nordic_top.yaml.jinja2 b/config/suit/templates/nrf54h20/default/v1/root_with_binary_nordic_top.yaml.jinja2 index abe79fb80a68..b9af88070eaf 100644 --- a/config/suit/templates/nrf54h20/default/v1/root_with_binary_nordic_top.yaml.jinja2 +++ b/config/suit/templates/nrf54h20/default/v1/root_with_binary_nordic_top.yaml.jinja2 @@ -16,6 +16,15 @@ {%- else %} {%- set nordic_top = False %} {%- endif %} +{%- if 'SB_CONFIG_SUIT_RECOVERY_APPLICATION_IMAGE_MANIFEST_APP_LOCAL_3' in sysbuild['config'] and sysbuild['config']['SB_CONFIG_SUIT_RECOVERY_APPLICATION_IMAGE_MANIFEST_APP_LOCAL_3'] != '' %} + {%- set mpi_app_recovery_local_vendor_name = main_config['config']['CONFIG_SUIT_MPI_APP_LOCAL_3_VENDOR_NAME']|default('nordicsemi.com') %} + {%- set mpi_app_recovery_local_class_name = main_config['config']['CONFIG_SUIT_MPI_APP_LOCAL_3_CLASS_NAME']|default('nRF54H20_sample_app_3') %} +{%- endif %} +{%- if app_recovery_img is defined and 'CONFIG_SUIT_RECOVERY_BUTTON' in app_recovery_img['config'] and app_recovery_img['config'][CONFIG_SUIT_RECOVERY_BUTTON] != '' %} + {%- set recovery_button_check_on_invoke = True %} +{%- else %} + {%- set recovery_button_check_on_invoke = False %} +{%- endif %} SUIT_Envelope_Tagged: suit-authentication-wrapper: SuitDigest: @@ -33,14 +42,14 @@ SUIT_Envelope_Tagged: suit-components: - - CAND_MFST - 0 -{%- if radio is defined %} +{% if recovery_button_check_on_invoke %} {%- set component_index = component_index + 1 %} - {%- set rad_component_index = component_index %} - {{- component_list.append( rad_component_index ) or ""}} + {%- set app_recovery_local_component_index = component_index %} + {{- component_list.append( app_recovery_local_component_index ) or ""}} - - INSTLD_MFST - RFC4122_UUID: - namespace: {{ mpi_radio_vendor_name }} - name: {{ mpi_radio_class_name }} + namespace: {{ mpi_app_recovery_local_vendor_name }} + name: {{ mpi_app_recovery_local_class_name }} {%- endif %} {%- if application is defined %} {%- set component_index = component_index + 1 %} @@ -51,6 +60,15 @@ SUIT_Envelope_Tagged: namespace: {{ mpi_application_vendor_name }} name: {{ mpi_application_class_name }} {%- endif %} +{%- if radio is defined %} + {%- set component_index = component_index + 1 %} + {%- set rad_component_index = component_index %} + {{- component_list.append( rad_component_index ) or ""}} + - - INSTLD_MFST + - RFC4122_UUID: + namespace: {{ mpi_radio_vendor_name }} + name: {{ mpi_radio_class_name }} +{%- endif %} {%- set component_list_without_top = component_list[:] %} {%- if nordic_top %} diff --git a/west.yml b/west.yml index 1b2523209bc4..4cf87baf6897 100644 --- a/west.yml +++ b/west.yml @@ -241,7 +241,7 @@ manifest: upstream-sha: c6eaeda5a1c1c5dbb24dce7e027340cb8893a77b compare-by-default: false - name: suit-generator - revision: 9c5e8f16ef49e5ffbdeabc87ffd60b82b1fd72b0 + revision: pull/154/head path: modules/lib/suit-generator - name: suit-processor revision: c97fbb352687383378d9ee2f5017668ebaac9fc7