public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Oram, Isaac W" <isaac.w.oram@intel.com>
To: devel@edk2.groups.io
Cc: Isaac Oram <isaac.w.oram@intel.com>,
	Eric Dong <eric.dong@intel.com>,
	Liming Gao <gaoliming@byosoft.com.cn>
Subject: [edk2-devel][edk2-platforms][PATCH V1 06/13] BoardModulePkg/Include: Add include for stage behavior logic
Date: Fri, 22 Jul 2022 11:46:17 -0700	[thread overview]
Message-ID: <4947838e5acd57ebb01bef4807d65e9f589ad99f.1658513099.git.isaac.w.oram@intel.com> (raw)
In-Reply-To: <cover.1658513099.git.isaac.w.oram@intel.com>

This is a commonly used set of settings modifications based on
the boot stage targeted.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Signed-off-by: Isaac Oram <isaac.w.oram@intel.com>
---
 .../Include/Dsc/CommonStageConfig.dsc.inc     | 37 +++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 Platform/Intel/BoardModulePkg/Include/Dsc/CommonStageConfig.dsc.inc

diff --git a/Platform/Intel/BoardModulePkg/Include/Dsc/CommonStageConfig.dsc.inc b/Platform/Intel/BoardModulePkg/Include/Dsc/CommonStageConfig.dsc.inc
new file mode 100644
index 0000000000..6927b5c9c2
--- /dev/null
+++ b/Platform/Intel/BoardModulePkg/Include/Dsc/CommonStageConfig.dsc.inc
@@ -0,0 +1,37 @@
+## @file
+# Commonly used stage configuration logic
+#
+# Copyright (C) 2022 Intel Corporation
+#
+# SPDX-License-Identifier: BSD-2-Clause-Patent
+#
+##
+
+[PcdsFeatureFlag.Common]
+  !if gMinPlatformPkgTokenSpaceGuid.PcdBootStage >= 1
+    gMinPlatformPkgTokenSpaceGuid.PcdStopAfterDebugInit|TRUE
+  !endif
+
+  !if gMinPlatformPkgTokenSpaceGuid.PcdBootStage >= 2
+    gMinPlatformPkgTokenSpaceGuid.PcdStopAfterDebugInit|FALSE
+    gMinPlatformPkgTokenSpaceGuid.PcdStopAfterMemInit|TRUE
+  !endif
+
+  !if gMinPlatformPkgTokenSpaceGuid.PcdBootStage >= 3
+    gMinPlatformPkgTokenSpaceGuid.PcdStopAfterMemInit|FALSE
+    gMinPlatformPkgTokenSpaceGuid.PcdBootToShellOnly|TRUE
+  !endif
+
+  !if gMinPlatformPkgTokenSpaceGuid.PcdBootStage >= 4
+    gMinPlatformPkgTokenSpaceGuid.PcdBootToShellOnly|FALSE
+  !endif
+
+  !if gMinPlatformPkgTokenSpaceGuid.PcdBootStage >= 5
+    gMinPlatformPkgTokenSpaceGuid.PcdUefiSecureBootEnable|TRUE
+    gMinPlatformPkgTokenSpaceGuid.PcdTpm2Enable|TRUE
+  !endif
+
+[PcdsFixedAtBuild.Common]
+  !if $(TARGET) != RELEASE
+    gEfiMdeModulePkgTokenSpaceGuid.PcdSmiHandlerProfilePropertyMask|0x1
+  !endif
-- 
2.36.1.windows.1


  parent reply	other threads:[~2022-07-22 18:46 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-22 18:46 [edk2-devel][edk2-platforms][PATCH V1 00/13] Simplify board porting Oram, Isaac W
2022-07-22 18:46 ` [edk2-devel][edk2-platforms][PATCH V1 01/13] MinPlatformPkg/Include: Simplify board creation Oram, Isaac W
2022-07-22 18:46 ` [edk2-devel][edk2-platforms][PATCH V1 02/13] WhitleyOpenBoardPkg/Build: Reduce duplicate code Oram, Isaac W
2022-07-22 18:46 ` [edk2-devel][edk2-platforms][PATCH V1 03/13] Features/Intel: " Oram, Isaac W
2022-07-22 18:46 ` [edk2-devel][edk2-platforms][PATCH V1 04/13] WhitleyOpenBoardPkg/Build: Reduce unnecessary code Oram, Isaac W
2022-07-22 18:46 ` [edk2-devel][edk2-platforms][PATCH V1 05/13] MinPlatformPkg/Include: Simplify build logic Oram, Isaac W
2022-07-22 18:46 ` Oram, Isaac W [this message]
2022-07-22 18:46 ` [edk2-devel][edk2-platforms][PATCH V1 07/13] WhiskeyLakeOpenBoardPkg/Build: Reduce unnecessary code Oram, Isaac W
2022-07-22 18:46 ` [edk2-devel][edk2-platforms][PATCH V1 08/13] TigerLakeOpenBoardPkg/Build: " Oram, Isaac W
2022-07-22 18:46 ` [edk2-devel][edk2-platforms][PATCH V1 09/13] SimicsOpenBoardPkg/Build: " Oram, Isaac W
2022-07-22 18:46 ` [edk2-devel][edk2-platforms][PATCH V1 10/13] PurleyOpenBoardPkg/Build: " Oram, Isaac W
2022-07-22 18:46 ` [edk2-devel][edk2-platforms][PATCH V1 11/13] KabylakeOpenBoardPkg/Build: " Oram, Isaac W
2022-07-22 18:46 ` [edk2-devel][edk2-platforms][PATCH V1 12/13] CometlakeOpenBoardPkg/Build: " Oram, Isaac W
2022-07-22 18:46 ` [edk2-devel][edk2-platforms][PATCH V1 13/13] MinPlatformPkg: Remove unnecessary feature controls Oram, Isaac W
2022-09-01  0:55 ` [edk2-devel][edk2-platforms][PATCH V1 00/13] Simplify board porting Nate DeSimone
2022-09-01  1:48   ` Isaac Oram

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=4947838e5acd57ebb01bef4807d65e9f589ad99f.1658513099.git.isaac.w.oram@intel.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