mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 19:51:35 +01:00
run kind of runs
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user