[edk2-devel] [PATCH 0/9] Migrate ArmVirtPkg modules to OvmfPkg

Abner Chang abner.chang at hpe.com
Mon Sep 27 14:03:42 UTC 2021


This pacthes set is to migrate some modules from ArmVirtPkg
to under OvmfPkg for the upcoming RiscVVirtPkg that can leverage
those modules without the dependency with Arm*Pkg.

The modules moved from ArmVirtPkg to OvmfPkg are,
- FdtClientDxe
- PciPcdProducerLib
- HighMemDxe
- QemuFwCfgLib
- FdtPciHostBridgeLib
- VirtioFdtDxe

Below PCDs are moved to under MdePkg and leverage by RiscVVirtPkg.
This change also remove the dependency on ArmPkg of OvmfPkg.
- PcdPciIoTranslation
- PcdPciIoTranslation
- PcdPciMmio32(64)Translation

Signed-off-by: Abner Chang <abner.chang at hpe.com>
Cc: Ard Biesheuvel <ardb+tianocore at kernel.org>
Cc: Leif Lindholm <leif at nuviainc.com>
Cc: Sami Mujawar <sami.mujawar at arm.com>
Cc: Jiewen Yao <jiewen.yao at intel.com>
Cc: Jordan Justen <jordan.l.justen at intel.com>
Cc: Gerd Hoffmann <kraxel at redhat.com>
Cc: Daniel Schaefer <daniel.schaefer at hpe.com>
Cc: Sunil V L <sunilvl at ventanamicro.com>
Cc: Liming Gao <gaoliming at byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu at intel.com>
Cc: Michael D Kinney <michael.d.kinney at intel.com>

Abner Chang (9):
  ArmVirtPkg/FdtClintDxe: Move FdtClientDxe to EmbeddedPkg
  MdePkg: Add PcdPciIoTranslation PCD
  ArmPkg: Use PcdPciIoTranslation PCD from MdePkg
  ArmVirtPkg/FdtPciPcdProducerLib: Relocate PciPcdProducerLib to OvmfPkg
  ArmVirtPkg/HighMemDxe: Relocate HighMemDxe to OvmfPkg
  ArmVirtPkg/QemuFwCfgLib: Relocate QemuFwCfgLib to OvmfPkg
  MdePkg: Add PcdPciMmio32(64)Translation PCDs
  ArmVirtPkg/FdtPciHostBridgeLib: Relocate FdtPciHostBridgeLib to
    OvmfPkg/Fdt
  ArmVirtPkg/VirtioFdtDxe: Relocate VirtioFdtDxe to OvmfPkg/Fdt

 ArmPkg/ArmPkg.dec                             | 16 +++++++-------
 ArmVirtPkg/ArmVirtPkg.dec                     |  4 +---
 EmbeddedPkg/EmbeddedPkg.dec                   |  2 ++
 MdePkg/MdePkg.dec                             | 12 +++++++++++
 ArmVirtPkg/ArmVirtCloudHv.dsc                 | 19 +++++++++--------
 ArmVirtPkg/ArmVirtKvmTool.dsc                 | 19 +++++++++--------
 ArmVirtPkg/ArmVirtQemu.dsc                    | 21 ++++++++++---------
 ArmVirtPkg/ArmVirtQemuKernel.dsc              | 21 ++++++++++---------
 ArmVirtPkg/ArmVirtXen.dsc                     |  3 ++-
 EmbeddedPkg/EmbeddedPkg.dsc                   |  2 ++
 ArmVirtPkg/ArmVirtCloudHv.fdf                 |  7 ++++---
 ArmVirtPkg/ArmVirtKvmTool.fdf                 |  7 ++++---
 ArmVirtPkg/ArmVirtXen.fdf                     |  3 ++-
 ArmVirtPkg/ArmVirtQemuFvMain.fdf.inc          |  7 ++++---
 .../ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf       |  3 ++-
 .../ArmVirtGicArchLib/ArmVirtGicArchLib.inf   |  2 ++
 .../ArmVirtPL031FdtClientLib.inf              |  2 ++
 .../ArmVirtPsciResetSystemLib.inf             |  2 ++
 .../ArmVirtTimerFdtClientLib.inf              |  2 ++
 .../KvmtoolRtcFdtClientLib.inf                |  2 ++
 .../NorFlashKvmtoolLib/NorFlashKvmtoolLib.inf |  3 +++
 .../NorFlashQemuLib/NorFlashQemuLib.inf       |  2 ++
 .../XenAcpiPlatformDxe/XenAcpiPlatformDxe.inf |  2 ++
 ArmVirtPkg/XenioFdtDxe/XenioFdtDxe.inf        |  2 ++
 .../Drivers}/FdtClientDxe/FdtClientDxe.inf    |  2 +-
 .../FdtPciHostBridgeLib.inf                   | 12 +++++------
 .../FdtPciPcdProducerLib.inf                  |  6 +++---
 .../Fdt}/HighMemDxe/HighMemDxe.inf            |  5 +++--
 .../Fdt}/VirtioFdtDxe/VirtioFdtDxe.inf        |  3 ++-
 .../Library/QemuFwCfgLib/QemuFwCfgLibMMIO.inf |  7 ++++---
 .../Include/Protocol/FdtClient.h              |  0
 .../Drivers}/FdtClientDxe/FdtClientDxe.c      |  0
 .../FdtPciHostBridgeLib/FdtPciHostBridgeLib.c |  0
 .../FdtPciPcdProducerLib.c                    |  1 +
 .../Fdt}/HighMemDxe/HighMemDxe.c              |  1 +
 .../Fdt}/VirtioFdtDxe/VirtioFdtDxe.c          |  1 +
 .../Library/QemuFwCfgLib/QemuFwCfgLibMMIO.c   |  7 ++++---
 Maintainers.txt                               |  6 ++++++
 38 files changed, 135 insertions(+), 81 deletions(-)
 rename {ArmVirtPkg => EmbeddedPkg/Drivers}/FdtClientDxe/FdtClientDxe.inf (88%)
 rename {ArmVirtPkg/Library => OvmfPkg/Fdt}/FdtPciHostBridgeLib/FdtPciHostBridgeLib.inf (73%)
 rename {ArmVirtPkg/Library => OvmfPkg/Fdt}/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf (83%)
 rename {ArmVirtPkg => OvmfPkg/Fdt}/HighMemDxe/HighMemDxe.inf (85%)
 rename {ArmVirtPkg => OvmfPkg/Fdt}/VirtioFdtDxe/VirtioFdtDxe.inf (87%)
 rename ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf => OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLibMMIO.inf (81%)
 rename {ArmVirtPkg => EmbeddedPkg}/Include/Protocol/FdtClient.h (100%)
 rename {ArmVirtPkg => EmbeddedPkg/Drivers}/FdtClientDxe/FdtClientDxe.c (100%)
 rename {ArmVirtPkg/Library => OvmfPkg/Fdt}/FdtPciHostBridgeLib/FdtPciHostBridgeLib.c (100%)
 rename {ArmVirtPkg/Library => OvmfPkg/Fdt}/FdtPciPcdProducerLib/FdtPciPcdProducerLib.c (95%)
 rename {ArmVirtPkg => OvmfPkg/Fdt}/HighMemDxe/HighMemDxe.c (95%)
 rename {ArmVirtPkg => OvmfPkg/Fdt}/VirtioFdtDxe/VirtioFdtDxe.c (95%)
 rename ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c => OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLibMMIO.c (93%)

-- 
2.17.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#81181): https://edk2.groups.io/g/devel/message/81181
Mute This Topic: https://groups.io/mt/85902628/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list