Lines Matching refs:path

85 static inline void fixPath(char *path)  in fixPath()  argument
87 int i, len = strlen(path); in fixPath()
92 if (path[i] == '\\') in fixPath()
93 path[i] = '/'; in fixPath()
94 else if (path[i] == '\r' || path[i] == '\n') in fixPath()
95 path[i] = '\0'; in fixPath()
99 start = strstr(path, gLegacyPath); in fixPath()
106 strcat(path, gNewPath); in fixPath()
107 strcat(path, tmp); in fixPath()
109 strcpy(tmp, path); in fixPath()
110 strcpy(path, gNewPath); in fixPath()
111 strcat(path, tmp); in fixPath()
113 } else if ((ulong)path != (ulong)gOpts.outPath && /* ignore output */ in fixPath()
114 gPrePath && strncmp(path, gPrePath, strlen(gPrePath))) { in fixPath()
115 strcpy(tmp, path); in fixPath()
116 strcpy(path, gPrePath); in fixPath()
117 strcat(path, tmp); in fixPath()
186 strcpy(pbl3x->path, buf); in parseBL3x()
187 LOGD("bl3%d path:%s\n", bl3x_id, pbl3x->path); in parseBL3x()
234 fprintf(out, OPT_PATH "=%s\n", gOpts.bl3x[BL30_SEC].path); in printOpts()
240 fprintf(out, OPT_PATH "=%s\n", gOpts.bl3x[BL31_SEC].path); in printOpts()
246 fprintf(out, OPT_PATH "=%s\n", gOpts.bl3x[BL32_SEC].path); in printOpts()
252 fprintf(out, OPT_PATH "=%s\n", gOpts.bl3x[BL33_SEC].path); in printOpts()
353 strcpy(gOpts.bl3x[BL30_SEC].path, DEF_BL30_PATH); in initOpts()
356 strcpy(gOpts.bl3x[BL31_SEC].path, DEF_BL31_PATH); in initOpts()
359 strcpy(gOpts.bl3x[BL32_SEC].path, DEF_BL32_PATH); in initOpts()
362 strcpy(gOpts.bl3x[BL33_SEC].path, DEF_BL33_PATH); in initOpts()
369 static inline bool getFileSize(const char *path, uint32_t *size) in getFileSize() argument
373 if (stat(path, &st) < 0) in getFileSize()
376 LOGD("path:%s, size:%d\n", path, *size); in getFileSize()
405 LOGD("index=%d,file=%s\n", index, gOpts.bl3x[index].path); in filter_elf()
407 if (!getFileSize(gOpts.bl3x[index].path, &file_size)) in filter_elf()
409 file = fopen(gOpts.bl3x[index].path, "rb"); in filter_elf()
411 LOGE("open file(%s) failed\n", gOpts.bl3x[index].path); in filter_elf()
442 strcpy(pEntry->path, gOpts.bl3x[index].path); in filter_elf()
448 LOGE("elf_file %s too large,segment=%d.\n", pEntry->path, i); in filter_elf()
465 strcpy(pEntry->path, gOpts.bl3x[index].path); in filter_elf()
471 LOGE("elf_file %s too large,segment=%d.\n", pEntry->path, i); in filter_elf()
557 LOGE("filter_elf %s file failed\n", gOpts.bl3x[i].path); in mergetrust()
563 strcpy(pEntry->path, gOpts.bl3x[i].path); in mergetrust()
564 getFileSize(pEntry->path, &pEntry->size); in mergetrust()
569 LOGE("file %s too large.\n", gOpts.bl3x[i].path); in mergetrust()
642 FILE *inFile = fopen(gOpts.bl3x[i].path, "rb"); in mergetrust()
680 FILE *inFile = fopen(pEntry->path, "rb"); in mergetrust()
757 static bool unpacktrust(char *path) in unpacktrust() argument
770 FileSrc = fopen(path, "rb"); in unpacktrust()
772 printf("open %s failed!\n", path); in unpacktrust()
776 if (getFileSize(path, &FileSize) == false) { in unpacktrust()