
From: Simon Glass <sjg@chromium.org> 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> --- scripts/build-efi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build-efi b/scripts/build-efi index 331ba2ba0d2..4e96f5406da 100755 --- a/scripts/build-efi +++ b/scripts/build-efi @@ -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') -- 2.43.0