From 6b17c11b6f45b4196adb8a9fcbdba5576a0d872b Mon Sep 17 00:00:00 2001 From: Yonghong Zhu Date: Wed, 20 Apr 2016 09:32:52 +0800 Subject: BaseTools: add the support for --pcd feature to patch the binary efi the original --pcd feature can override the Pcd value when build the source driver, while it missed the binary driver. this patch add the support to patch the binary efi for --pcd feature. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu Reviewed-by: Liming Gao --- BaseTools/Source/Python/AutoGen/GenMake.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'BaseTools/Source/Python/AutoGen/GenMake.py') diff --git a/BaseTools/Source/Python/AutoGen/GenMake.py b/BaseTools/Source/Python/AutoGen/GenMake.py index 8913a72111..475b794fe8 100644 --- a/BaseTools/Source/Python/AutoGen/GenMake.py +++ b/BaseTools/Source/Python/AutoGen/GenMake.py @@ -1427,6 +1427,11 @@ class TopLevelMakefile(BuildFile): if GlobalData.gIgnoreSource: ExtraOption += " --ignore-sources" + if GlobalData.BuildOptionPcd: + for index, option in enumerate(GlobalData.gCommand): + if "--pcd" == option and GlobalData.gCommand[index+1]: + ExtraOption += " --pcd " + GlobalData.gCommand[index+1] + MakefileName = self._FILE_NAME_[self._FileType] SubBuildCommandList = [] for A in PlatformInfo.ArchList: -- cgit v1.2.3