run kind of runs

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-12-09 00:00:01 +00:00
parent 5e20ba833b
commit fa1e4ffa7d
34 changed files with 848 additions and 838 deletions

View File

@@ -5,7 +5,7 @@ import sys
import common
parser = common.get_argparse(argparse_args={
parser = self.get_argparse(argparse_args={
'description': '''Run a Buildroot ToolChain tool like readelf or objdump.
For example, to get some information about the arm vmlinux:
@@ -24,7 +24,6 @@ ls "$(./getvar -a arm host_bin_dir)"
parser.add_argument(
'--dry',
help='Just output the tool path to stdout but actually run it',
action='store_true',
)
parser.add_argument('tool', help='Which tool to run.')
parser.add_argument(
@@ -34,12 +33,12 @@ parser.add_argument(
metavar='extra-args',
nargs='*'
)
args = common.setup(parser)
args = self.setup(parser)
if kwargs['baremetal'] is None:
image = kwargs['vmlinux']
else:
image = kwargs['image']
tool= common.get_toolchain_tool(kwargs['tool'])
tool= self.get_toolchain_tool(kwargs['tool'])
if kwargs['dry']:
print(tool)
else: