File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -2214,7 +2214,7 @@ Implements:
2214
2214
Arguments:
2215
2215
- image (str): optional, key in :ref: `images <labgrid-device-config-images >` containing the path
2216
2216
of an image to bootstrap onto the target
2217
- - cmd (str, default="spl"): single command used for mfgtool
2217
+ - script (str): run built-in script with "uuu -b", called with image as arg0
2218
2218
2219
2219
USBStorageDriver
2220
2220
~~~~~~~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ class UUUDriver(Driver, BootstrapProtocol):
153
153
}
154
154
155
155
image = attr .ib (default = None )
156
- cmd = attr .ib (default = 'spl ' , validator = attr .validators .instance_of (str ))
156
+ script = attr .ib (default = '' , validator = attr .validators .instance_of (str ))
157
157
158
158
def __attrs_post_init__ (self ):
159
159
super ().__attrs_post_init__ ()
@@ -177,8 +177,10 @@ def load(self, filename=None):
177
177
mf = ManagedFile (filename , self .loader )
178
178
mf .sync_to_resource ()
179
179
180
+ cmd = ['-b' , self .script ] if self .script else []
181
+
180
182
processwrapper .check_output (
181
- self .loader .command_prefix + [self .tool , mf .get_remote_path (), self . cmd ]
183
+ self .loader .command_prefix + [self .tool ] + cmd + [ mf .get_remote_path ()]
182
184
)
183
185
184
186
You can’t perform that action at this time.
0 commit comments