]> git.sur5r.net Git - u-boot/blobdiff - test/py/u_boot_console_sandbox.py
ARM: at91: sama5d2: configure the L2 cache memory
[u-boot] / test / py / u_boot_console_sandbox.py
index bbf41e788ba3300b4345f9a6163f7bce0ae69f4c..3de0fe4a3b6df831239b9825c06dcfd789e676db 100644 (file)
@@ -39,12 +39,15 @@ class ConsoleSandbox(ConsoleBase):
             A u_boot_spawn.Spawn object that is attached to U-Boot.
         """
 
-        cmd = [
+        cmd = []
+        if self.config.gdbserver:
+            cmd += ['gdbserver', self.config.gdbserver]
+        cmd += [
             self.config.build_dir + '/u-boot',
             '-d',
             self.config.build_dir + '/arch/sandbox/dts/test.dtb'
         ]
-        return Spawn(cmd)
+        return Spawn(cmd, cwd=self.config.source_dir)
 
     def kill(self, sig):
         """Send a specific Unix signal to the sandbox process.