mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-28 20:44:26 +01:00
--linux-build-dir
This commit is contained in:
10
common.py
10
common.py
@@ -130,7 +130,7 @@ mkdir are generally omitted since those are obvious
|
|||||||
self.add_argument(
|
self.add_argument(
|
||||||
'--gem5-build-dir',
|
'--gem5-build-dir',
|
||||||
help='''\
|
help='''\
|
||||||
Use the given directory as the gem5 build directory.
|
Use the given directory as the gem5 build directory. Ignore --gem5-build-id and --gem5-build-type.
|
||||||
'''
|
'''
|
||||||
)
|
)
|
||||||
self.add_argument(
|
self.add_argument(
|
||||||
@@ -158,6 +158,12 @@ See: https://github.com/cirosantilli/linux-kernel-module-cheat#gem5-worktree
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Linux kernel.
|
# Linux kernel.
|
||||||
|
self.add_argument(
|
||||||
|
'--linux-build-dir',
|
||||||
|
help='''\
|
||||||
|
Use the given directory as the Linux build directory. Ignore --linux-build-id.
|
||||||
|
'''
|
||||||
|
)
|
||||||
self.add_argument(
|
self.add_argument(
|
||||||
'-L', '--linux-build-id', default=consts['default_build_id'],
|
'-L', '--linux-build-id', default=consts['default_build_id'],
|
||||||
help='''\
|
help='''\
|
||||||
@@ -442,7 +448,7 @@ to allow overriding configs from the CLI.
|
|||||||
env['run_cmd_file'] = join(env['run_dir'], 'run.sh')
|
env['run_cmd_file'] = join(env['run_dir'], 'run.sh')
|
||||||
|
|
||||||
# Linux kernl.
|
# Linux kernl.
|
||||||
if 'linux_build_id' in env:
|
if env['linux_build_dir'] is None:
|
||||||
env['linux_build_dir'] = join(env['out_dir'], 'linux', env['linux_build_id'], env['arch'])
|
env['linux_build_dir'] = join(env['out_dir'], 'linux', env['linux_build_id'], env['arch'])
|
||||||
env['lkmc_vmlinux'] = join(env['linux_build_dir'], "vmlinux")
|
env['lkmc_vmlinux'] = join(env['linux_build_dir'], "vmlinux")
|
||||||
if env['arch'] == 'arm':
|
if env['arch'] == 'arm':
|
||||||
|
|||||||
Reference in New Issue
Block a user