Skip to content

Commit

Permalink
workflows: check S1 images in dfu_check
Browse files Browse the repository at this point in the history
This patch adds extra build steps to the dfu_check workflow to check
S1 images.

Signed-off-by: Maximilian Deubel <[email protected]>
  • Loading branch information
maxd-nordic committed Jun 14, 2024
1 parent 76d51c8 commit 694848e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/dfu_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,14 @@ jobs:
- name: 'nrf91: check bootloader image signature'
working-directory: thingy91x-oob
run: |
python3 scripts/nsib_signature_check.py -i twister-out/thingy91x_nrf9151_ns/app/app.build/signed_by_mcuboot_and_b0_mcuboot.hex -p verifying_key_nrf91.pem -a 0x00008200
python3 scripts/nsib_signature_check.py -i twister-out/thingy91x_nrf9151_ns/app/app.build/signed_by_mcuboot_and_b0_mcuboot.hex -p verifying_key_nrf91.pem -a 0x00008200 -v 1
python3 scripts/nsib_signature_check.py -i twister-out/thingy91x_nrf9151_ns/app/app.build.bootloader_update/signed_by_mcuboot_and_b0_mcuboot.hex -p verifying_key_nrf91.pem -a 0x00008200 -v 2
python3 scripts/nsib_signature_check.py -i twister-out/thingy91x_nrf9151_ns/app/app.build.bootloader_update/signed_by_mcuboot_and_b0_s1_image.hex -p verifying_key_nrf91.pem -a 0x0001c200 -v 2
- name: Build Connectivity Bridge
working-directory: thingy91x-oob
run: |
cat scripts/connectivity_bridge_extra_sample.yaml >> ${CI_NRF_DIR}/applications/connectivity_bridge/sample.yaml
west twister -T ${CI_NRF_DIR}/applications/connectivity_bridge -v -p thingy91x/nrf5340/cpuapp --inline-logs
- name: 'nrf53: check partition layout'
Expand All @@ -88,4 +91,6 @@ jobs:
- name: 'nrf53: check bootloader image signature'
working-directory: thingy91x-oob
run: |
python3 scripts/nsib_signature_check.py -i twister-out/thingy91x_nrf5340_cpuapp/applications.connectivity_bridge/signed_by_mcuboot_and_b0_mcuboot.hex -p verifying_key_nrf53.pem -a 0x00008200
python3 scripts/nsib_signature_check.py -i twister-out/thingy91x_nrf5340_cpuapp/applications.connectivity_bridge/signed_by_mcuboot_and_b0_mcuboot.hex -p verifying_key_nrf53.pem -a 0x00008200 -v 1
python3 scripts/nsib_signature_check.py -i twister-out/thingy91x_nrf5340_cpuapp/applications.connectivity_bridge.bootloader_update/signed_by_mcuboot_and_b0_mcuboot.hex -p verifying_key_nrf53.pem -a 0x00008200 -v 2
python3 scripts/nsib_signature_check.py -i twister-out/thingy91x_nrf5340_cpuapp/applications.connectivity_bridge.bootloader_update/signed_by_mcuboot_and_b0_s1_image.hex -p verifying_key_nrf53.pem -a 0x0001c200 -v 2
11 changes: 11 additions & 0 deletions app/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,14 @@ tests:
platform_allow:
- thingy91x/nrf9151/ns
tags: ci_build
app.build.bootloader_update:
build_only: true
sysbuild: true
integration_platforms:
- thingy91x/nrf9151/ns
platform_allow:
- thingy91x/nrf9151/ns
tags: ci_build
extra_args:
- mcuboot_CONFIG_FW_INFO_FIRMWARE_VERSION=2
- CONFIG_BUILD_S1_VARIANT=y
11 changes: 11 additions & 0 deletions scripts/connectivity_bridge_extra_sample.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
applications.connectivity_bridge.bootloader_update:
build_only: true
sysbuild: true
integration_platforms:
- thingy91x/nrf5340/cpuapp
platform_allow:
- thingy91x/nrf5340/cpuapp
tags: ci_build sysbuild
extra_args:
- mcuboot_CONFIG_FW_INFO_FIRMWARE_VERSION=2
- CONFIG_BUILD_S1_VARIANT=y

0 comments on commit 694848e

Please sign in to comment.