diff options
author | Simon Glass <sjg@chromium.org> | 2016-07-04 11:58:40 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-07-14 20:40:24 -0600 |
commit | a811779b174f8c5c687aaa5574dfdea9f3745f98 (patch) | |
tree | 36f1299e1343e6191e4f5bbc851914eda5e49e76 /test/py | |
parent | ebec58fbcb6da7404b535b9d860546d9baef55c2 (diff) | |
download | u-boot-imx-a811779b174f8c5c687aaa5574dfdea9f3745f98.zip u-boot-imx-a811779b174f8c5c687aaa5574dfdea9f3745f98.tar.gz u-boot-imx-a811779b174f8c5c687aaa5574dfdea9f3745f98.tar.bz2 |
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>
Diffstat (limited to 'test/py')
-rw-r--r-- | test/py/u_boot_console_sandbox.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/py/u_boot_console_sandbox.py b/test/py/u_boot_console_sandbox.py index 04654ae..6bf4653 100644 --- a/test/py/u_boot_console_sandbox.py +++ b/test/py/u_boot_console_sandbox.py @@ -39,11 +39,15 @@ class ConsoleSandbox(ConsoleBase): 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 = [] if self.config.gdbserver: cmd += ['gdbserver', self.config.gdbserver] cmd += [ - self.config.build_dir + '/u-boot', + self.config.build_dir + fname, '-v', '-d', self.config.build_dir + '/arch/sandbox/dts/test.dtb' |