blob: d3a4d9493696959690a5154a47d9efbde2fe53b6 [file] [log] [blame]
Jonatan Antoni8105ff92017-09-12 13:54:40 +02001#! python
2
3from buildcmd import BuildCmd
4
5class FvpCmd(BuildCmd):
6
7 def __init__(self, model, app, **args):
8 BuildCmd.__init__(self)
9 self._model = model
10 self._app = app
11 self._args = args
12
13 def getCommand(self):
14 return self._model
15
16 def getArguments(self):
17 args = []
18 if self._args.has_key('limit'): args += [ "--cyclelimit", self._args['limit'] ]
19 if self._args.has_key('config'): args += [ "-f", self._args['config'] ]
20 if self._args.has_key('target'):
21 args += [ "-a", "{0}={1}".format(self._args['target'], self._app ) ]
22 else:
23 args += [ self._app ]
24 return args
25