Linux v5.7 will introduce a new method to load the initial ramdisk (initrd) from the loader, using the LoadFile2 protocol installed on a special vendor GUIDed media device path. Add support for this to our QEMU command line kernel/initrd loader. 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>
		
			
				
	
	
		
			51 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
##  @file
 | 
						|
#  DXE driver to expose the 'kernel', 'initrd' and 'cmdline' blobs
 | 
						|
#  provided by QEMU as files in an abstract file system
 | 
						|
#
 | 
						|
#  Copyright (C) 2014-2016, Red Hat, Inc.
 | 
						|
#  Copyright (C) 2020, Arm, Limited.
 | 
						|
#
 | 
						|
#  SPDX-License-Identifier: BSD-2-Clause-Patent
 | 
						|
##
 | 
						|
 | 
						|
[Defines]
 | 
						|
  INF_VERSION                    = 1.27
 | 
						|
  BASE_NAME                      = QemuKernelLoaderFsDxe
 | 
						|
  FILE_GUID                      = 806040ca-dad9-4978-a3b4-2d2ab0c8a48f
 | 
						|
  MODULE_TYPE                    = DXE_DRIVER
 | 
						|
  VERSION_STRING                 = 1.0
 | 
						|
  ENTRY_POINT                    = QemuKernelLoaderFsDxeEntrypoint
 | 
						|
 | 
						|
[Sources]
 | 
						|
  QemuKernelLoaderFsDxe.c
 | 
						|
 | 
						|
[Packages]
 | 
						|
  MdeModulePkg/MdeModulePkg.dec
 | 
						|
  MdePkg/MdePkg.dec
 | 
						|
  OvmfPkg/OvmfPkg.dec
 | 
						|
 | 
						|
[LibraryClasses]
 | 
						|
  BaseLib
 | 
						|
  BaseMemoryLib
 | 
						|
  DebugLib
 | 
						|
  DevicePathLib
 | 
						|
  MemoryAllocationLib
 | 
						|
  QemuFwCfgLib
 | 
						|
  UefiBootServicesTableLib
 | 
						|
  UefiDriverEntryPoint
 | 
						|
  UefiRuntimeServicesTableLib
 | 
						|
 | 
						|
[Guids]
 | 
						|
  gEfiFileInfoGuid
 | 
						|
  gEfiFileSystemInfoGuid
 | 
						|
  gEfiFileSystemVolumeLabelInfoIdGuid
 | 
						|
  gQemuKernelLoaderFsMediaGuid
 | 
						|
 | 
						|
[Protocols]
 | 
						|
  gEfiDevicePathProtocolGuid                ## PRODUCES
 | 
						|
  gEfiLoadFile2ProtocolGuid                 ## PRODUCES
 | 
						|
  gEfiSimpleFileSystemProtocolGuid          ## PRODUCES
 | 
						|
 | 
						|
[Depex]
 | 
						|
  gEfiRealTimeClockArchProtocolGuid
 |