]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/QemuFwCfgS3Lib: add initial Base Null library instance
authorLaszlo Ersek <lersek@redhat.com>
Wed, 22 Feb 2017 01:09:47 +0000 (02:09 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Tue, 14 Mar 2017 20:49:09 +0000 (21:49 +0100)
commitad223a1c542217e2a9d06548dd596405e68e2a0b
treeba668429c451d376b22f84e2bb64c25f96ce678f
parentf70b071e2f14b3b79b328b5afb8345affbe772b1
OvmfPkg/QemuFwCfgS3Lib: add initial Base Null library instance

This library instance returns constant FALSE from QemuFwCfgS3Enabled(),
and all other library functions trigger assertion failures. It is suitable
for QEMU targets and machine types that never enable S3.

The QemuFwCfgS3Enabled() implementation is copied from
"ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c". Stubs for further
QemuFwCfgS3Lib APIs (with assertion failures, see above) will be added
later.

Cc: Jordan Justen <jordan.l.justen@intel.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=394
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
OvmfPkg/Library/QemuFwCfgS3Lib/BaseQemuFwCfgS3LibNull.inf [new file with mode: 0644]
OvmfPkg/Library/QemuFwCfgS3Lib/QemuFwCfgS3Base.c [new file with mode: 0644]