vpl: Support running vpl tests

Add support for these to the pytest system.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2022-04-30 00:56:55 -06:00
committed by Tom Rini
parent 9ae25b9ac9
commit 313438c971
3 changed files with 45 additions and 3 deletions

View File

@@ -43,7 +43,12 @@ class ConsoleSandbox(ConsoleBase):
bcfg = self.config.buildconfig
config_spl = bcfg.get('config_spl', 'n') == 'y'
fname = '/spl/u-boot-spl' if config_spl else '/u-boot'
config_vpl = bcfg.get('config_vpl', 'n') == 'y'
if config_vpl:
# Run TPL first, which runs VPL
fname = '/tpl/u-boot-tpl'
else:
fname = '/spl/u-boot-spl' if config_spl else '/u-boot'
print(fname)
cmd = []
if self.config.gdbserver: