From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smarthost01b.ixn.mail.zen.net.uk (smarthost01b.ixn.mail.zen.net.uk [212.23.1.21]) by mx.groups.io with SMTP id smtpd.web08.467.1646434364903262378 for ; Fri, 04 Mar 2022 14:52:45 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=permerror, err=parse error for token &{10 18 sdn.klaviyomail.com}: permanent DNS error (domain: starlabs.systems, ip: 212.23.1.21, mailfrom: sean@starlabs.systems) Received: from [217.155.46.38] (helo=sean-StarBook.lan) by smarthost01b.ixn.mail.zen.net.uk with esmtp (Exim 4.90_1) (envelope-from ) id 1nQGmw-0000Vl-9F; Fri, 04 Mar 2022 22:52:42 +0000 From: "Sean Rhodes" To: devel@edk2.groups.io Cc: Sean Rhodes , Guo Dong , Ray Ni , Maurice Ma , Benjamin You Subject: [PATCH 2/2] UefiPayloadPkg: Hookup Prioritise Internal build option Date: Fri, 4 Mar 2022 22:52:40 +0000 Message-Id: X-Mailer: git-send-email 2.32.0 In-Reply-To: <8d861caf929257f2c4b060ee2818da48e4bd6548.1646434359.git.sean@starlabs.systems> References: <8d861caf929257f2c4b060ee2818da48e4bd6548.1646434359.git.sean@starlabs.systems> MIME-Version: 1.0 X-Originating-smarthost01b-IP: [217.155.46.38] Feedback-ID: 217.155.46.38 Content-Transfer-Encoding: quoted-printable Hook PRIORITISE_INTERNAL build option to PrioritiseInternal PCD. Cc: Guo Dong Cc: Ray Ni Cc: Maurice Ma Cc: Benjamin You Signed-off-by: Sean Rhodes --- MdeModulePkg/MdeModulePkg.dec | 7 +++++-- UefiPayloadPkg/UefiPayloadPkg.dsc | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec index ded82d1cff..50b2eddd3f 100644 --- a/MdeModulePkg/MdeModulePkg.dec +++ b/MdeModulePkg/MdeModulePkg.dec @@ -1077,8 +1077,11 @@ # @Prompt Enable UEFI Stack Guard.=0D gEfiMdeModulePkgTokenSpaceGuid.PcdCpuStackGuard|FALSE|BOOLEAN|0x30001055= =0D =0D - # Prioritize Internal Devices=0D - gEfiMdeModulePkgTokenSpaceGuid.PcdPrioritizeInternal|FALSE|BOOLEAN|0x000= 00031=0D + ## Prioritize Internal Devices.=0D + # If enabled, internal devices will be prioritized over external device= s in the boot order.

=0D + # TRUE - Internal devices are prioritized.
=0D + # FALSE - Internal devices are not prioritized.
=0D + gEfiMdeModulePkgTokenSpaceGuid.PcdPrioritizeInternal|FALSE|BOOLEAN|0x300= 01057=0D =0D [PcdsFixedAtBuild, PcdsPatchableInModule]=0D ## Dynamic type PCD can be registered callback function for Pcd setting = action.=0D diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc b/UefiPayloadPkg/UefiPayload= Pkg.dsc index 4fe81a61d6..0f7fdbddfe 100644 --- a/UefiPayloadPkg/UefiPayloadPkg.dsc +++ b/UefiPayloadPkg/UefiPayloadPkg.dsc @@ -34,6 +34,7 @@ DEFINE SECURITY_STUB_ENABLE =3D TRUE=0D DEFINE SMM_SUPPORT =3D FALSE=0D DEFINE ABOVE_4G_MEMORY =3D TRUE=0D + DEFINE PRIORITIZE_INTERNAL =3D FALSE=0D #=0D # SBL: UEFI payload for Slim Bootloader=0D # COREBOOT: UEFI payload for coreboot=0D @@ -399,6 +400,7 @@ !if $(PERFORMANCE_MEASUREMENT_ENABLE)=0D gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask | 0x1=0D !endif=0D + gEfiMdeModulePkgTokenSpaceGuid.PcdPrioritizeInternal|$(PRIORITISE_INTERN= AL)=0D =0D gUefiPayloadPkgTokenSpaceGuid.PcdDispatchModuleAbove4GMemory|$(ABOVE_4G_= MEMORY)=0D =0D --=20 2.32.0