Replace the open coded sequence to load Linux on x86 with a short and generic sequence invoking QemuLoadImageLib, which can be provided by a generic version that only supports the LoadImage and StartImage boot services, and one that incorporates the entire legacy loading sequence as well. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2566 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
		
			
				
	
	
		
			86 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			86 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
## @file
 | 
						|
#  Platform BDS customizations library.
 | 
						|
#
 | 
						|
#  Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.<BR>
 | 
						|
#  SPDX-License-Identifier: BSD-2-Clause-Patent
 | 
						|
#
 | 
						|
##
 | 
						|
 | 
						|
[Defines]
 | 
						|
  INF_VERSION                    = 0x00010005
 | 
						|
  BASE_NAME                      = PlatformBootManagerLib
 | 
						|
  FILE_GUID                      = FB65006C-AC9F-4992-AD80-184B2BDBBD83
 | 
						|
  MODULE_TYPE                    = DXE_DRIVER
 | 
						|
  VERSION_STRING                 = 1.0
 | 
						|
  LIBRARY_CLASS                  = PlatformBootManagerLib|DXE_DRIVER
 | 
						|
 | 
						|
#
 | 
						|
# The following information is for reference only and not required by the build tools.
 | 
						|
#
 | 
						|
#  VALID_ARCHITECTURES           = IA32 X64 EBC
 | 
						|
#
 | 
						|
 | 
						|
[Sources]
 | 
						|
  BdsPlatform.c
 | 
						|
  PlatformData.c
 | 
						|
  QemuKernel.c
 | 
						|
  BdsPlatform.h
 | 
						|
 | 
						|
[Packages]
 | 
						|
  MdePkg/MdePkg.dec
 | 
						|
  MdeModulePkg/MdeModulePkg.dec
 | 
						|
  SourceLevelDebugPkg/SourceLevelDebugPkg.dec
 | 
						|
  OvmfPkg/OvmfPkg.dec
 | 
						|
  SecurityPkg/SecurityPkg.dec
 | 
						|
  ShellPkg/ShellPkg.dec
 | 
						|
 | 
						|
[LibraryClasses]
 | 
						|
  BaseLib
 | 
						|
  MemoryAllocationLib
 | 
						|
  UefiBootServicesTableLib
 | 
						|
  UefiRuntimeServicesTableLib
 | 
						|
  BaseMemoryLib
 | 
						|
  DebugLib
 | 
						|
  PcdLib
 | 
						|
  UefiBootManagerLib
 | 
						|
  BootLogoLib
 | 
						|
  DevicePathLib
 | 
						|
  PciLib
 | 
						|
  NvVarsFileLib
 | 
						|
  QemuFwCfgLib
 | 
						|
  QemuFwCfgS3Lib
 | 
						|
  QemuLoadImageLib
 | 
						|
  QemuBootOrderLib
 | 
						|
  ReportStatusCodeLib
 | 
						|
  UefiLib
 | 
						|
  PlatformBmPrintScLib
 | 
						|
  Tcg2PhysicalPresenceLib
 | 
						|
  XenPlatformLib
 | 
						|
 | 
						|
[Pcd]
 | 
						|
  gUefiOvmfPkgTokenSpaceGuid.PcdEmuVariableEvent
 | 
						|
  gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashVariablesEnable
 | 
						|
  gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId
 | 
						|
  gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut
 | 
						|
  gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate         ## CONSUMES
 | 
						|
  gEfiMdePkgTokenSpaceGuid.PcdUartDefaultDataBits         ## CONSUMES
 | 
						|
  gEfiMdePkgTokenSpaceGuid.PcdUartDefaultParity           ## CONSUMES
 | 
						|
  gEfiMdePkgTokenSpaceGuid.PcdUartDefaultStopBits         ## CONSUMES
 | 
						|
 | 
						|
[Pcd.IA32, Pcd.X64]
 | 
						|
  gEfiMdePkgTokenSpaceGuid.PcdFSBClock
 | 
						|
 | 
						|
[Protocols]
 | 
						|
  gEfiDecompressProtocolGuid
 | 
						|
  gEfiPciRootBridgeIoProtocolGuid
 | 
						|
  gEfiS3SaveStateProtocolGuid                   # PROTOCOL SOMETIMES_CONSUMED
 | 
						|
  gEfiDxeSmmReadyToLockProtocolGuid             # PROTOCOL SOMETIMES_PRODUCED
 | 
						|
  gEfiLoadedImageProtocolGuid                   # PROTOCOL SOMETIMES_PRODUCED
 | 
						|
  gEfiFirmwareVolume2ProtocolGuid               # PROTOCOL SOMETIMES_CONSUMED
 | 
						|
 | 
						|
[Guids]
 | 
						|
  gEfiEndOfDxeEventGroupGuid
 | 
						|
  gEfiGlobalVariableGuid
 | 
						|
  gRootBridgesConnectedEventGroupGuid
 | 
						|
  gUefiShellFileGuid
 |