]> git.proxmox.com Git - mirror_edk2.git/commit - OvmfPkg/OvmfPkgIa32.dsc
OvmfPkg: create a separate PlatformDebugLibIoPort instance for SEC
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 16 Nov 2017 20:30:59 +0000 (21:30 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Fri, 17 Nov 2017 17:35:08 +0000 (18:35 +0100)
commitc9eb56e5fddc77a6a68c57c5685f64adbb5a05b9
tree0637f82b1d80457aec8c79b89844ec1603c50da3
parent6dead8d5af5d1bb1624bd9c1a39383704d8c31f8
OvmfPkg: create a separate PlatformDebugLibIoPort instance for SEC

The next patch will want to add a global variable to
PlatformDebugLibIoPort, but this is not suitable for the SEC
phase, because SEC runs from read-only flash.  The solution is
to have two library instances, one for SEC and another
for all other firmware phases.  This patch adds the "plumbing"
for the SEC library instance, separating the INF files and
moving the constructor to a separate C source file.

Contributed-under: TianoCore Contribution Agreement 1.1
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Jordan Justen (Intel address) <jordan.l.justen@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c
OvmfPkg/Library/PlatformDebugLibIoPort/DebugLibDetect.c [new file with mode: 0644]
OvmfPkg/Library/PlatformDebugLibIoPort/DebugLibDetectRom.c [new file with mode: 0644]
OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf [new file with mode: 0644]
OvmfPkg/OvmfPkgIa32.dsc
OvmfPkg/OvmfPkgIa32X64.dsc
OvmfPkg/OvmfPkgX64.dsc