mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-07 19:45:07 +02:00
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>
This commit is contained in:
parent
5de2a54b2c
commit
8d59bbf47e
8
OvmfPkg/Include/Dsc/OvmfPkg.dsc.inc
Normal file
8
OvmfPkg/Include/Dsc/OvmfPkg.dsc.inc
Normal file
@ -0,0 +1,8 @@
|
||||
##
|
||||
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
##
|
||||
|
||||
[PcdsFixedAtBuild.common]
|
||||
!ifdef $(FIRMWARE_VER)
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)"
|
||||
!endif
|
@ -78,6 +78,8 @@
|
||||
!endif
|
||||
!endif
|
||||
|
||||
!include OvmfPkg/Include/Dsc/OvmfPkg.dsc.inc
|
||||
|
||||
[BuildOptions]
|
||||
GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
|
||||
INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
|
||||
|
@ -77,6 +77,8 @@
|
||||
!endif
|
||||
!endif
|
||||
|
||||
!include OvmfPkg/Include/Dsc/OvmfPkg.dsc.inc
|
||||
|
||||
[BuildOptions]
|
||||
GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
|
||||
INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
|
||||
|
@ -84,6 +84,8 @@
|
||||
DEFINE UP_CPU_PEI_GUID = 280251c4-1d09-4035-9062-839acb5f18c1
|
||||
DEFINE UP_CPU_DXE_GUID = 6490f1c5-ebcc-4665-8892-0075b9bb49b7
|
||||
|
||||
!include OvmfPkg/Include/Dsc/OvmfPkg.dsc.inc
|
||||
|
||||
[BuildOptions]
|
||||
GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
|
||||
INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user