2020-08-19 13:22:48 +03:00
|
|
|
#!/bin/sh
|
|
|
|
export LC_ALL=C.UTF-8
|
|
|
|
export LANG=C.UTF-8
|
2020-12-17 16:12:06 +03:00
|
|
|
set -e
|
2020-12-22 15:40:21 +03:00
|
|
|
set +x
|
2020-08-19 13:22:48 +03:00
|
|
|
|
2020-12-17 16:12:06 +03:00
|
|
|
export PROJECT_VERSION="@PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PROJECT_VERSION_PATCH@"
|
2020-08-19 13:22:48 +03:00
|
|
|
|
2020-12-17 16:12:06 +03:00
|
|
|
mkdir -p "$OUTPUT_DIR"
|
2020-12-22 15:40:21 +03:00
|
|
|
|
2020-12-22 14:39:21 +03:00
|
|
|
cp "$SOURCES_DIR"/bootloader/bootloader-5.0.4.bin $OUTPUT_DIR/bootloader.bin
|
2021-01-26 22:31:45 +03:00
|
|
|
cp "$BUILD_DIR/src/pinetime-mcuboot-app-image-$PROJECT_VERSION.bin" "$OUTPUT_DIR/pinetime-mcuboot-app-image-$PROJECT_VERSION.bin"
|
|
|
|
cp "$BUILD_DIR/src/pinetime-mcuboot-app-dfu-$PROJECT_VERSION.zip" "$OUTPUT_DIR/pinetime-mcuboot-app-dfu-$PROJECT_VERSION.zip"
|
2020-08-19 13:22:48 +03:00
|
|
|
|
2021-01-26 22:31:45 +03:00
|
|
|
cp "$BUILD_DIR/src/pinetime-mcuboot-recovery-loader-image-$PROJECT_VERSION.bin" "$OUTPUT_DIR/pinetime-mcuboot-recovery-loader-image-$PROJECT_VERSION.bin"
|
|
|
|
cp "$BUILD_DIR/src/pinetime-mcuboot-recovery-loader-dfu-$PROJECT_VERSION.zip" "$OUTPUT_DIR/pinetime-mcuboot-recovery-loader-dfu-$PROJECT_VERSION.zip"
|
2020-08-19 13:22:48 +03:00
|
|
|
|
2020-12-22 15:40:21 +03:00
|
|
|
mkdir -p "$OUTPUT_DIR/src"
|
2022-05-15 11:50:12 +03:00
|
|
|
cp $BUILD_DIR/src/*.bin "$OUTPUT_DIR/src/"
|
|
|
|
cp $BUILD_DIR/src/*.hex "$OUTPUT_DIR/src/"
|
|
|
|
cp $BUILD_DIR/src/*.out "$OUTPUT_DIR/src/"
|
|
|
|
cp $BUILD_DIR/src/*.map "$OUTPUT_DIR/src/"
|
2020-12-22 15:40:21 +03:00
|
|
|
|
|
|
|
ls -RUv1 "$OUTPUT_DIR" | sed 's;^\([^/]\); \1;g'
|