]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/MdeModulePkg.dec
1. Add three sample PCD in HelloWorld application for user reference of PCD usage.
[mirror_edk2.git] / MdeModulePkg / MdeModulePkg.dec
index 50882937ca01f654570c31957dadc309dc08ec8a..7dcb1f133b9f047e6d759231d87efb06dca245af 100644 (file)
   \r
   ## IF TRUE, the PeiCore will handle the framework FvHob and install FvInfo PPI for it.\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdFrameworkFvHobCompatibilitySupport|FALSE|BOOLEAN|0x00012009\r
+  \r
+  ##\r
+  #  IF TRUE, HelloWorld Application will print the verbose information.\r
+  #  This PCD is a sample to explain FeatureFlag PCD usage.\r
+  ##\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdHelloWorldPrintEnable|TRUE|BOOLEAN|0x0001200a\r
 \r
 [PcdsFixedAtBuild.common]\r
   ## Dynamic type PCD can be registered callback function for Pcd setting action.\r
 \r
   ## Error level for hardware recorder.\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdHardwareErrorRecordLevel|1|UINT16|0x40000002\r
+  \r
+  ##\r
+  #  This PCD defines the print string.\r
+  #  This PCD is a sample to explain FixedAtBuild String PCD usage.\r
+  ##\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdHelloWorldPrintString|L"UEFI Hello World!\n"|VOID*|0x40000004\r
+\r
+  ##\r
+  #  This PCD defines the times to print hello world string.\r
+  #  This PCD is a sample to explain FixedAtBuild UINT32 PCD usage.\r
+  ##\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdHelloWorldPrintTimes|1|UINT32|0x40000005\r
 \r
 [PcdsFixedAtBuild.IA32]\r
   ## Default EFI boot path name for IA32 architecture, this path is relative to \r
   ## Error level for hardware recorder.\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdHardwareErrorRecordLevel|1|UINT16|0x40000002\r
 \r
+  ##\r
+  #  This PCD defines the print string.\r
+  #  This PCD is a sample to explain Dynamic PCD usage.\r
+  ##\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdHelloWorldPrintString|L"UEFI Hello World!\n"|VOID*|0x40000004\r
+\r
+  ##\r
+  #  This PCD defines the times to print hello world string.\r
+  #  This PCD is a sample to explain Dynamic UINT32 PCD usage.\r
+  ##\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdHelloWorldPrintTimes|1|UINT32|0x40000005\r
+\r
 [PcdsPatchableInModule.common]\r
   ## Maximun number of performance log entries during PEI phase.\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdMaxPeiPerformanceLogEntries|40|UINT8|0x0001002f\r
   ## Error level for hardware recorder.\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdHardwareErrorRecordLevel|1|UINT16|0x40000002\r
 \r
+  ##\r
+  #  This PCD defines the times to print hello world string.\r
+  #  This PCD is a sample to explain Patchable UINT32 PCD usage.\r
+  ##\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdHelloWorldPrintTimes|1|UINT32|0x40000005\r
+\r
 [PcdsFeatureFlag.IA32]\r
   ## If TRUE, the DXE IPL will load a 64-bit DxeCore.\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|TRUE|BOOLEAN|0x0001003b\r