From: "Sami Mujawar" <sami.mujawar@arm.com>
To: Oliver Steffen <osteffen@redhat.com>, devel@edk2.groups.io
Cc: Anthony Perard <anthony.perard@citrix.com>,
Ard Biesheuvel <ardb+tianocore@kernel.org>,
Gerd Hoffmann <kraxel@redhat.com>,
Jian J Wang <jian.j.wang@intel.com>,
Jiewen Yao <jiewen.yao@intel.com>,
Jordan Justen <jordan.l.justen@intel.com>,
Julien Grall <julien@xen.org>,
Leif Lindholm <quic_llindhol@quicinc.com>,
Liming Gao <gaoliming@byosoft.com.cn>, Ray Ni <ray.ni@intel.com>,
Zhichao Gao <zhichao.gao@intel.com>,
Pawel Polawski <ppolawsk@redhat.com>,
nd@arm.com
Subject: Re: [PATCH v2 2/2] ArmVirtPkg: allow setting Firmware Version from build command line
Date: Fri, 14 Oct 2022 14:25:12 +0100 [thread overview]
Message-ID: <cac364f8-1867-9052-122f-7f37889bd810@arm.com> (raw)
In-Reply-To: <CA+bRGFqMdun5wGDwa+3Kk5nephTnjo2VxjkZaLJ1-K78e2Xa9Q@mail.gmail.com>
Hi Oliver,
Thank you for the updated patch.
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Regards,
Sami Mujawar
On 14/10/2022 01:34 pm, Oliver Steffen wrote:
> ArmVirtXen.dsc initializes
> gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString
> with with the value of the variable "FIRMWARE_VER".
>
> Move that functionality to ArmVirt.dsc.inc to make it available
> to all ArmVirt packages, and make it conditional: only set the
> PCD string if FIRMWARE_VER is actually defined.
>
> This allows specifying the firmware version string on the
> build command line with -D FIRMARE_VER=...
>
> Signed-off-by: Oliver Steffen <osteffen@redhat.com>
> ---
> ArmVirtPkg/ArmVirt.dsc.inc | 4 ++++
> ArmVirtPkg/ArmVirtXen.dsc | 1 -
> 2 files changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/ArmVirtPkg/ArmVirt.dsc.inc b/ArmVirtPkg/ArmVirt.dsc.inc
> index c39e2506a3ea..49e96c9fb91c 100644
> --- a/ArmVirtPkg/ArmVirt.dsc.inc
> +++ b/ArmVirtPkg/ArmVirt.dsc.inc
> @@ -289,6 +289,10 @@ [PcdsFeatureFlag.AARCH64]
> gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
>
> [PcdsFixedAtBuild.common]
> +!ifdef $(FIRMWARE_VER)
> + gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)"
> +!endif
> +
> gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
> gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
> gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
> diff --git a/ArmVirtPkg/ArmVirtXen.dsc b/ArmVirtPkg/ArmVirtXen.dsc
> index 58088af6ea3a..a280ae203bae 100644
> --- a/ArmVirtPkg/ArmVirtXen.dsc
> +++ b/ArmVirtPkg/ArmVirtXen.dsc
> @@ -69,7 +69,6 @@ [BuildOptions]
> ################################################################################
>
> [PcdsFixedAtBuild.common]
> - gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)"
> !if $(ARCH) == AARCH64
> gArmTokenSpaceGuid.PcdVFPEnabled|1
> !endif
prev parent reply other threads:[~2022-10-14 13:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20221014123408.302491-1-osteffen@redhat.com>
2022-10-14 12:34 ` [PATCH v2 1/2] OvmfPkg: allow setting Firmware Version from build command line Oliver Steffen
2022-10-14 12:34 ` [PATCH v2 2/2] ArmVirtPkg: " Oliver Steffen
2022-10-14 13:25 ` Sami Mujawar [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cac364f8-1867-9052-122f-7f37889bd810@arm.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox