Skip to content

Commit

Permalink
OvmfPkg: always enable serial console redirection
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Pijanowski <[email protected]>
  • Loading branch information
macpijan committed Oct 11, 2023
1 parent 115aa9e commit 55e735d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/build-qemu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ $EDK2_PLATFORMS_PATH/Features/Intel/PowerManagement:\
$EDK2_PLATFORMS_PATH/Features/Intel/SystemInformation:\
$EDK2_PLATFORMS_PATH/Features/Intel/UserInterface"

build -D SERIAL_REDIRECTION_DEFAULT=TRUE -a IA32 -a X64 -t GCC5 -b RELEASE -p OvmfPkg/OvmfPkgX64.dsc
build -D SERIAL_REDIRECTION_DEFAULT=TRUE -a IA32 -a X64 -t GCC5 -b DEBUG -p OvmfPkg/OvmfPkgX64.dsc
build -a IA32 -a X64 -t GCC5 -b RELEASE -p OvmfPkg/OvmfPkgX64.dsc
build -a IA32 -a X64 -t GCC5 -b DEBUG -p OvmfPkg/OvmfPkgX64.dsc
8 changes: 2 additions & 6 deletions OvmfPkg/OvmfPkgX64.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
DEFINE DISABLE_MTRR_PROGRAMMING = TRUE
DEFINE IOMMU_ENABLE = FALSE
DEFINE SETUP_PASSWORD_ENABLE = TRUE
DEFINE SERIAL_TERMINAL = TRUE
DEFINE SERIAL_REDIRECTION_DEFAULT = FALSE

#
# Network definition
Expand Down Expand Up @@ -575,7 +573,7 @@
gDasharoSystemFeaturesTokenSpaceGuid.PcdDefaultNetworkBootEnable|FALSE
gDasharoSystemFeaturesTokenSpaceGuid.PcdDasharoEnterprise|TRUE
gDasharoSystemFeaturesTokenSpaceGuid.PcdShowIommuOptions|TRUE
gDasharoSystemFeaturesTokenSpaceGuid.PcdSerialRedirectionDefaultState|$(SERIAL_REDIRECTION_DEFAULT)
gDasharoSystemFeaturesTokenSpaceGuid.PcdSerialRedirectionDefaultState|TRUE

################################################################################
#
Expand Down Expand Up @@ -794,7 +792,7 @@
!endif
<PcdsFixedAtBuild>
gDasharoSystemFeaturesTokenSpaceGuid.PcdShowMenu|$(DASHARO_SYSTEM_FEATURES_ENABLE)
gDasharoSystemFeaturesTokenSpaceGuid.PcdShowSerialPortMenu|$(SERIAL_TERMINAL)
gDasharoSystemFeaturesTokenSpaceGuid.PcdShowSerialPortMenu|TRUE
}

MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenuApp.inf
Expand All @@ -821,9 +819,7 @@
<LibraryClasses>
PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
}
!if $(SERIAL_TERMINAL) == TRUE
MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
!endif
MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
<LibraryClasses>
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
Expand Down
2 changes: 0 additions & 2 deletions OvmfPkg/OvmfPkgX64.fdf
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,7 @@ INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
!if $(SERIAL_TERMINAL) == TRUE
INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
!endif
INF MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
INF MdeModulePkg/Application/UiApp/UiApp.inf
Expand Down

0 comments on commit 55e735d

Please sign in to comment.