[PATCH 1/2] buildscript: Also copy tftp-recovery image
Fabian Bläse
fabian at blaese.de
Do Apr 2 13:43:40 CEST 2020
Some devices cannot be flashed using the WebUI. Instead,
a tftp-recovery image is provided, which can be initially flashed
to the device using TFTP.
As the buildscript manually selects the images to copy, the
tftp-recovery image is added to it.
Signed-off-by: Fabian Bläse <fabian at blaese.de>
---
buildscript | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/buildscript b/buildscript
index b0935a4..cdaa9ff 100755
--- a/buildscript
+++ b/buildscript
@@ -305,6 +305,12 @@ cp_firmware() {
cp "$builddir/bin/targets/${chipset}/${subtarget}/$image_factory" "./bin/$variant/$filename_build_factory"
fi
done
+
+ image_tftp=${image/sysupgrade/tftp-recovery}
+ if [[ -f "$builddir/bin/targets/${chipset}/${subtarget}/$image_tftp" ]]; then
+ filename_build_tftp=${filename_build/sysupgrade/tftp-recovery}
+ cp "$builddir/bin/targets/${chipset}/${subtarget}/$image_tftp" "./bin/$variant/$filename_build_tftp"
+ fi
done
}
--
2.26.0
Mehr Informationen über die Mailingliste franken-dev