audk/OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
Gerd Hoffmann 1549bf11cc OvmfPkg/X86QemuLoadImageLib: make legacy loader configurable.
Add the 'opt/org.tianocore/EnableLegacyLoader' FwCfg option to
enable/disable the insecure legacy linux kernel loader.

For now this is enabled by default.  Probably the default will be
flipped to disabled at some point in the future.

Also print a warning to the screen in case the linux kernel secure
boot verification has failed.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2025-01-21 13:45:46 +01:00

47 lines
1.2 KiB
INI

## @file
# X86 specific implementation of QemuLoadImageLib library class interface
# with support for loading mixed mode images and non-EFI stub images
#
# Note that this implementation reads the cmdline (and possibly kernel, setup
# data, and initrd in the legacy boot mode) from fw_cfg directly.
#
# Copyright (c) 2020, ARM Ltd. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
##
[Defines]
INF_VERSION = 1.27
BASE_NAME = X86QemuLoadImageLib
FILE_GUID = 2304df80-e21d-4170-9c3c-113c878f7ac0
MODULE_TYPE = BASE
VERSION_STRING = 1.0
LIBRARY_CLASS = QemuLoadImageLib|DXE_DRIVER
[Sources]
X86QemuLoadImageLib.c
[Packages]
MdeModulePkg/MdeModulePkg.dec
MdePkg/MdePkg.dec
OvmfPkg/OvmfPkg.dec
[LibraryClasses]
DebugLib
MemoryAllocationLib
LoadLinuxLib
PrintLib
QemuFwCfgLib
QemuFwCfgSimpleParserLib
ReportStatusCodeLib
UefiBootServicesTableLib
[Protocols]
gEfiDevicePathProtocolGuid
gEfiLoadedImageProtocolGuid
gOvmfLoadedX86LinuxKernelProtocolGuid
[Guids]
gQemuKernelLoaderFsMediaGuid