Skip to content

Commit 65e25b3

Browse files
mariobalanicapaulober
authored andcommitted
Platform/RPi5: Make AcpiTableDxe less verbose
No need to print the entire namespace each time a value is patched. Signed-off-by: Mario Bălănică <[email protected]>
1 parent 00846fd commit 65e25b3

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

Platform/RaspberryPi/RPi5/RPi5.dsc

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,20 @@
4848
DEFINE TFA_BUILD_BL31 = $(TFA_BUILD_ARTIFACTS)/bl31.bin
4949
!endif
5050

51+
#
52+
# DEBUG_ASSERT_ENABLED 0x01
53+
# DEBUG_PRINT_ENABLED 0x02
54+
# DEBUG_CODE_ENABLED 0x04
55+
# CLEAR_MEMORY_ENABLED 0x08
56+
# ASSERT_BREAKPOINT_ENABLED 0x10
57+
# ASSERT_DEADLOOP_ENABLED 0x20
58+
#
59+
!if $(TARGET) == RELEASE
60+
DEFINE DEBUG_PROPERTY_MASK = 0x21
61+
!else
62+
DEFINE DEBUG_PROPERTY_MASK = 0x2f
63+
!endif
64+
5165
################################################################################
5266
#
5367
# Library Class section - list of all Library Classes needed by this Platform.
@@ -291,17 +305,7 @@
291305
gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
292306
gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
293307

294-
# DEBUG_ASSERT_ENABLED 0x01
295-
# DEBUG_PRINT_ENABLED 0x02
296-
# DEBUG_CODE_ENABLED 0x04
297-
# CLEAR_MEMORY_ENABLED 0x08
298-
# ASSERT_BREAKPOINT_ENABLED 0x10
299-
# ASSERT_DEADLOOP_ENABLED 0x20
300-
!if $(TARGET) == RELEASE
301-
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x21
302-
!else
303-
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
304-
!endif
308+
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|$(DEBUG_PROPERTY_MASK)
305309

306310
# DEBUG_INIT 0x00000001 // Initialization
307311
# DEBUG_WARN 0x00000002 // Warnings
@@ -594,7 +598,10 @@
594598
#
595599
# ACPI Support
596600
#
597-
MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
601+
MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf {
602+
<PcdsFixedAtBuild>
603+
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|$(DEBUG_PROPERTY_MASK) & ~0x04
604+
}
598605
MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
599606
Platform/RaspberryPi/RPi5/AcpiTables/AcpiTables.inf
600607

0 commit comments

Comments
 (0)