Add dummy function for a board without U-Boot

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I3d4d17d5e5eafdcf38bda0866fec4dc5817e89c8
This commit is contained in:
Dongjin Kim
2021-12-24 12:21:36 +09:00
parent c542c1ed68
commit 967d42cb1b

View File

@@ -496,6 +496,10 @@ do_create_image() {
fi
}
download_uboot() {
echo "U-Boot won't work this build."
}
do_flash_bootloader() {
local disk=${1}
local uboot_tarball=${download_dir}/u-boot.tar.gz
@@ -503,14 +507,16 @@ do_flash_bootloader() {
echo "I: Downloading U-boot binaries"
download_uboot ${uboot_tarball} \
|| panic "failed to download bootloader release"
rm -rf ${download_dir}/sd_fuse
tar xzvf ${uboot_tarball} -C ${download_dir} || false
if [ -f ${download_dir}/sd_fuse/sd_fusing.sh ]; then
(cd ${download_dir}/sd_fuse;
sed -i "/eject/d" ./sd_fusing.sh;
chmod +x ./sd_fusing.sh;
./sd_fusing.sh ${disk} 2>/dev/null
)
if [ -f ${uboot_tarball} ]; then
rm -rf ${download_dir}/sd_fuse
tar xzvf ${uboot_tarball} -C ${download_dir} || false
if [ -f ${download_dir}/sd_fuse/sd_fusing.sh ]; then
(cd ${download_dir}/sd_fuse;
sed -i "/eject/d" ./sd_fusing.sh;
chmod +x ./sd_fusing.sh;
./sd_fusing.sh ${disk} 2>/dev/null
)
fi
fi
}