Skip to content

Commit

Permalink
Fix non-clean builds failure
Browse files Browse the repository at this point in the history
  • Loading branch information
augustozanellato committed Aug 23, 2023
1 parent e3ff2d0 commit b1728c1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions firmware/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,19 @@ set -xe
--merge \
settings.hex \
application.hex \
--output application.hex
rm settings.hex
--output application_merged.hex

mergehex \
--merge \
bootloader.hex \
application.hex \
application_merged.hex \
softdevice.hex \
--output fullimage.hex

zip ${device_type}-binaries.zip *.hex
tmp_dir=$(mktemp -d -t cu_binaries_XXXXXXXXXX)
cp *.hex "$tmp_dir"
mv $tmp_dir/application_merged.hex $tmp_dir/application.hex
rm $tmp_dir/settings.hex
zip -j ${device_type}-binaries.zip $tmp_dir/*.hex
rm -rf $tmp_dir
)

0 comments on commit b1728c1

Please sign in to comment.