diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-04-13 14:37:40 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-06-24 22:59:11 +0800 |
commit | 78bcd52abb1444c4dec7536d35f1a89dfe7e3625 (patch) | |
tree | 460c0c5711e488aff9da98fa36cf59a7922eb66d /BaseTools/Source/Python | |
parent | bb427a23ab1d047ffcf72828f6836ea64d49f6ac (diff) | |
download | edk2-78bcd52abb1444c4dec7536d35f1a89dfe7e3625.tar.gz edk2-78bcd52abb1444c4dec7536d35f1a89dfe7e3625.tar.bz2 edk2-78bcd52abb1444c4dec7536d35f1a89dfe7e3625.zip |
BaseTools: Copy "MODULE_UNI_FILE" file into OUTPUT directory
Current the "MODULE_UNI_FILE" item defined in the [Defines] section will
be copied into As Built INF file, but tool doesn't copy the real file into
same directory with the As Built INF file.
Cc: Liming Gao <liming.gao@intel.com>
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')
-rw-r--r-- | BaseTools/Source/Python/AutoGen/AutoGen.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py b/BaseTools/Source/Python/AutoGen/AutoGen.py index 356eb21310..e05bf479ff 100644 --- a/BaseTools/Source/Python/AutoGen/AutoGen.py +++ b/BaseTools/Source/Python/AutoGen/AutoGen.py @@ -3855,6 +3855,11 @@ class ModuleAutoGen(AutoGen): 'libraryclasses_item' : []
}
+ if 'MODULE_UNI_FILE' in MDefs:
+ UNIFile = os.path.join(self.MetaFile.Dir, MDefs['MODULE_UNI_FILE'])
+ if os.path.isfile(UNIFile):
+ shutil.copy2(UNIFile, self.OutputDir)
+
if self.AutoGenVersion > int(gInfSpecVersion, 0):
AsBuiltInfDict['module_inf_version'] = '0x%08x' % self.AutoGenVersion
else:
|