1## @file
2#  Rewrite the BootOrder NvVar based on QEMU's "bootorder" fw_cfg file.
3#
4#  Copyright (C) 2012 - 2014, Red Hat, Inc.
5#  Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
6#
7#  SPDX-License-Identifier: BSD-2-Clause-Patent
8#
9##
10
11[Defines]
12  INF_VERSION                    = 0x00010005
13  BASE_NAME                      = QemuBootOrderLib
14  FILE_GUID                      = 1D677A58-C753-4AF1-B552-EFE142DF8F57
15  MODULE_TYPE                    = DXE_DRIVER
16  VERSION_STRING                 = 1.0
17  LIBRARY_CLASS                  = QemuBootOrderLib|DXE_DRIVER
18
19#
20# The following information is for reference only and not required by the build
21# tools.
22#
23#  VALID_ARCHITECTURES           = IA32 X64 EBC ARM AARCH64
24#
25
26[Sources]
27  ExtraRootBusMap.c
28  ExtraRootBusMap.h
29  QemuBootOrderLib.c
30
31[Packages]
32  MdePkg/MdePkg.dec
33  MdeModulePkg/MdeModulePkg.dec
34  OvmfPkg/OvmfPkg.dec
35
36[LibraryClasses]
37  QemuFwCfgLib
38  DebugLib
39  MemoryAllocationLib
40  UefiBootManagerLib
41  UefiBootServicesTableLib
42  UefiRuntimeServicesTableLib
43  BaseLib
44  PrintLib
45  DevicePathLib
46  BaseMemoryLib
47  OrderedCollectionLib
48
49[Guids]
50  gEfiGlobalVariableGuid
51  gVirtioMmioTransportGuid
52
53[FeaturePcd]
54  gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderPciTranslation
55  gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderMmioTranslation
56
57[Pcd]
58  gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut
59
60[Protocols]
61  gEfiDevicePathProtocolGuid                            ## CONSUMES
62  gEfiPciRootBridgeIoProtocolGuid                       ## CONSUMES
63