]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/AppPkg.dsc
AppPkg: introduce OrderedCollectionTest
[mirror_edk2.git] / AppPkg / AppPkg.dsc
index 23ebf4773391aa954cefde561949f189adc48cd0..7832bce8153a4d742cbdcb968ea9aef7eae8544a 100644 (file)
   BUILD_TARGETS                  = DEBUG|RELEASE\r
   SKUID_IDENTIFIER               = DEFAULT\r
 \r
+#\r
+#  Debug output control\r
+#\r
+  DEFINE DEBUG_ENABLE_OUTPUT      = FALSE       # Set to TRUE to enable debug output\r
+  DEFINE DEBUG_PRINT_ERROR_LEVEL  = 0x80000040  # Flags to control amount of debug output\r
+  DEFINE DEBUG_PROPERTY_MASK      = 0\r
+\r
 [PcdsFeatureFlag]\r
 \r
 [PcdsFixedAtBuild]\r
-  gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x00\r
-  gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000040\r
+  gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|$(DEBUG_PROPERTY_MASK)\r
+  gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|$(DEBUG_PRINT_ERROR_LEVEL)\r
 \r
 [PcdsFixedAtBuild.IPF]\r
 \r
   MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
   UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf\r
   UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf\r
-  #\r
-  # To enable debugging:\r
-  #   Enable ONE of the following DebugLib instances, as appropriate for your platform.\r
-  #\r
-  DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf\r
-#  DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf\r
+  !if $(DEBUG_ENABLE_OUTPUT)\r
+    DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf\r
+    DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf\r
+  !else   ## DEBUG_ENABLE_OUTPUT\r
+    DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf\r
+  !endif  ## DEBUG_ENABLE_OUTPUT\r
 \r
   DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
   PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf\r
   AppPkg/Applications/Main/Main.inf          # Simple invocation. No other LibC functions.\r
   AppPkg/Applications/Enquire/Enquire.inf    #\r
 \r
+#### A simple fuzzer for OrderedCollectionLib, in particular for\r
+#### BaseOrderedCollectionRedBlackTreeLib.\r
+  AppPkg/Applications/OrderedCollectionTest/OrderedCollectionTest.inf {\r
+    <LibraryClasses>\r
+      OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf\r
+      DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf\r
+      DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf\r
+    <PcdsFeatureFlag>\r
+      gEfiMdePkgTokenSpaceGuid.PcdValidateOrderedCollection|TRUE\r
+    <PcdsFixedAtBuild>\r
+      gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F\r
+      gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80400040\r
+  }\r
+\r
 #### After extracting the Python distribution, un-comment the following line to build Python.\r
 #  AppPkg/Applications/Python/PythonCore.inf\r
 \r