Skip to content

Commit

Permalink
Fix CI script to deploy elf files and include bootloader binaries
Browse files Browse the repository at this point in the history
Including the bootloader binaries separately is better than shipping
the combined full binary (updating the bootloader can be done
independently from the application firmware).
  • Loading branch information
augustofg committed Jan 15, 2021
1 parent 17e0cd3 commit 8545103
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions ci_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,10 @@ case "${BUILD_ARTIFACT}" in
# Copy the generated files to the release folder
mkdir -p ${RELEASE_DIR}
for build in "${!BUILDS[@]}"; do
case "${build}" in
debug*)
cp ${BUILD_DIR}-${build}/out/openMMC.axf ${RELEASE_DIR}/openMMC-${build}.axf
;;

*)
cp ${BUILD_DIR}-${build}/out/openMMC.bin ${RELEASE_DIR}/openMMC-${build}.bin
cp ${BUILD_DIR}-${build}/out/openMMC_full.bin ${RELEASE_DIR}/openMMC-full-${build}.bin
;;
esac
cp ${BUILD_DIR}-${build}/out/openMMC.axf ${RELEASE_DIR}/openMMC-${build}.axf
cp ${BUILD_DIR}-${build}/out/openMMC.bin ${RELEASE_DIR}/openMMC-${build}.bin
cp ${BUILD_DIR}-${build}/out/bootloader.axf ${RELEASE_DIR}/bootloader-${build}.axf
cp ${BUILD_DIR}-${build}/out/bootloader.bin ${RELEASE_DIR}/bootloader-${build}.bin
done
fi
;;
Expand Down

0 comments on commit 8545103

Please sign in to comment.