Revert "OvmfPkg: Pass command-line args to PR Eval"
A change was made to the following pytool releases to prevent a
platform from needing to include additional logic to consider
command-line build variable parameters for PR evaluation.
- edk2-pytool-library v0.23.4
- edk2-pytool-extensions v0.29.11
Commit 33e58db was added as a workaround, but that is no longer
needed after these pytool updates, so revert it.
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
This commit is contained in:
committed by
mergify[bot]
parent
b61c476329
commit
965a754f19
@@ -110,21 +110,8 @@ class SettingsManager(UpdateSettingsManager, SetupSettingsManager, PrEvalSetting
|
|||||||
|
|
||||||
The tuple should be (<workspace relative path to dsc file>, <input dictionary of dsc key value pairs>)
|
The tuple should be (<workspace relative path to dsc file>, <input dictionary of dsc key value pairs>)
|
||||||
'''
|
'''
|
||||||
import re
|
|
||||||
import sys
|
|
||||||
|
|
||||||
cmd_line_input_vars = {}
|
|
||||||
for arg in sys.argv:
|
|
||||||
if "=" in arg:
|
|
||||||
key, value = arg.split("=", 1)
|
|
||||||
if key.startswith("-"):
|
|
||||||
continue
|
|
||||||
if re.match(r"BLD_.+_", key):
|
|
||||||
key = re.sub(r"^BLD_.+?_", "", key, count=1)
|
|
||||||
cmd_line_input_vars[key] = value
|
|
||||||
|
|
||||||
dsc = CommonPlatform.GetDscName(",".join(self.ActualArchitectures))
|
dsc = CommonPlatform.GetDscName(",".join(self.ActualArchitectures))
|
||||||
return (f"OvmfPkg/{dsc}", cmd_line_input_vars)
|
return (f"OvmfPkg/{dsc}", {})
|
||||||
|
|
||||||
|
|
||||||
# ####################################################################################### #
|
# ####################################################################################### #
|
||||||
|
|||||||
Reference in New Issue
Block a user