/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/ |
RmPkg.py | 47 # @param WorkspaceDir: Workspace Dir
49 def CheckDpDepex(Dep, Guid, Version, WorkspaceDir):
66 LogFilePath = os.path.normpath(os.path.join(WorkspaceDir, GlobalData.gINVALID_MODULE_FILE))
104 # @param WorkspaceDir: Workspace Dir
106 def GetCurrentFileList(DataBase, Guid, Version, WorkspaceDir):
109 RootDir = os.path.normpath(os.path.join(WorkspaceDir, Dir))
135 WorkspaceDir = GlobalData.gWORKSPACE
144 StoredDistFile, Guid, Version = GetInstalledDpInfo(Options.DistributionFile, Dep, DataBase, WorkspaceDir)
149 CheckDpDepex(Dep, Guid, Version, WorkspaceDir)
154 RemoveDist(Guid, Version, StoredDistFile, DataBase, WorkspaceDir, Options.Yes) [all...] |
MkPkg.py | 81 WorkspaceDir = GlobalData.gWORKSPACE
125 chdir(WorkspaceDir)
140 FileFullPath = mws.join(WorkspaceDir, FromFile)
164 DistPkg.GetDistributionPackage(WorkspaceDir, Options.PackageFileList, \
168 FileFullPath = os.path.normpath(os.path.join(WorkspaceDir, File))
187 chdir(WorkspaceDir)
259 WorkspaceDir = GlobalData.gWORKSPACE
260 WorkspaceDir = os.path.normpath(WorkspaceDir)
268 Path = mws.join(WorkspaceDir, Item) [all...] |
InstallPkg.py | 62 # @param WorkspaceDir: Workspace Directory
66 def InstallNewPackage(WorkspaceDir, Path, CustomPath = False):
74 FullPath = os.path.normpath(os.path.join(WorkspaceDir, Path))
85 return InstallNewPackage(WorkspaceDir, Input, False)
89 # @param WorkspaceDir: Workspace Directory
93 def InstallNewModule(WorkspaceDir, Path, PathList = None):
98 FullPath = os.path.normpath(os.path.join(WorkspaceDir, Path))
111 return InstallNewModule(WorkspaceDir, Input, PathList)
116 # @param WorkspaceDir: Workspace Direction
119 def InstallNewFile(WorkspaceDir, File): [all...] |
ReplacePkg.py | 51 WorkspaceDir = GlobalData.gWORKSPACE
53 DistPkg, ContentZipFile, DpPkgFileName, DistFile = UnZipDp(WorkspaceDir, Options.PackFileToReplace)
56 Dep, DataBase, WorkspaceDir)
66 RemoveDist(OrigDpGuid, OrigDpVersion, StoredDistFile, DataBase, WorkspaceDir, Options.Yes)
71 InstallDp(DistPkg, DpPkgFileName, ContentZipFile, Options, Dep, WorkspaceDir, DataBase)
|
UPT.py | 184 WorkspaceDir = GlobalData.gWORKSPACE
188 Mgr = FileHook.RecoverMgr(WorkspaceDir)
191 GlobalData.gDB = IpiDatabase(os.path.normpath(os.path.join(WorkspaceDir, \
192 "Conf/DistributionPackageDatabase.db")), WorkspaceDir)
206 if not os.path.exists(os.path.join(WorkspaceDir, Opt.PackageInformationDataFile)):
209 Opt.PackageInformationDataFile = os.path.join(WorkspaceDir, Opt.PackageInformationDataFile)
220 AbsPath = GetFullPathDist(Opt.PackFileToInstall, WorkspaceDir)
261 AbsPath = GetFullPathDist(Opt.PackFileToReplace, WorkspaceDir)
302 # @param WorkspaceDir: Workspace Directory
305 def GetFullPathDist(DistFile, WorkspaceDir): [all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Common/ |
EdkIIWorkspace.py | 24 # Collect WorkspaceDir from the environment, the Verbose command line flag, and detect an icon bitmap file.
47 self.WorkspaceDir = os.path.realpath(os.environ.get('WORKSPACE'))
48 (Drive, Path) = os.path.splitdrive(self.WorkspaceDir)
52 self.WorkspaceDir = Drive + Path
54 self.WorkspaceDir = Drive.upper() + Path
103 if FileName.find(self.WorkspaceDir) != 0:
105 return FileName.replace (self.WorkspaceDir, '').strip('\\').strip('/')
116 return os.path.realpath(mws.join(self.WorkspaceDir,FileName))
127 return os.path.realpath(FileName.replace(TAB_WORKSPACE, self.WorkspaceDir))
|
FdfClassObject.py | 38 # @param WorkspaceDir: Input value for current workspace directory, default is None
41 def __init__(self, Filename = None, IsToDatabase = False, WorkspaceDir = None, Database = None):
42 self.WorkspaceDir = WorkspaceDir
|
DscClassObject.py | 81 # @param WorkspaceDir: Input value for current workspace directory, default is None
89 # @var WorkspaceDir: To store value for WorkspaceDir
95 def __init__(self, Filename=None, IsToDatabase=False, IsToPlatform=False, WorkspaceDir=None, Database=None):
99 self.WorkspaceDir = WorkspaceDir
282 Filename = CheckFileExist(self.WorkspaceDir, IncludeFile[0], ContainerFile, TAB_BUILD_OPTIONS, '', IncludeFile[2])
337 Filename = CheckFileExist(self.WorkspaceDir, IncludeFile[0], ContainerFile, TAB_SKUIDS, '', IncludeFile[2])
388 Filename = CheckFileExist(self.WorkspaceDir, IncludeFile[0], ContainerFile, TAB_LIBRARIES, '', IncludeFile[2])
431 Filename = CheckFileExist(self.WorkspaceDir, IncludeFile[0], ContainerFile, TAB_LIBRARY_CLASSES, '', IncludeFile[2]) [all...] |
String.py | 639 # @param WorkspaceDir: Current workspace dir
646 def CheckFileExist(WorkspaceDir, CheckFilename, ContainerFilename, SectionName, Line, LineNo= -1):
649 CheckFile = WorkspaceFile(WorkspaceDir, CheckFilename)
705 # @param WorkspaceDir: Workspace dir
710 def WorkspaceFile(WorkspaceDir, Filename):
711 return mws.join(NormPath(WorkspaceDir), NormPath(Filename))
|
DecClassObject.py | 75 # @param WorkspaceDir: Input value for current workspace directory, default is None
81 # @var WorkspaceDir: To store value for WorkspaceDir
86 def __init__(self, Filename=None, IsToDatabase=False, IsToPackage=False, WorkspaceDir=None, Database=None, SupArchList=DataType.ARCH_LIST):
90 self.WorkspaceDir = WorkspaceDir
|
Parsing.py | 252 def GetLibraryClass(Item, ContainerFile, WorkspaceDir, LineNo = -1):
259 CheckFileExist(WorkspaceDir, List[1], ContainerFile, 'LibraryClasses', Item[0], LineNo)
274 def GetLibraryClassOfInf(Item, ContainerFile, WorkspaceDir, LineNo = -1):
282 CheckFileExist(WorkspaceDir, ItemList[1], ContainerFile, 'LibraryClasses', Item[0], LineNo)
[all...] |
EdkIIWorkspaceBuild.py | 404 # @param WorkspaceDir: Input value for current WorkspaceDir
406 # @var WorkspaceDir: To store value for WorkspaceDir
409 # @var BuildTarget: To store value for WorkspaceDir, selection scope is in below list
432 def __init__(self, ActivePlatform, WorkspaceDir):
433 self.WorkspaceDir = NormPath(WorkspaceDir)
468 self.DscDatabase[self.DscFileName] = Dsc(File, False, True, self.WorkspaceDir, self.Db)
[all...] |
InfClassObject.py | 158 # @param WorkspaceDir: Input value for current workspace directory, default is None
163 # @var WorkspaceDir: To store value for WorkspaceDir
167 def __init__(self, Filename=None, IsToDatabase=False, IsToModule=False, WorkspaceDir=None, Database=None, SupArchList=DataType.ARCH_LIST):
171 self.WorkspaceDir = WorkspaceDir
754 (LibClassName, LibClassIns, Pcd, SupModelList) = GetLibraryClassOfInf([Record[0], Record[4]], ContainerFile, self.WorkspaceDir, Record[2])
[all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Core/ |
DistributionPackageClass.py | 109 # @param WorkspaceDir: WorkspaceDir
113 def GetDistributionPackage(self, WorkspaceDir, PackageList, ModuleList):
114 # Backup WorkspaceDir
115 Root = WorkspaceDir
123 WorkspaceDir = mws.getWs(Root, PackageFile)
124 DecObj = DecPomAlignment(PackageFileFullPath, WorkspaceDir, CheckMulDec=True)
147 ModuleObj = InfPomAlignment(Filename, WorkspaceDir, PackageObj.GetPackagePath())
175 WorkspaceDir = mws.getWs(Root, ModuleFile)
178 ModuleObj = InfPomAlignment(ModuleFileFullPath, WorkspaceDir)
[all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/Python/build/ |
build.py | 101 WorkspaceDir = os.path.normcase(os.path.normpath(os.environ["WORKSPACE"]))
102 if not os.path.exists(WorkspaceDir):
103 EdkLogger.error("build", FILE_NOT_FOUND, "WORKSPACE doesn't exist", ExtraData="%s" % WorkspaceDir)
104 elif ' ' in WorkspaceDir:
106 ExtraData=WorkspaceDir)
107 os.environ["WORKSPACE"] = WorkspaceDir
111 mws.setWs(WorkspaceDir, PackagesPath)
117 os.environ["ECP_SOURCE"] = mws.join(WorkspaceDir, GlobalData.gEdkCompatibilityPkg)
162 if EfiSourceDir.upper().find(WorkspaceDir.upper()) != 0:
164 ExtraData="WORKSPACE = %s\n EFI_SOURCE = %s" % (WorkspaceDir, EfiSourceDir)) [all...] |
BuildReport.py | [all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Ecc/ |
Ecc.py | 72 WorkspaceDir = os.path.normcase(os.path.normpath(os.environ["WORKSPACE"]))
73 os.environ["WORKSPACE"] = WorkspaceDir
77 mws.setWs(WorkspaceDir, PackagesPath)
80 os.environ["ECP_SOURCE"] = mws.join(WorkspaceDir, GlobalData.gEdkCompatibilityPkg)
97 GlobalData.gWorkspace = WorkspaceDir
102 GlobalData.gGlobalDefines["WORKSPACE"] = WorkspaceDir
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Library/ |
Misc.py | 585 WorkspaceDir = os.path.normpath(environ["WORKSPACE"])
586 if not os.path.exists(WorkspaceDir):
590 ExtraData="%s" % WorkspaceDir)
592 WorkspaceDir = os.getcwd()
594 if WorkspaceDir[-1] == ':':
595 WorkspaceDir += os.sep
598 mws.setWs(WorkspaceDir, PackagesPath)
600 return WorkspaceDir, mws.PACKAGES_PATH
[all...] |
Parsing.py | 80 def GetLibraryClass(Item, ContainerFile, WorkspaceDir, LineNo= -1):
89 CheckFileExist(WorkspaceDir, List[1], ContainerFile, \
105 def GetLibraryClassOfInf(Item, ContainerFile, WorkspaceDir, LineNo= -1):
117 CheckFileExist(WorkspaceDir, ItemList[1], ContainerFile, \
829 WorkspaceDir = GlobalData.gWORKSPACE
831 for PkgRoot in [WorkspaceDir] + PackageDir:
[all...] |
String.py | 546 # @param WorkspaceDir: Current workspace dir
553 def CheckFileExist(WorkspaceDir, CheckFilename, ContainerFilename, SectionName, Line, LineNo= -1):
556 CheckFile = WorkspaceFile(WorkspaceDir, CheckFilename)
609 # @param WorkspaceDir: Workspace dir
612 def WorkspaceFile(WorkspaceDir, Filename):
613 return os.path.join(NormPath(WorkspaceDir), NormPath(Filename))
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Parser/ |
InfParser.py | 79 # @param WorkspaceDir: Input value for current workspace directory,
84 def __init__(self, Filename = None, WorkspaceDir = None):
91 self.WorkspaceDir = WorkspaceDir
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/PomAdapter/ |
DecPomAlignment.py | 98 def __init__(self, Filename, WorkspaceDir = None, CheckMulDec = False):
101 self.WorkspaceDir = WorkspaceDir
133 self.SetPackagePath(GetRelativePath(Path, self.WorkspaceDir))
134 self.SetCombinePath(GetRelativePath(Filename, self.WorkspaceDir))
[all...] |
InfPomAlignment.py | 75 self.WorkspaceDir = " "
152 self.WorkspaceDir = " "
[all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/Python/AutoGen/ |
AutoGen.py | 220 # @param WorkspaceDir Root directory of workspace
234 def _Init(self, WorkspaceDir, ActivePlatform, Target, Toolchain, ArchList, MetaFileDb,
245 self.WorkspaceDir = WorkspaceDir
263 os.chdir(self.WorkspaceDir)
456 PathClassObj = PathClass(FfsFile.InfFileName, self.WorkspaceDir)
[all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/GenMetaFile/ |
GenInfFile.py | 462 WorkspaceDir = GlobalData.gWORKSPACE
488 RelaPath = GetRelativePath(Path, WorkspaceDir)
[all...] |