diff options
author | Oliver Steffen <osteffen@redhat.com> | 2023-04-14 10:33:22 +0200 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-05-04 14:26:58 +0000 |
commit | 8d59bbf47ea09bbf599bcc1da5e9923a456c0a52 (patch) | |
tree | 008b4e4a6014416e580359bdd0ac8b2284c3141d /OvmfPkg/OvmfXen.dsc | |
parent | 5de2a54b2cfdb9cb3a1a564c85e99aa6b06b5dba (diff) | |
download | edk2-8d59bbf47ea09bbf599bcc1da5e9923a456c0a52.tar.gz |
OvmfPkg: allow setting Firmware Version from build command line
Initialize gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString with
with the value of the variable "FIRMWARE_VER", if is is defined. Applies
to all flavors of OvmfPkg.
This behavior is already implemented in ArmVirtXen.dsc. It allows
specifying the firmware version string on the build command line with
-D FIRMARE_VER=...
Introduce a common include file to be used in the .dsc files for the
different OVMF flavors, and add the changes there. (ArmVirtPkg already
has such a file).
Signed-off-by: Oliver Steffen <osteffen@redhat.com>
Diffstat (limited to 'OvmfPkg/OvmfXen.dsc')
-rw-r--r-- | OvmfPkg/OvmfXen.dsc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OvmfPkg/OvmfXen.dsc b/OvmfPkg/OvmfXen.dsc index 8bfc16c2d3..1f44ec86c9 100644 --- a/OvmfPkg/OvmfXen.dsc +++ b/OvmfPkg/OvmfXen.dsc @@ -62,6 +62,8 @@ !endif
!endif
+!include OvmfPkg/Include/Dsc/OvmfPkg.dsc.inc
+
[BuildOptions]
GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
|