From f71b163020d7f97e0533c412d175bc642f628ef6 Mon Sep 17 00:00:00 2001 From: Hess Chen Date: Wed, 23 Aug 2017 13:53:36 +0800 Subject: BaseTools/UPT: Fix UNI file name issue Fix the issue of creating duplicate UNI file names Fix the issue of removing packages Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Yonghong Zhu --- BaseTools/Source/Python/UPT/Object/POM/ModuleObject.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'BaseTools/Source/Python/UPT/Object/POM/ModuleObject.py') diff --git a/BaseTools/Source/Python/UPT/Object/POM/ModuleObject.py b/BaseTools/Source/Python/UPT/Object/POM/ModuleObject.py index e85b8fa010..4052d28835 100644 --- a/BaseTools/Source/Python/UPT/Object/POM/ModuleObject.py +++ b/BaseTools/Source/Python/UPT/Object/POM/ModuleObject.py @@ -1,7 +1,7 @@ ## @file # This file is used to define a class object to describe a module # -# Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.
+# Copyright (c) 2011 - 2017, Intel Corporation. All rights reserved.
# # This program and the accompanying materials are licensed and made available # under the terms and conditions of the BSD License which accompanies this @@ -105,6 +105,7 @@ class ModuleHeaderObject(IdentificationObject, CommonHeaderObject, BinaryHeaderO self.PiSpecificationVersion = '' self.UefiSpecificationVersion = '' self.UNIFlag = False + self.ModuleUniFile = '' # # SpecObject # @@ -208,6 +209,11 @@ class ModuleHeaderObject(IdentificationObject, CommonHeaderObject, BinaryHeaderO def GetSupArchList(self): return self.SupArchList + def SetModuleUniFile(self, ModuleUniFile): + self.ModuleUniFile = ModuleUniFile + + def GetModuleUniFile(self): + return self.ModuleUniFile ## # SourceFileObject # -- cgit v1.2.3