Skip to content

Commit 8545103

Browse files
committed
Fix CI script to deploy elf files and include bootloader binaries
Including the bootloader binaries separately is better than shipping the combined full binary (updating the bootloader can be done independently from the application firmware).
1 parent 17e0cd3 commit 8545103

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

ci_build.sh

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,10 @@ case "${BUILD_ARTIFACT}" in
6363
# Copy the generated files to the release folder
6464
mkdir -p ${RELEASE_DIR}
6565
for build in "${!BUILDS[@]}"; do
66-
case "${build}" in
67-
debug*)
68-
cp ${BUILD_DIR}-${build}/out/openMMC.axf ${RELEASE_DIR}/openMMC-${build}.axf
69-
;;
70-
71-
*)
72-
cp ${BUILD_DIR}-${build}/out/openMMC.bin ${RELEASE_DIR}/openMMC-${build}.bin
73-
cp ${BUILD_DIR}-${build}/out/openMMC_full.bin ${RELEASE_DIR}/openMMC-full-${build}.bin
74-
;;
75-
esac
66+
cp ${BUILD_DIR}-${build}/out/openMMC.axf ${RELEASE_DIR}/openMMC-${build}.axf
67+
cp ${BUILD_DIR}-${build}/out/openMMC.bin ${RELEASE_DIR}/openMMC-${build}.bin
68+
cp ${BUILD_DIR}-${build}/out/bootloader.axf ${RELEASE_DIR}/bootloader-${build}.axf
69+
cp ${BUILD_DIR}-${build}/out/bootloader.bin ${RELEASE_DIR}/bootloader-${build}.bin
7670
done
7771
fi
7872
;;

0 commit comments

Comments
 (0)