summaryrefslogtreecommitdiff
path: root/ArmPlatformPkg/Documentation/patches/BaseTools-GenC-Cast-Pcd-Types.patch
diff options
context:
space:
mode:
Diffstat (limited to 'ArmPlatformPkg/Documentation/patches/BaseTools-GenC-Cast-Pcd-Types.patch')
-rwxr-xr-xArmPlatformPkg/Documentation/patches/BaseTools-GenC-Cast-Pcd-Types.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/ArmPlatformPkg/Documentation/patches/BaseTools-GenC-Cast-Pcd-Types.patch b/ArmPlatformPkg/Documentation/patches/BaseTools-GenC-Cast-Pcd-Types.patch
new file mode 100755
index 0000000000..cf40d930cf
--- /dev/null
+++ b/ArmPlatformPkg/Documentation/patches/BaseTools-GenC-Cast-Pcd-Types.patch
@@ -0,0 +1,21 @@
+diff --git a/BaseTools/Source/Python/AutoGen/GenC.py b/BaseTools/Source/Python/AutoGen/GenC.py
+index e6e8847..6a78d01 100644
+--- a/BaseTools/Source/Python/AutoGen/GenC.py
++++ b/BaseTools/Source/Python/AutoGen/GenC.py
+@@ -67,11 +67,11 @@ typedef UINT8 SKU_ID;
+
+ #define PCD_TYPE_SHIFT 28
+
+-#define PCD_TYPE_DATA (0x0 << PCD_TYPE_SHIFT)
+-#define PCD_TYPE_HII (0x8 << PCD_TYPE_SHIFT)
+-#define PCD_TYPE_VPD (0x4 << PCD_TYPE_SHIFT)
+-#define PCD_TYPE_SKU_ENABLED (0x2 << PCD_TYPE_SHIFT)
+-#define PCD_TYPE_STRING (0x1 << PCD_TYPE_SHIFT)
++#define PCD_TYPE_DATA (0x0u << PCD_TYPE_SHIFT)
++#define PCD_TYPE_HII (0x8u << PCD_TYPE_SHIFT)
++#define PCD_TYPE_VPD (0x4u << PCD_TYPE_SHIFT)
++#define PCD_TYPE_SKU_ENABLED (0x2u << PCD_TYPE_SHIFT)
++#define PCD_TYPE_STRING (0x1u << PCD_TYPE_SHIFT)
+
+ #define PCD_TYPE_ALL_SET (PCD_TYPE_DATA | PCD_TYPE_HII | PCD_TYPE_VPD | PCD_TYPE_SKU_ENABLED | PCD_TYPE_STRING)
+