[1/2] buildscript: Also copy tftp-recovery image

Submitted by Fabian Blaese on April 2, 2020, 11:43 a.m.

Details

Message ID 20200402114341.70343-1-fabian@blaese.de
State Superseded
Headers show

Commit Message

Fabian Blaese April 2, 2020, 11:43 a.m.
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@blaese.de>
---
 buildscript | 6 ++++++
 1 file changed, 6 insertions(+)

Patch hide | download patch | download mbox

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
 }