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

@@ -10,10 +10,10 @@ import re
import common
class BuildrootComponent(common.Component):
class BuildrootComponent(self.Component):
def add_parser_arguments(self, parser):
parser.add_argument(
'--build-linux', default=self._defaults['build_linux'], action='store_true',
'--build-linux', default=self._defaults['build_linux'],
help='''\
Enable building the Linux kernel with Buildroot. This is done mostly
to extract Buildroot's default kernel configurations when updating Buildroot.
@@ -22,7 +22,7 @@ not currently supported, juse use ./build-linux script if you want to do that.
'''
)
parser.add_argument(
'--baseline', default=self._defaults['baseline'], action='store_true',
'--baseline', default=self._defaults['baseline'],
help='''Do a default-ish Buildroot defconfig build, without any of our extra options.
Mostly to track how much slower we are than a basic build.
'''
@@ -42,14 +42,14 @@ Pass multiple times to use multiple fragment files.
'''
)
parser.add_argument(
'--no-all', default=self._defaults['no_all'], action='store_true',
'--no-all', default=self._defaults['no_all'],
help='''\
Don't build the all target which normally gets build by default.
That target builds the root filesystem and all its dependencies.
'''
)
parser.add_argument(
'--no-overlay', default=self._defaults['no_all'], action='store_true',
'--no-overlay', default=self._defaults['no_all'],
help='''\
Don't add our overlay which contains all files we build without going through Buildroot.
This prevents us from overwriting certain Buildroot files. Remember however that you must
@@ -140,7 +140,7 @@ usually extra Buildroot targets.
],
cwd=kwargs['buildroot_src_dir'],
)
common.make_build_dirs()
self.make_build_dirs()
if not kwargs['no_all']:
extra_make_args.extend(['all', LF])
self.sh.run_cmd(
@@ -161,7 +161,7 @@ usually extra Buildroot targets.
# Skip if qemu is not present, because gem5 does not need the qcow2.
# so we don't force a QEMU build for gem5.
if not kwargs['no_all'] and os.path.exists(kwargs['qemu_img_executable']):
common.raw_to_qcow2()
self.raw_to_qcow2()
def get_argparse_args(self):
return {