mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-29 04:54:27 +01:00
virt_to_phys: fix multiple read size
build-buildroot: add --make-args
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
import os
|
||||
import platform
|
||||
import shlex
|
||||
import shutil
|
||||
import subprocess
|
||||
|
||||
@@ -18,6 +19,10 @@ Indicate that a given package is present in the root filesystem, which
|
||||
allows us to build examples that rely on it.
|
||||
''',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--make-args',
|
||||
default='',
|
||||
)
|
||||
parser.add_argument(
|
||||
'targets',
|
||||
default=[],
|
||||
@@ -27,7 +32,6 @@ Default: build all examples that have their package dependencies met.
|
||||
For example, an OpenBLAS example can only be built if the target root filesystem
|
||||
has the OpenBLAS libraries and headers installed.
|
||||
''',
|
||||
metavar='programs',
|
||||
nargs='*',
|
||||
)
|
||||
|
||||
@@ -49,6 +53,7 @@ has the OpenBLAS libraries and headers installed.
|
||||
'OUT_DIR={}'.format(build_dir),
|
||||
] +
|
||||
['HAS_{}=y'.format(package.upper()) for package in args.has_package] +
|
||||
shlex.split(args.make_args) +
|
||||
[os.path.join(build_dir, os.path.splitext(os.path.split(target)[1])[0]) + common.executable_ext for target in args.targets]
|
||||
),
|
||||
cwd=common.userland_src_dir,
|
||||
|
||||
Reference in New Issue
Block a user