mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
BaseTools:Expression.py Add Assertion for PCD with value {}
This adds an assertion to the PCD class in the Expression.py file to check for zero-byte PCDs. Signed-off-by: Doug Flick <dougflick@microsoft.com>
This commit is contained in:
parent
a1b623b938
commit
1805068b5e
1 changed files with 2 additions and 0 deletions
|
|
@ -1027,6 +1027,8 @@ class ValueExpressionEx(ValueExpression):
|
|||
|
||||
if Size > 0:
|
||||
PcdValue = '{' + ', '.join(AllPcdValueList) + '}'
|
||||
else:
|
||||
raise BadExpression("PCD with value '%s' cannot be used. Please provide a valid value of at least one byte." % (self.PcdValue))
|
||||
else:
|
||||
raise BadExpression("Type: %s, Value: %s, %s"%(self.PcdType, PcdValue, Value))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue