diff options
author | Feng, Bob C <bob.c.feng@intel.com> | 2018-02-28 13:59:19 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2018-02-28 16:45:55 +0800 |
commit | 0a57a9782bef8ee11d8de937c149eb7ff22647c9 (patch) | |
tree | 5d74eb018b42973707e7dfb827d8de139875abf0 /BaseTools/Source/Python/GenFds/GenFds.py | |
parent | 06140766c13fb9288a922990ffde77fca93fc71d (diff) | |
download | edk2-0a57a9782bef8ee11d8de937c149eb7ff22647c9.tar.gz edk2-0a57a9782bef8ee11d8de937c149eb7ff22647c9.tar.bz2 edk2-0a57a9782bef8ee11d8de937c149eb7ff22647c9.zip |
BaseTools: Improve build performance of structure PCD value generation
Add cache for building PcdValueInit.c. If PcdValueInit.c is not changed,
it will not be regenerated.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/GenFds/GenFds.py')
-rw-r--r-- | BaseTools/Source/Python/GenFds/GenFds.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/GenFds/GenFds.py b/BaseTools/Source/Python/GenFds/GenFds.py index dcba9f24cb..cd705630a3 100644 --- a/BaseTools/Source/Python/GenFds/GenFds.py +++ b/BaseTools/Source/Python/GenFds/GenFds.py @@ -326,6 +326,7 @@ def main(): FvObj.FvRegionInFD = RegionObj.Size
RegionObj.BlockInfoOfRegion(FdObj.BlockSizeList, FvObj)
+ GlobalData.BuildOptionPcd = Options.OptionPcd if Options.OptionPcd else {}
"""Call GenFds"""
GenFds.GenFd('', FdfParserObj, BuildWorkSpace, ArchList)
|