test/py: Start sandbox SPL when enabled
When sandbox SPL is enabled we want to start that rather than U-Boot proper, since some tests may rely on running it first. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
ebec58fbcb
commit
a811779b17
|
@ -39,11 +39,15 @@ class ConsoleSandbox(ConsoleBase):
|
||||||
A u_boot_spawn.Spawn object that is attached to U-Boot.
|
A u_boot_spawn.Spawn object that is attached to U-Boot.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
bcfg = self.config.buildconfig
|
||||||
|
config_spl = bcfg.get('config_spl', 'n') == 'y'
|
||||||
|
fname = '/spl/u-boot-spl' if config_spl else '/u-boot'
|
||||||
|
print fname
|
||||||
cmd = []
|
cmd = []
|
||||||
if self.config.gdbserver:
|
if self.config.gdbserver:
|
||||||
cmd += ['gdbserver', self.config.gdbserver]
|
cmd += ['gdbserver', self.config.gdbserver]
|
||||||
cmd += [
|
cmd += [
|
||||||
self.config.build_dir + '/u-boot',
|
self.config.build_dir + fname,
|
||||||
'-v',
|
'-v',
|
||||||
'-d',
|
'-d',
|
||||||
self.config.build_dir + '/arch/sandbox/dts/test.dtb'
|
self.config.build_dir + '/arch/sandbox/dts/test.dtb'
|
||||||
|
|
Loading…
Reference in New Issue