Skip to content
Snippets Groups Projects
Commit 98731138 authored by Guido Gunther's avatar Guido Gunther :zzz:
Browse files

write_flash: Download uboot if needed

This makes the script more self contained.
parent 1367a663
No related branches found
No related tags found
2 merge requests!209write_flash: Download uboot if needed,!190Evergreen
Pipeline #63959 passed
......@@ -23,6 +23,12 @@ SIZE=$(echo "${SIZE}/4" | bc)
HEX_WORDS=$(printf "0x%x" ${SIZE})
UUU_SCRIPT=$(mktemp -p ./)
if [ ! -f files/u-boot-librem5.imx ]; then
echo "Uboot not found, downloading..."
mkdir -p files/
wget -Ofiles/u-boot-librem5.imx https://arm01.puri.sm/job/u-boot_builds/job/uboot_librem5_build/lastSuccessfulBuild/artifact/output/uboot-librem5/u-boot-librem5.imx
fi
cat << EOF > ${UUU_SCRIPT}
uuu_version 1.0.1
# Use uboot to write a file to the rootfs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment