scripts: build-efi: Use --write-kernel instead of -K

We want to use the -K option for providing a kernel via QEMU's QFW
interface. Perhaps we could use the same option and require that the
file be provided always, but that is less convenient.

For now, rename the option.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-06-12 06:10:24 -06:00
parent 686ee0523a
commit cd73d77f92

View File

@@ -39,8 +39,8 @@ def parse_args():
build_helper.add_common_args(parser)
parser.add_argument('-g', '--debug', action='store_true',
help="Run QEMU with gdb")
parser.add_argument('-K', '--kernel', action='store_true',
help='Add a kernel')
parser.add_argument('--write-kernel', action='store_true',
help='Add a kernel to the disk image')
parser.add_argument('-O', '--old', action='store_true',
help='Use old EFI app build (before 32/64 split)')
parser.add_argument('-p', '--payload', action='store_true',
@@ -195,7 +195,7 @@ class BuildEfi:
with self.helper.make_disk(self.img, fs_type='vfat',
use_part=args.partition) as dirpath:
self.setup_files(build, build_type, dirpath)
if self.args.kernel:
if self.args.write_kernel:
bzimage = self.helper.get_setting('bzimage_file', 'bzImage')
command.run('cp', bzimage, f'{dirpath}/vmlinuz')