mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-28 12:34:26 +01:00
args -> kwargs
This commit is contained in:
@@ -47,7 +47,7 @@ has the OpenBLAS libraries and headers installed.
|
||||
def do_build(self, args):
|
||||
build_dir = self.get_build_dir(args)
|
||||
os.makedirs(build_dir, exist_ok=True)
|
||||
if args.host:
|
||||
if kwargs['host']:
|
||||
allowed_toolchains = ['host']
|
||||
else:
|
||||
allowed_toolchains = ['buildroot']
|
||||
@@ -56,20 +56,20 @@ has the OpenBLAS libraries and headers installed.
|
||||
self.sh.run_cmd(
|
||||
(
|
||||
[
|
||||
'make', common.Newline,
|
||||
'-j', str(args.nproc), common.Newline,
|
||||
'ARCH={}'.format(args.arch), common.Newline,
|
||||
'CCFLAGS_SCRIPT={} {}'.format('-I', common.userland_src_dir), common.Newline,
|
||||
'COMMON_DIR={}'.format(common.root_dir), common.Newline,
|
||||
'CC={}'.format(cc), common.Newline,
|
||||
'CXX={}'.format(cxx), common.Newline,
|
||||
'PKG_CONFIG={}'.format(common.buildroot_pkg_config), common.Newline,
|
||||
'STAGING_DIR={}'.format(common.buildroot_staging_dir), common.Newline,
|
||||
'OUT_DIR={}'.format(build_dir), common.Newline,
|
||||
'make', LF,
|
||||
'-j', str(kwargs['nproc']), LF,
|
||||
'ARCH={}'.format(kwargs['arch']), LF,
|
||||
'CCFLAGS_SCRIPT={} {}'.format('-I', common.userland_src_dir), LF,
|
||||
'COMMON_DIR={}'.format(common.root_dir), LF,
|
||||
'CC={}'.format(cc), LF,
|
||||
'CXX={}'.format(cxx), LF,
|
||||
'PKG_CONFIG={}'.format(common.buildroot_pkg_config), LF,
|
||||
'STAGING_DIR={}'.format(common.buildroot_staging_dir), LF,
|
||||
'OUT_DIR={}'.format(build_dir), LF,
|
||||
] +
|
||||
common.add_newlines(['HAS_{}=y'.format(package.upper()) for package in args.has_package]) +
|
||||
shlex.split(args.make_args) +
|
||||
common.add_newlines([os.path.join(build_dir, os.path.splitext(os.path.split(target)[1])[0]) + common.userland_build_ext for target in args.targets])
|
||||
common.add_newlines(['HAS_{}=y'.format(package.upper()) for package in kwargs['has_package']]) +
|
||||
shlex.split(kwargs['make_args']) +
|
||||
common.add_newlines([os.path.join(build_dir, os.path.splitext(os.path.split(target)[1])[0]) + common.userland_build_ext for target in kwargs['targets']])
|
||||
),
|
||||
cwd=common.userland_src_dir,
|
||||
extra_paths=[common.ccache_dir],
|
||||
|
||||
Reference in New Issue
Block a user