Home
last modified time | relevance | path

Searched refs:Path (Results 1 – 25 of 140) sorted by relevance

123456

/device/linaro/bootloader/edk2/BaseTools/Source/Python/Common/
DMultipleWorkspace.py42 def convertPackagePath(cls, Ws, Path): argument
43 if str(os.path.normcase (Path)).startswith(Ws):
44 return os.path.join(Ws, os.path.relpath(Path, Ws))
45 return Path
59 …ls.PACKAGES_PATH = [cls.convertPackagePath (Ws, os.path.normpath(Path.strip())) for Path in Packag…
74 Path = os.path.join(Ws, *p)
75 if not os.path.exists(Path):
77 Path = os.path.join(Pkg, *p)
78 if os.path.exists(Path):
79 return Path
[all …]
DString.py295 def NormPath(Path, Defines={}): argument
297 if Path:
298 if Path[0] == '.':
304 Path = ReplaceMacro(Path, Defines)
308 Path = os.path.normpath(Path)
309 if Path.startswith(GlobalData.gWorkspace) and not os.path.exists(Path):
310 Path = Path[len (GlobalData.gWorkspace):]
311 if Path[0] == os.path.sep:
312 Path = Path[1:]
313 Path = mws.join(GlobalData.gWorkspace, Path)
[all …]
/device/linaro/bootloader/edk2/MdePkg/Library/BaseLib/
DFilePaths.c30 IN OUT CHAR16 *Path in PathRemoveLastItem() argument
38 for ( Walker = Path, LastSlash = NULL in PathRemoveLastItem()
70 IN CHAR16 *Path in PathCleanUpDirectories() argument
76 if (Path==NULL) { in PathCleanUpDirectories()
82 for (TempString = Path ; TempString != NULL && *TempString != CHAR_NULL ; TempString++) { in PathCleanUpDirectories()
90 while ((TempString = StrStr(Path, L"\\..\\")) != NULL) { in PathCleanUpDirectories()
93 PathRemoveLastItem(Path); in PathCleanUpDirectories()
95 CopyMem(Path+StrLen(Path), TempString, TempSize); in PathCleanUpDirectories()
97 if ((TempString = StrStr(Path, L"\\..")) != NULL && *(TempString + 3) == CHAR_NULL) { in PathCleanUpDirectories()
99 PathRemoveLastItem(Path); in PathCleanUpDirectories()
[all …]
/device/linaro/bootloader/edk2/StdLib/LibC/Uefi/Devices/Utility/
DPath.c51 IN wchar_t * Path, in ClassifyPath() argument
58 if(Path == NULL) { in ClassifyPath()
62 *NewPath = Path; // Setup default condition in ClassifyPath()
64 if((*Path == L'\\') || (*Path == L'\0')) { in ClassifyPath()
67 if(*Path == L'.') { in ClassifyPath()
74 MapLen = wcscspn(Path, L"\\:"); in ClassifyPath()
86 if(Path[MapLen] == L':') { in ClassifyPath()
88 *NewPath = &Path[MapLen + 1]; // Point to character after then ':'. Might be '\0'. in ClassifyPath()
155 const wchar_t *Path, in PathInstance() argument
162 if((Path != NULL) && (Path[Length] == L':') && (Length > 0)) { in PathInstance()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/
DOsPath.c108 IN CHAR8 *Path
141 Length = strlen (Path);
151 ((Offset > 0) || (Path[0] != '\\')) &&
152 IsDirSep (Path[Offset]) && IsDirSep (Path[Offset + 1])
154 memmove (&Path[Offset], &Path[Offset + 1], Remaining);
162 if ((Remaining >= 3) && IsDirSep (Path[Offset]) &&
163 (Path[Offset + 1] == '.') && IsDirSep (Path[Offset + 2])
165 memmove (&Path[Offset], &Path[Offset + 1], Remaining);
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/
DRmPkg.py90 def RemovePath(Path): argument
91 Logger.Info(ST.MSG_REMOVE_FILE % Path)
92 if not os.access(Path, os.W_OK):
93 os.chmod(Path, S_IWUSR)
94 os.remove(Path)
96 os.removedirs(os.path.split(Path)[0])
237 for (Path, Md5Sum) in DataBase.GetDpFileList(Guid, Version):
238 if os.path.isfile(Path):
239 if Path in NewFileList:
240 NewFileList.remove(Path)
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/GnuGenBootSector/
DGnuGenBootSector.c88 CHAR8 *Path; member
132 if (strncmp(PathInfo->Path, "/dev/", 5) == 0) { in GetPathInfo()
138 if (PathInfo->Path[5] == 'f' && PathInfo->Path[6] == 'd' && PathInfo->Path[8] == '\0') { in GetPathInfo()
140 strcpy (PathInfo->PhysicalPath, PathInfo->Path); in GetPathInfo()
150 f = fopen (LongFilePath (PathInfo->Path),"r"); in GetPathInfo()
163 printf("Path = %s\n",PathInfo->Path); in GetPathInfo()
164 f = fopen (LongFilePath (PathInfo->Path), "r"); in GetPathInfo()
172 strcpy(PathInfo->PhysicalPath, PathInfo->Path); in GetPathInfo()
340 InputPathInfo.Path = argv[Index + 1]; in main()
342 if (InputPathInfo.Path == NULL) { in main()
[all …]
/device/linaro/bootloader/edk2/MdePkg/Library/UefiDevicePathLib/
DUefiDevicePathLibOptionalDevicePathProtocol.uni2 // Instance of Device Path Library based on Device Path Protocol.
4 // Device Path Library that layers on top of the UEFI 2.0 Device Path Protocol.
20 …LE_ABSTRACT #language en-US "Instance of Device Path Library based on Device Path Prot…
22 …LE_DESCRIPTION #language en-US "Instance of Device Path Library based on Device Path Prot…
DUefiDevicePathLib.uni2 // Instance of Device Path Library based on Memory Allocation Library.
4 // Device Path Library that layers on top of the Memory Allocation Library.
18 #string STR_MODULE_ABSTRACT #language en-US "Instance of Device Path Library based on M…
20 #string STR_MODULE_DESCRIPTION #language en-US "This Device Path Library layers on top of …
/device/linaro/bootloader/edk2/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/
DUefiDevicePathLibDevicePathProtocol.uni2 // Instance of Device Path Library based on Device Path Utilities Protocol.
4 // Device Path Library that layers on top of the UEFI 2.0 Device Path Utilities Protocol.
19 …LE_ABSTRACT #language en-US "Instance of Device Path Library based on Device Path Util…
21 …SCRIPTION #language en-US "The Device Path Library that layers on top of the UEFI 2.0 Dev…
/device/linaro/bootloader/edk2/StdLib/PosixLib/Gen/
Daccess.c47 const char *Path, in access() argument
57 if((Path == NULL) || ((Mode & ~GOOD_MODE) != 0)) { in access()
61 PLength = strlen(Path); in access()
66 retval = stat(Path, &FileStat); in access()
69 WantDir = isDirSep(Path[PLength - 1]); // Does Path end in '/' or '\\' ? in access()
102 if(strcmp(&Path[PLength-4], ".efi") != 0) { in access()
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/UnitTest/
DDecParserTest.py58 Path = os.path.join(os.getcwd(), 'test.dec')
59 Path = os.path.normpath(Path)
61 f = open(Path, 'w')
69 print 'Can not create temporary file [%s]!' % Path
73 Ret = TestFunc(Path, TestString)
76 os.remove(Path)
83 def TestOK(Path, TestString): argument
85 Parser = Dec(Path)
92 def TestError(Path, TestString): argument
94 Dec(Path)
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Core/
DIpiDb.py218 for (Path, Md5Sum) in ModObj.FileList:
221 Path, Md5Sum)
226 for (Path, Md5Sum) in DpObj.FileList:
228 DpObj.Header.GetVersion(), Path, Md5Sum)
275 def _AddDpFilePathList(self, DpGuid, DpVersion, Path, Md5Sum): argument
276 Path = os.path.normpath(Path)
278 if Path.startswith(self.Workspace):
279 Path = Path[len(self.Workspace):]
281 if Path.startswith(self.Workspace + os.sep):
282 Path = Path[len(self.Workspace)+1:]
[all …]
DDistributionPackageClass.py206 for Guid, Version, Path in self.PackageSurfaceArea:
207 Package = self.PackageSurfaceArea[Guid, Version, Path]
210 MetaDataFileList.append(Path)
227 for Guid, Version, Name, Path in ModuleDict:
228 Module = ModuleDict[Guid, Version, Name, Path]
232 MetaDataFileList.append(Path)
238 … UniFilePath = os.path.normpath(os.path.join(PkgRelPath, UniFile.Path[len(OriPath) + 1:]))
248 for Guid, Version, Name, Path in self.ModuleSurfaceArea:
249 Module = self.ModuleSurfaceArea[Guid, Version, Name, Path]
252 MetaDataFileList.append(Path)
[all …]
DDependencyRules.py60 def CheckModuleExists(self, Guid, Version, Name, Path): argument
62 ModuleList = self.IpiDb.GetModInPackage(Guid, Version, Name, Path)
63 ModuleList.extend(self.IpiDb.GetStandaloneModule(Guid, Version, Name, Path))
356 def VerifyRemoveModuleDep(Path, DpPackagePathList): argument
360 PomAli = InfPomAlignment(Path, WorkSP, Skip=True)
364 Logger.Info(ST.MSG_MODULE_DEPEND_ON % (Path, Item.GetPackageFilePath()))
371 ST.WRN_EDK1_INF_FOUND%Path)
385 def VerifyReplaceModuleDep(Path, DpPackagePathList, OtherPkgList): argument
389 PomAli = InfPomAlignment(Path, WorkSP, Skip=True)
395 Logger.Info(ST.MSG_MODULE_DEPEND_ON % (Path, Item.GetPackageFilePath()))
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Library/
DParserValidate.py234 def IsValidPath(Path, Root): argument
235 Path = Path.strip()
236 OrigPath = Path.replace('\\', '/')
238 Path = os.path.normpath(Path).replace('\\', '/')
240 FullPath = mws.join(Root, Path)
249 if os.path.isabs(Path):
250 if not Path.startswith(Root):
267 Path = Path.rstrip('/')
272 for Word in Path.split('/'):
286 def IsValidInstallPath(Path): argument
[all …]
DUniClassObject.py331 FileIn = codecs.open(File.Path, mode='rb', encoding='utf_16').read()
333 FileIn = codecs.open(File.Path, mode='rb', encoding='utf_16_le').read()
425 if not os.path.exists(File.Path) or not os.path.isfile(File.Path):
428 ExtraData=File.Path)
433 if not CheckUTF16FileHeader(File.Path):
435 … ExtraData='The file %s is either invalid UTF-16LE or it is missing the BOM.' % File.Path)
438 FileIn = codecs.open(File.Path, mode='rb', encoding='utf_16').readlines()
440 FileIn = codecs.open(File.Path, mode='rb', encoding='utf_16_le').readlines()
442 EdkLogger.Error("Unicode File Parser", ToolError.FILE_OPEN_FAILURE, ExtraData=File.Path)
498 … EdkLogger.Error("Unicode File Parser", ToolError.FORMAT_INVALID, ExtraData=File.Path)
[all …]
DMisc.py464 self.Path = os.path.normpath(os.path.join(self.Root, self.File))
465 self.Root = os.path.normpath(CommonPath([self.Root, self.Path]))
475 self.File = self.Path[len(self.Root):]
477 self.File = self.Path[len(self.Root) + 1:]
479 self.Path = os.path.normpath(self.File)
510 return self.Path
518 return self.Path == Other.Path
520 return self.Path == str(Other)
527 return hash(self.Path)
533 self._Key = self.Path.upper()
[all …]
/device/linaro/bootloader/edk2/StdLibPrivateInternalFiles/Include/Device/
DDevice.h103 PATH_CLASS EFIAPI ClassifyPath(IN wchar_t *Path, OUT wchar_t **NewPath, int * const Length);
150 PathInstance( const wchar_t *Path, int length);
173 PathAdjust(wchar_t *Path);
193 PathAlias(wchar_t *Path, DeviceNode **Node);
211 const wchar_t *Path
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Table/
DTableFile.py69 def Insert(self, Name, ExtName, Path, FullPath, Model, TimeStamp): argument
71 (Name, ExtName, Path, FullPath) = ConvertToSqlString((Name, ExtName, Path, FullPath))
73 … % (self.Table, self.ID, Name, ExtName, Path, FullPath, Model, TimeStamp)
91 return self.Insert(File.Name, File.ExtName, File.Path, File.FullPath, File.Model, TimeStamp)
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Parser/
DDecParserMisc.py88 def StripRoot(Root, Path): argument
89 OrigPath = Path
91 Path = os.path.normpath(Path)
94 if Path.startswith(Root):
95 Path = Path[len(Root):]
96 if Path and Path[0] == os.sep:
97 Path = Path[1:]
98 return Path
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenBootSector/
DGenBootSector.c110 CHAR *Path; member
592 if (IsLetter(PathInfo->Path[0]) && (PathInfo->Path[1] == ':') && (PathInfo->Path[2] == '\0')) { in GetPathInfo()
593 VolumeLetter = PathInfo->Path[0]; in GetPathInfo()
617 fprintf (stderr, "ERROR, Invalid disk path - %s", PathInfo->Path); in GetPathInfo()
629 f = fopen (LongFilePath (PathInfo->Path), "r"); in GetPathInfo()
636 strcpy(PathInfo->PhysicalPath, PathInfo->Path); in GetPathInfo()
684 InputPathInfo.Path = argv[Index + 1]; in main()
686 if (InputPathInfo.Path == NULL) { in main()
690 if (InputPathInfo.Path[0] == '-') { in main()
699 OutputPathInfo.Path = argv[Index + 1]; in main()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/UserIdentification/UserProfileManagerDxe/
DUserProfileManagerStrings.uni118 #string STR_LOAD #language en-US "Load Device Path"
119 #language fr-FR "Load Device Path(French)"
120 #string STR_LOAD_HELP #language en-US "Select Permit/Forbid Load Device Path"
121 #language fr-FR "Select Permit/Forbid Load Device Path(French)"
122 #string STR_CONNECT #language en-US "Connect Device Path"
123 #language fr-FR "Connect Device Path(French)"
124 #string STR_CONNECT_HELP #language en-US "Select Permit/Forbid Connect Device Path"
125 #language fr-FR "Select Permit/Forbid Connect Device Path(French)"
126 #string STR_LOAD_PERMIT #language en-US "Permit Load Device Path"
127 #language fr-FR "Permit Load Device Path(French)"
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/FvSimpleFileSystemDxe/
DFvSimpleFileSystem.c334 IN OUT CHAR16 *Path in RemoveLastItemFromPath() argument
342 for ( Walker = Path, LastSlash = NULL in RemoveLastItemFromPath()
378 IN CHAR16 *Path in TrimFilePathToAbsolutePath() argument
384 if (Path == NULL) { in TrimFilePathToAbsolutePath()
391 for (TempString = Path ; (TempString != NULL) && (*TempString != CHAR_NULL); TempString++) { in TrimFilePathToAbsolutePath()
400 while ((TempString = StrStr (Path, L"\\..\\")) != NULL) { in TrimFilePathToAbsolutePath()
403 RemoveLastItemFromPath (Path); in TrimFilePathToAbsolutePath()
405 CopyMem (Path + StrLen (Path), TempString, TempSize); in TrimFilePathToAbsolutePath()
408 if (((TempString = StrStr (Path, L"\\..")) != NULL) && (*(TempString + 3) == CHAR_NULL)) { in TrimFilePathToAbsolutePath()
410 RemoveLastItemFromPath (Path); in TrimFilePathToAbsolutePath()
[all …]
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/
DUefiShellLevel2CommandsLib.c174 IN CONST CHAR16* Path in GetFullyQualifiedPath() argument
188 if (StrStr(Path, L":") == NULL) { in GetFullyQualifiedPath()
192 if (*Path == L'\\') { in GetFullyQualifiedPath()
193 Path++; in GetFullyQualifiedPath()
196 StrnCatGrow(&PathToReturn, &Size, Path, 0); in GetFullyQualifiedPath()
221 IN CONST CHAR16 *Path in VerifyIntermediateDirectories() argument
229 ASSERT(Path != NULL); in VerifyIntermediateDirectories()
233 PathCopy = StrnCatGrow(&PathCopy, NULL, Path, 0); in VerifyIntermediateDirectories()

123456