Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,13 @@ stages:
displayName: 'Device-Tree Build Test'
- task: CopyFiles@2
inputs:
sourceFolder: '$(Agent.BuildDirectory)/s/arch/arm/boot/dts'
contents: '$(Agent.BuildDirectory)/s/arch/arm/boot/dts/?(*.dtb)'
sourceFolder: '$(Agent.BuildDirectory)/s/arch/arm/boot/dts/intel/socfpga'
contents: '$(Agent.BuildDirectory)/s/arch/arm/boot/dts/intel/socfpga/?(*.dtb)'
targetFolder: '$(Build.ArtifactStagingDirectory)'
- task: CopyFiles@2
inputs:
sourceFolder: '$(Agent.BuildDirectory)/s/arch/arm/boot/dts/xilinx'
contents: '$(Agent.BuildDirectory)/s/arch/arm/boot/dts/xilinx/?(*.dtb)'
targetFolder: '$(Build.ArtifactStagingDirectory)'
- task: CopyFiles@2
inputs:
Expand Down
20 changes: 10 additions & 10 deletions ci/travis/prepare_artifacts.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-only
#!/bin/bash -e

TIMESTAMP=$(date +%Y_%m_%d-%H_%M)
TIMESTAMP=$(date +%Y_%m_%d-%H_%M_%S)
# For PRs, Azure makes a merge commit (HEAD) because of the shallow copy option
# (which we want). So, GIT_SHA in this case is the actual correct commit inside
# the PR, and MERGE_COMMIT is the commit made by Azure (which we extract the date
Expand Down Expand Up @@ -88,17 +88,17 @@ artifacts_structure() {
echo "IMAGE: ${image_to_copy[${platform}]}!"
cp ${image_to_copy[${platform}]} ${image_location}
fi
done

if [ "${arch}" == "microblaze" ]; then
dtbs_to_copy=$(ls -d -1 Microblaze/*)
else
dtbs_to_copy=$(ls -d -1 DTBs/* | grep "${platform}")
fi
if [ "${arch}" == "microblaze" ]; then
dtbs_to_copy=$(ls -d -1 Microblaze/*)
else
dtbs_to_copy=$(ls -d -1 DTBs/* | grep "${platform}[-|_]")
fi

# Copy DTBs to the correct location
for dtb in ${dtbs_to_copy}; do
cp ${dtb} "${TIMESTAMP}/${arch}"
# Copy DTBs to the correct location
for dtb in ${dtbs_to_copy}; do
cp ${dtb} "${TIMESTAMP}/${arch}"
done
done
done
}
Expand Down
Loading