audk/ArmVirtPkg
Star Zeng ad7f6bc2e1 ArmVirtPkg: Use SerialDxe in MdeModulePkg instead of EmbeddedPkg
Beyond just changing the directly related lines in the FDF and DSC files,
we have to adapt the EarlyFdtPL011SerialPortLib and FdtPL011SerialPortLib
instances as well, in the same patch. This is because the EmbeddedPkg
driver expects the SerialPortSetAttributes(),
SerialPortSetControl() and SerialPortGetControl() functions from
SerialPortExtLib, while the MdeModulePkg driver expects them from
SerialPortLib itself.

We cannot implement these functions in ArmVirtPkg's SerialPortLib
instances *before* flipping the driver, because it would cause double
function definitions in the EmbeddedPkg driver. We also can't implement
the functions *after* flipping the driver, because it would cause
unresolved function references in the MdeModulePkg driver. Therefore
we have to implement the functions simultaneously with the driver
replacement.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18973 6f19259b-4bc3-4df7-8a09-765794883524
2015-11-26 08:52:12 +00:00
..
Include Renamed ArmPlatformPkg/ArmVirtualizationPkg into ArmVirtPkg 2015-05-29 13:50:43 +00:00
Library ArmVirtPkg: Use SerialDxe in MdeModulePkg instead of EmbeddedPkg 2015-11-26 08:52:12 +00:00
PciHostBridgeDxe Renamed ArmPlatformPkg/ArmVirtualizationPkg into ArmVirtPkg 2015-05-29 13:50:43 +00:00
PrePi ArmVirtPkg/PrePi: do not invalidate the entire data cache at startup 2015-11-09 13:27:56 +00:00
VirtFdtDxe ArmVirtPkg: VirtFdtDxe: detect fw-cfg DMA interface from the DTB 2015-09-24 21:40:36 +00:00
ArmVirt.dsc.inc ArmVirtPkg: Use SerialDxe in MdeModulePkg instead of EmbeddedPkg 2015-11-26 08:52:12 +00:00
ArmVirtPkg.dec ArmVirtPkg: VirtFdtDxe: detect fw-cfg DMA interface from the DTB 2015-09-24 21:40:36 +00:00
ArmVirtQemu.dsc ArmVirtPkg: Use SerialDxe in MdeModulePkg instead of EmbeddedPkg 2015-11-26 08:52:12 +00:00
ArmVirtQemu.fdf ArmVirtPkg: Use SerialDxe in MdeModulePkg instead of EmbeddedPkg 2015-11-26 08:52:12 +00:00
ArmVirtXen.dsc ArmVirtPkg: Use SerialDxe in MdeModulePkg instead of EmbeddedPkg 2015-11-26 08:52:12 +00:00
ArmVirtXen.fdf ArmVirtPkg: Use SerialDxe in MdeModulePkg instead of EmbeddedPkg 2015-11-26 08:52:12 +00:00
Contributions.txt ArmVirtPkg: add "Contributions.txt" and "License.txt" 2015-06-08 22:00:36 +00:00
License.txt ArmVirtPkg: add "Contributions.txt" and "License.txt" 2015-06-08 22:00:36 +00:00