build-image : download the latest u-boot

parent 9a9e1277
Pipeline #2751 passed with stage
in 14 seconds
......@@ -109,8 +109,20 @@ if [ "${build_type}" != 'ci' ] && [ -n "${kernel_deb}" ] && [ ! -f "files/${kern
wget -Pfiles/ "${kernel_url}/${kernel_deb}"
fi
if [ -n "${uboot_bin}" ] && [ ! -f "files/uboot-${uboot_type}/${uboot_bin}" ]; then
if [ "${build_type}" != 'ci' ] && [ -n "${uboot_bin}" ] &&
[ ! -f "files/uboot-${uboot_type}/${uboot_bin}" ]; then
wget -Pfiles/uboot-${uboot_type} "${kernel_url}/uboot-${uboot_type}/${uboot_bin}"
else
wget -SN https://arm01.puri.sm/job/u-boot_builds/job/${uboot_type}_uboot_build/lastSuccessfulBuild/artifact/*zip*/archive.zip -nH --cut-dirs=8 -P files
# shellcheck disable=SC2181
if [ $? -eq 0 ]; then
(
cd files
mkdir uboot-${uboot_type}
cd uboot-${uboot_type}
unzip -oj ../archive.zip
)
fi
fi
[ "${board_type}" != "nitrogen6" ] || fetch_nitrogen_uboot_upgrade "${pureos_board}" "${kernel_url}" files/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment