#!/bin/bash

source "${WORKSPACE}/buildtools/images/images-wrapper.sh"

bamboo_BuildVersion="${bamboo_VersionBase}${bamboo_buildNumber}"
TEMPSHARE="$(mktemp -d /tmp/udp-XXXXXXXX)"

mkdir -p "${TEMPSHARE}/${bamboo_BuildVersion}"

find ./projectfiles/make_gcc_arm/stm32h743ii_if/build \( -name "*.c" -o -name "*.bin" -o -name "*.hex" -o -name "*.elf" -o -name "*.txt" -o -name "*.ld" -name "*.map" \) -exec cp {} "${TEMPSHARE}/${bamboo_BuildVersion}" \;


copy_to_images "$TEMPSHARE/${bamboo_BuildVersion}" "$bamboo_BuildImagesPath"

#!/bin/bash

source "${WORKSPACE}/buildtools/images/images-wrapper.sh"

bamboo_BuildVersion="${bamboo_VersionBase}${bamboo_buildNumber}"
TEMPSHARE="$(mktemp -d /tmp/udp-XXXXXXXX)"
trap "rm -rf ${TEMPSHARE}" EXIT

mkdir -p "${TEMPSHARE}/${bamboo_BuildVersion}/interface"
mkdir -p "${TEMPSHARE}/${bamboo_BuildVersion}/bootloader"

find ./projectfiles/make_gcc_arm/stm32h743ii_if/build \( -name "*.c" -o -name "*.bin" -o -name "*.hex" -o -name "*.elf" -o -name "*.txt" -o -name "*.ld" -name "*.map" \) -exec cp {} "${TEMPSHARE}/${bamboo_BuildVersion}/interface" \;
find ./projectfiles/make_gcc_arm/stm32h743ii_bl/build \( -name "*.c" -o -name "*.bin" -o -name "*.hex" -o -name "*.elf" -o -name "*.txt" -o -name "*.ld" -name "*.map" \) -exec cp {} "${TEMPSHARE}/${bamboo_BuildVersion}/bootloader" \;

copy_to_images "$TEMPSHARE/${bamboo_BuildVersion}" "$bamboo_BuildImagesPath"

Fix deliver script to upload bootloader
Fix deliver script to upload bootloader

Issue: b/203383475
Change-Id: I3325f191ac81327867efb804b59d2adaba534e8d
