diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2016-04-20 09:32:52 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2016-04-20 09:32:52 +0800 |
commit | 6b17c11b6f45b4196adb8a9fcbdba5576a0d872b (patch) | |
tree | 720ed5a1415d62bfb39be77463037adcffffd9a5 /BaseTools/Source/Python/AutoGen | |
parent | 2a29017e3e305a10ee1003354c0d0c037923341d (diff) | |
download | edk2-platforms-6b17c11b6f45b4196adb8a9fcbdba5576a0d872b.tar.xz |
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 <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen')
-rw-r--r-- | BaseTools/Source/Python/AutoGen/GenMake.py | 5 |
1 files changed, 5 insertions, 0 deletions
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:
|