mirror_edk2/BaseTools/Source/Python
Yunhua Feng 0b836855fb BaseTools: Sometime write file not immediate to disk
BZ: https://bugzilla.tianocore.org/process_bug.cgi

On Windows OS, sometime the generated file is not immediate saved to disk.
When run nmake, prompt AutoGen.h not found, and stop build.
Below blog shows Write-Replace to fix it. This patch uses this way to write
temp file, then rename the temp file to the real file.
https://blog.gocept.com/2013/07/15/reliable-file-updates-with-python/

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
2019-04-22 10:05:52 +08:00
..
AutoGen BaseTools:Enable the /MP option of MSVC compiler 2019-04-16 13:14:13 +08:00
BPDG BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
build BaseTools: Hash false success with back to back builds 2019-04-16 13:14:15 +08:00
Capsule BaseTools:Coding problems cause can not encode FMP Auth Header 2019-04-16 13:14:14 +08:00
Common BaseTools: Sometime write file not immediate to disk 2019-04-22 10:05:52 +08:00
CommonDataClass BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Ecc BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Eot BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
GenFds BaseTools: Fixed issue in MultiThread Genfds function 2019-04-10 13:32:10 +08:00
GenPatchPcdTable BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
PatchPcdValue BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Pkcs7Sign BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Rsa2048Sha256Sign BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Table BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
TargetTool BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Trim BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
UPT BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Workspace BaseTools: Fixed issue in MultiThread Genfds function 2019-04-10 13:32:10 +08:00
GNUmakefile BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Makefile BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
sitecustomize.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00