Skip to content

Commit

Permalink
Add bootloader only to CI release
Browse files Browse the repository at this point in the history
  • Loading branch information
evoggy committed Oct 18, 2024
1 parent c37ff28 commit cac3028
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ jobs:
with:
builder_image: 'bitcraze/builder'
build_script: './tools/build/build-update-binary'
artifacts: '_build/sd130_bootloader.bin'
artifacts: |
_build/sd130_bootloader.bin
_build/bootloader_only_for_swd.bin
3 changes: 2 additions & 1 deletion tools/generate_update_binary.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
from os import system

system("arm-none-eabi-objcopy -I ihex -O binary vendor/nrf5sdk/components/softdevice/s130/hex/s130_nrf51_2.0.1_softdevice.hex _build/s130.bin")
system("mv _build/nrf51422_xxaa.bin _build/bootloader_only_for_swd.bin")

bl = open('_build/nrf51422_xxaa.bin', 'rb').read()
bl = open('_build/bootloader_only_for_swd.bin', 'rb').read()
sd = open('_build/s130.bin', 'rb').read()

# Strip the 4K MBR from the begining of the softdevice
Expand Down

0 comments on commit cac3028

Please sign in to comment.