summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Common
diff options
context:
space:
mode:
authorCarsey, Jaben <jaben.carsey@intel.com>2018-04-28 06:32:47 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-05-04 13:03:11 +0800
commit31ff1c443e25d6bff758bdcd9a248a907cff651b (patch)
tree77b6b5a7e37d8c97cb52b2808f8e06e30384a2fb /BaseTools/Source/Python/Common
parent6c2d8cb238c8d076fd177a30b5e1e3c5e0912145 (diff)
downloadedk2-31ff1c443e25d6bff758bdcd9a248a907cff651b.tar.gz
edk2-31ff1c443e25d6bff758bdcd9a248a907cff651b.tar.bz2
edk2-31ff1c443e25d6bff758bdcd9a248a907cff651b.zip
BaseTools: AutoGen - add Opcode constants
add constants for dependency expression opcode strings use these new opcode string constants Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Common')
-rw-r--r--BaseTools/Source/Python/Common/DataType.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/Common/DataType.py b/BaseTools/Source/Python/Common/DataType.py
index 50d582a3f6..56f5bfedd6 100644
--- a/BaseTools/Source/Python/Common/DataType.py
+++ b/BaseTools/Source/Python/Common/DataType.py
@@ -487,6 +487,18 @@ DATABASE_PATH = ":memory:" #"BuildDatabase.db"
# used by ECC
MODIFIER_SET = {'IN', 'OUT', 'OPTIONAL', 'UNALIGNED', 'EFI_RUNTIMESERVICE', 'EFI_BOOTSERVICE', 'EFIAPI'}
+# Dependency Opcodes
+DEPEX_OPCODE_BEFORE = "BEFORE"
+DEPEX_OPCODE_AFTER = "AFTER"
+DEPEX_OPCODE_PUSH = "PUSH"
+DEPEX_OPCODE_AND = "AND"
+DEPEX_OPCODE_OR = "OR"
+DEPEX_OPCODE_NOT = "NOT"
+DEPEX_OPCODE_END = "END"
+DEPEX_OPCODE_SOR = "SOR"
+DEPEX_OPCODE_TRUE = "TRUE"
+DEPEX_OPCODE_FALSE = "FALSE"
+
# Dependency Expression
DEPEX_SUPPORTED_OPCODE_SET = {"BEFORE", "AFTER", "PUSH", "AND", "OR", "NOT", "END", "SOR", "TRUE", "FALSE", '(', ')'}