From 611c7f1101267d53b039a04136e55f313c756c5c Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Fri, 24 Apr 2020 09:53:47 +0200 Subject: OvmfPkg: introduce QemuFwCfgSimpleParserLib MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We already parse some boolean and integer values from named fw_cfg files (usually into PCDs), and we're going to cover more. Add a dedicated library for centralizing the parsing logic. Cc: Ard Biesheuvel Cc: Jordan Justen Cc: Per Sundstrom Cc: Philippe Mathieu-Daudé Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2681 Signed-off-by: Laszlo Ersek Message-Id: <20200424075353.8489-2-lersek@redhat.com> Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Ard Biesheuvel --- OvmfPkg/OvmfPkg.dec | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'OvmfPkg/OvmfPkg.dec') diff --git a/OvmfPkg/OvmfPkg.dec b/OvmfPkg/OvmfPkg.dec index 28030391cf..8a46fe7334 100644 --- a/OvmfPkg/OvmfPkg.dec +++ b/OvmfPkg/OvmfPkg.dec @@ -60,6 +60,10 @@ # QemuFwCfgS3Lib|Include/Library/QemuFwCfgS3Lib.h + ## @libraryclass Parse the contents of named fw_cfg files as simple + # (scalar) data types. + QemuFwCfgSimpleParserLib|Include/Library/QemuFwCfgSimpleParserLib.h + ## @libraryclass Rewrite the BootOrder NvVar based on QEMU's "bootorder" # fw_cfg file. # -- cgit v1.2.3