]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/PlatformPei: extract memory type info defaults to PCDs
authorLaszlo Ersek <lersek@redhat.com>
Fri, 8 May 2020 12:16:50 +0000 (14:16 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 18 May 2020 15:48:48 +0000 (15:48 +0000)
commit8db87f98357b40798a9446d96d9b9109c9cbb47e
tree0fcf0c0a038001f2431e6b13e24bbf30042e7e03
parent356b96b3a2dc4b5aa05a680a7c6a2f094266fdd3
OvmfPkg/PlatformPei: extract memory type info defaults to PCDs

Some OvmfPkg modules already depend on "EmbeddedPkg.dec"; thus, replace
the open-coded memory type info defaults in the source code with the
EmbeddedPkg PCDs that stand for the same purpose. Consequently, platform
builders can override these values with the "--pcd" option of "build",
without source code updates.

While at it, sort the memory type names alphabetically.

Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2706
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20200508121651.16045-4-lersek@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
OvmfPkg/OvmfPkgIa32.dsc
OvmfPkg/OvmfPkgIa32X64.dsc
OvmfPkg/OvmfPkgX64.dsc
OvmfPkg/PlatformPei/MemTypeInfo.c
OvmfPkg/PlatformPei/PlatformPei.inf