Skip to content

Commit

Permalink
ci: fix frozen bootloader references
Browse files Browse the repository at this point in the history
This patch hopefully fixes the remaining references to the bootloader
files.

Signed-off-by: Maximilian Deubel <[email protected]>
  • Loading branch information
maxd-nordic committed Oct 30, 2024
1 parent 5f7a45e commit cd9092f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/attach_release_assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
files: |
hello.nrfcloud.com-*.*
connectivity-bridge*.*
nrf91-bl-*.hex
nrf53-bl-*.hex
- name: Trigger workflow that publishes firmware bundles to nRF Cloud
working-directory: .github/workflows
Expand Down
21 changes: 16 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,12 @@ jobs:
- name: Rename artifacts
working-directory: thingy91x-oob/app/build
run: |
cp ../../../nrf91-bl-*.hex .
# Overwrite the bootloader part with the frozen version
python3 ../../../zephyr/scripts/build/mergehex.py -o \
hello.nrfcloud.com-${{ env.VERSION }}-thingy91x-nrf91.hex \
merged.hex \
../../../nrf91-bl-v*.hex \
nrf91-bl-*.hex \
--overlap replace
cp app/zephyr/.config hello.nrfcloud.com-${{ env.VERSION }}-thingy91x-nrf91.config
cp app/zephyr/zephyr.signed.bin hello.nrfcloud.com-${{ env.VERSION }}-thingy91x-nrf91-update-signed.bin
Expand All @@ -137,6 +139,7 @@ jobs:
if-no-files-found: error
path: |
thingy91x-oob/app/build/hello.nrfcloud.com-*.*
thingy91x-oob/app/build/nrf91-bl-*.hex
# Out-of-box debug firmware build

Expand All @@ -156,7 +159,13 @@ jobs:
if: ${{ inputs.build_debug }}
working-directory: thingy91x-oob/app/build
run: |
cp merged.hex hello.nrfcloud.com-${{ env.VERSION }}+debug-thingy91x-nrf91.hex
cp ../../../nrf91-bl-*.hex .
# Overwrite the bootloader part with the frozen version
python3 ../../../zephyr/scripts/build/mergehex.py -o \
hello.nrfcloud.com-${{ env.VERSION }}+debug-thingy91x-nrf91.hex \
merged.hex \
nrf91-bl-*.hex \
--overlap replace
cp app/zephyr/.config hello.nrfcloud.com-${{ env.VERSION }}+debug-thingy91x-nrf91.config
cp app/zephyr/zephyr.signed.bin hello.nrfcloud.com-${{ env.VERSION }}+debug-thingy91x-nrf91-update-signed.bin
cp app/zephyr/zephyr.signed.hex hello.nrfcloud.com-${{ env.VERSION }}+debug-thingy91x-nrf91-update-signed.hex
Expand All @@ -173,7 +182,6 @@ jobs:
path: |
thingy91x-oob/app/build/hello.nrfcloud.com-*.*
# Connectivity Bridge firmware build

- name: Build nrf53 firmware
Expand All @@ -183,6 +191,9 @@ jobs:
- name: Create nrf53 merged_domains HEX file
run: |
# check that bootloader hex files are present
ls $(pwd)/nrf53-bl-v*-net.hex $(pwd)/nrf53-bl-v*-app.hex
# merge hex files to app, net and merged variants, enforcing the frozen bootloader
python3 zephyr/scripts/build/mergehex.py -o \
$(pwd)/nrf/applications/connectivity_bridge/build/connectivity-bridge-${{ env.VERSION }}-thingy91x-nrf53-net.hex \
$(pwd)/nrf/applications/connectivity_bridge/build/merged_CPUNET.hex \
Expand All @@ -202,6 +213,7 @@ jobs:
run: |
cp $(pwd)/nrf/applications/connectivity_bridge/build/dfu_application.zip \
$(pwd)/nrf/applications/connectivity_bridge/build/connectivity-bridge-${{ env.VERSION }}-thingy91x-nrf53-dfu.zip
cp nrf53-bl-*.hex $(pwd)/nrf/applications/connectivity_bridge/build/
- name: Upload artifact
uses: actions/upload-artifact@v4
Expand All @@ -211,6 +223,7 @@ jobs:
if-no-files-found: error
path: |
nrf/applications/connectivity_bridge/build/connectivity-bridge-*.*
nrf/applications/connectivity_bridge/build/nrf53-bl-*.hex
# Bootloader update build

Expand Down Expand Up @@ -238,8 +251,6 @@ jobs:
path: |
thingy91x-oob/hello.nrfcloud.com-*.*
thingy91x-oob/connectivity-bridge-*.*
nrf53-bl-*.hex
nrf91-bl-*.hex
- name: Print run-id and fw version
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on_target.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ jobs:
NRF53_APP_HEX_FILE: artifacts/connectivity-bridge-${{ inputs.artifact_fw_version }}-thingy91x-nrf53-app.hex
NRF53_APP_UPDATE_ZIP: artifacts/connectivity-bridge-${{ inputs.artifact_fw_version }}-thingy91x-nrf53-verbose.zip
NRF53_BL_UPDATE_ZIP: artifacts/connectivity-bridge-${{ inputs.artifact_fw_version }}-thingy91x-nrf53-bootloader.zip
NRF91_HEX_FILE: artifacts/hello.nrfcloud.com-${{ inputs.artifact_fw_version }}-thingy91x-nrf91-bootloader.hex
NRF91_HEX_FILE: artifacts/nrf91-bl-v2.hex
NRF91_APP_UPDATE_ZIP: artifacts/hello.nrfcloud.com-${{ inputs.artifact_fw_version }}-thingy91x-nrf91-dfu.zip
NRF91_BL_UPDATE_ZIP: artifacts/hello.nrfcloud.com-${{ inputs.artifact_fw_version }}-thingy91x-nrf91-bootloader.zip
LOG_FILENAME: oob_dfu_test_log
Expand Down

0 comments on commit cd9092f

Please sign in to comment.