mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
run: --linux-exec to override the Linux image used
Explain about gem5 upstream prebuilts.
This commit is contained in:
16
common.py
16
common.py
@@ -373,6 +373,14 @@ Use the given directory as the Linux build directory. Ignore --linux-build-id.
|
||||
help='''\
|
||||
Linux build ID. Allows you to keep multiple separate Linux builds.
|
||||
'''
|
||||
)
|
||||
self.add_argument(
|
||||
'--linux-exec',
|
||||
help='''\
|
||||
Use the given executable Linux kernel image. Ignored in userland and baremetal modes,
|
||||
Remember that different emulators may take different types of image, see:
|
||||
https://cirosantilli.com/linux-kernel-module-cheat#vmlinux-vs-bzimage-vs-zimage-vs-image
|
||||
''',
|
||||
)
|
||||
self.add_argument(
|
||||
'--linux-source-dir',
|
||||
@@ -1071,14 +1079,18 @@ Incompatible archs are skipped.
|
||||
break
|
||||
else:
|
||||
if env['emulator'] == 'gem5':
|
||||
env['image'] = env['vmlinux']
|
||||
if not env['_args_given']['linux_exec']:
|
||||
env['image'] = env['vmlinux']
|
||||
if env['ramfs']:
|
||||
env['disk_image'] = env['gem5_fake_iso']
|
||||
else:
|
||||
env['disk_image'] = env['rootfs_raw_file']
|
||||
else:
|
||||
env['image'] = env['linux_image']
|
||||
if not env['_args_given']['linux_exec']:
|
||||
env['image'] = env['linux_image']
|
||||
env['disk_image'] = env['qcow2_file']
|
||||
if env['_args_given']['linux_exec']:
|
||||
env['image'] = env['linux_exec']
|
||||
|
||||
# Android
|
||||
if not env['_args_given']['android_base_dir']:
|
||||
|
||||
Reference in New Issue
Block a user