Skip to content

Commit f1a9a8d

Browse files
committed
ci:travis:prepare_artifacts_rpi.sh: check from dtb and dtbo files
Since the Azure "Copy Files" task appears as succeeded even if no files are copied, we need to manually check for the presence of the required files. Signed-off-by: Andreea Andrisan <Andreea.Andrisan@analog.com>
1 parent 65a4c1b commit f1a9a8d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ci/travis/prepare_artifacts_rpi.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,17 @@ artifacts_structure() {
1818
typeKERNEL=( "kernel7" "kernel7l" "kernel" )
1919
for index in "${!typeBCM[@]}"; do
2020
cd adi_"${typeBCM[$index]}"_defconfig
21-
mkdir overlays modules
22-
mv ./*.dtbo ./overlays
21+
mkdir modules
2322
tar -xf rpi_modules.tar.gz -C modules
2423
rm rpi_modules.tar.gz
2524
mv ./zImage ./"${typeKERNEL[$index]}".img
2625
cd ../
2726
cp -r ./adi_"${typeBCM[$index]}"_defconfig/* ./${timestamp}
2827
done
28+
if [ -z "$(ls ${SOURCE_DIRECTORY}/${timestamp}/*.dtb 2>/dev/null)" ] || [ -z "$(ls ${SOURCE_DIRECTORY}/${timestamp}/overlays/*.dtbo 2>/dev/null)" ]; then
29+
echo "Missing one or more required files"
30+
exit 1
31+
fi
2932
tar -C ${SOURCE_DIRECTORY}/${timestamp}/modules -czvf ${SOURCE_DIRECTORY}/${timestamp}/rpi_modules.tar.gz .
3033
rm -r ${SOURCE_DIRECTORY}/${timestamp}/modules
3134
}

0 commit comments

Comments
 (0)