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

@@ -8,7 +8,7 @@ import subprocess
import common
class UserlandComponent(common.Component):
class UserlandComponent(self.Component):
def add_parser_arguments(self, parser):
parser.add_argument(
'--has-package',
@@ -21,7 +21,6 @@ allows us to build examples that rely on it.
)
parser.add_argument(
'--host',
action='store_true',
default=False,
help='''\
Build the userland programs for the host instead of guest.
@@ -51,8 +50,8 @@ has the OpenBLAS libraries and headers installed.
allowed_toolchains = ['host']
else:
allowed_toolchains = ['buildroot']
cc = common.get_toolchain_tool('gcc', allowed_toolchains=allowed_toolchains)
cxx = common.get_toolchain_tool('g++', allowed_toolchains=allowed_toolchains)
cc = self.get_toolchain_tool('gcc', allowed_toolchains=allowed_toolchains)
cxx = self.get_toolchain_tool('g++', allowed_toolchains=allowed_toolchains)
self.sh.run_cmd(
(
[
@@ -74,7 +73,7 @@ has the OpenBLAS libraries and headers installed.
cwd=kwargs['userland_src_dir'],
extra_paths=[kwargs['ccache_dir']],
)
common.copy_dir_if_update_non_recursive(
self.copy_dir_if_update_non_recursive(
srcdir=build_dir,
destdir=kwargs['out_rootfs_overlay_dir'],
filter_ext=kwargs['userland_build_ext'],