BaseTools: Update UPT tool to support multiple workspaces
Update UPT to refer MultipleWorkspace class to convert the file path from WORKSPACE and PACKAGES_PATH. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hesheng Chen <hesheng.chen@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18580 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -37,6 +37,7 @@ from Logger import StringTable as ST
|
||||
from Library.Misc import CreateDirectory
|
||||
from Library.Misc import RemoveDirectory
|
||||
from Core.FileHook import __FileHookOpen__
|
||||
from Common.MultipleWorkspace import MultipleWorkspace as mws
|
||||
|
||||
|
||||
class PackageFile:
|
||||
@ -203,8 +204,11 @@ class PackageFile:
|
||||
# @param Files: the files to pack
|
||||
#
|
||||
def PackFiles(self, Files):
|
||||
for File1 in Files:
|
||||
self.PackFile(File1)
|
||||
for File in Files:
|
||||
Cwd = os.getcwd()
|
||||
os.chdir(mws.getWs(mws.WORKSPACE, File))
|
||||
self.PackFile(File)
|
||||
os.chdir(Cwd)
|
||||
|
||||
## Pack the file
|
||||
#
|
||||
|
Reference in New Issue
Block a user