mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 11:11:35 +01:00
userland: make libs work
Working for build, but now test-user-mode-in-tree is not using --in-tree, TODO fix later on.
This commit is contained in:
17
common.py
17
common.py
@@ -436,6 +436,22 @@ Machine type:
|
||||
)
|
||||
|
||||
# Userland.
|
||||
self.add_argument(
|
||||
'--package',
|
||||
action='append',
|
||||
help='''\
|
||||
Request to install a package in the target root filesystem, or indicate that it is present
|
||||
when building examples that rely on it or running tests for those examples.
|
||||
''',
|
||||
)
|
||||
self.add_argument(
|
||||
'--package-all',
|
||||
action='store_true',
|
||||
help='''\
|
||||
Indicate that all packages used by our userland/ examples with --package
|
||||
are available.
|
||||
''',
|
||||
)
|
||||
self.add_argument(
|
||||
'--static',
|
||||
default=False,
|
||||
@@ -772,6 +788,7 @@ Incompatible archs are skipped.
|
||||
env['userland_build_dir'] = self.env['userland_source_dir']
|
||||
else:
|
||||
env['userland_build_dir'] = join(env['out_dir'], 'userland', env['userland_build_id'], env['arch'])
|
||||
env['package'] = set(env['package'])
|
||||
|
||||
# Kernel modules.
|
||||
env['kernel_modules_build_dir'] = join(env['kernel_modules_build_base_dir'], env['arch'])
|
||||
|
||||
Reference in New Issue
Block a user