summaryrefslogtreecommitdiffstats
path: root/ArmPlatformPkg
diff options
context:
space:
mode:
authorShi, Steven <steven.shi@intel.com>2019-06-17 16:43:58 +0800
committerFeng, Bob C <bob.c.feng@intel.com>2019-06-17 17:00:46 +0800
commit2378ea55151eef8284b4cf35e95b058b0e591ea0 (patch)
treec22899bb4fb205d019342ec8876b516991c4dc0d /ArmPlatformPkg
parent17b082ce67ded226916438fa2979b66472e87638 (diff)
downloadedk2-2378ea55151eef8284b4cf35e95b058b0e591ea0.tar.gz
edk2-2378ea55151eef8284b4cf35e95b058b0e591ea0.tar.bz2
edk2-2378ea55151eef8284b4cf35e95b058b0e591ea0.zip
BaseTools:Introduce CopyFileOnChange() function to copy cache files
BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1894 Basetool need a CopyFileOnChange() function to avoid cache file writing race in multi-thread build. Some platforms build fail with file IO writing race issue when the build cache is enabled to store cache files in multi-threads. This is because common same library cache files (e.g. some libs in MdePkg) can be stored by many different driver modules' build threads at same time. Current build cache need a function to check whether the same cache file already exist, and only copy source file if it is different from the destination file. This patch introduces an atomic copy function to avoid duplicated cache files copy. Cc: Liming Gao <liming.gao@intel.com> Cc: Bob Feng <bob.c.feng@intel.com> Cc: Christian Rodriguez <christian.rodriguez@intel.com> Signed-off-by: Steven Shi <steven.shi@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'ArmPlatformPkg')
0 files changed, 0 insertions, 0 deletions