Skip to content

Commit cff4f40

Browse files
committed
System76PayloadPkg: Add GOP and GOP policy drivers
Disable the edk2 GOP driver when GOP and policy drivers are enabled. Signed-off-by: Tim Crawford <tcrawford@system76.com>
1 parent ce7a0f7 commit cff4f40

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

System76PayloadPkg/System76PayloadPkg.dsc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
DEFINE LOCKBOX_SUPPORT = FALSE
4747
DEFINE LOAD_OPTION_ROMS = FALSE
4848
DEFINE SYSTEM76_EC_LOGGING = FALSE
49+
DEFINE USE_GOP_POLICY = FALSE
4950

5051
#
5152
# Crypto Support
@@ -1102,7 +1103,9 @@
11021103
!if $(DISABLE_SERIAL_TERMINAL) == FALSE
11031104
MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
11041105
!endif
1106+
!if $(USE_GOP_POLICY) == FALSE
11051107
System76PayloadPkg/GraphicsOutputDxe/GraphicsOutputDxe.inf
1108+
!endif
11061109
!if $(PERFORMANCE_MEASUREMENT_ENABLE)
11071110
MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableDxe/FirmwarePerformanceDxe.inf
11081111
!endif

System76PayloadPkg/System76PayloadPkg.fdf

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,20 @@ INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
290290
!if $(DISABLE_SERIAL_TERMINAL) == FALSE
291291
INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
292292
!endif
293-
INF System76PayloadPkg/GraphicsOutputDxe/GraphicsOutputDxe.inf
293+
294+
!if $(USE_GOP_POLICY) == TRUE
295+
# Use GOP blob and rust GOP Policy driver
296+
INF RuleOverride=BINARY USE=X64 $(FIRMWARE_OPEN_GOP)
297+
INF RuleOverride=BINARY USE=X64 $(FIRMWARE_OPEN_GOP_POLICY)
298+
299+
# gIntelSiliconPkgTokenSpaceGuid.PcdIntelGraphicsVbtFileGuid
300+
FILE FREEFORM = 56752da9-de6b-4895-8819-1945b6b76c22 {
301+
SECTION RAW = vbt.rom
302+
SECTION UI = "IntelGopVbt"
303+
}
304+
!else
305+
INF System76PayloadPkg/GraphicsOutputDxe/GraphicsOutputDxe.inf
306+
!endif
294307

295308
!if $(LOAD_OPTION_ROMS) == TRUE
296309
INF System76PayloadPkg/PciPlatformDxe/PciPlatformDxe.inf

0 commit comments

Comments
 (0)