package/snagboot: new package

This commit adds a package for Snagboot, the open-source
vendor-neutral recover and reflashing tool for embedded targets. We
install the dependencies needed for snagrecover and snagflash, but we
don't bother installing the dependencies of the GUI-based snagfactory,
as that would require Kivy on the host, which is Qt based.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
Thomas Petazzoni
2025-10-18 21:43:09 +02:00
committed by Julien Olivain
parent 49a81c77d7
commit bf4e1ec19f
6 changed files with 59 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import infra.basetest
class TestHostSnagboot(infra.basetest.BRHostPkgTest):
hostpkgs = ["host-snagboot"]
config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \
"""
BR2_PACKAGE_HOST_SNAGBOOT=y
"""
def test_run(self):
cmd = ["host/bin/snagrecover", "--help"]
infra.run_cmd_on_host(self.builddir, cmd)
cmd = ["host/bin/snagflash", "--help"]
infra.run_cmd_on_host(self.builddir, cmd)