Lines Matching refs:files
1148 printf("\t" OPT_PACK "\t\t\tPack image from given files.\n");
1160 static int pack_image(int file_num, const char **files);
1217 const char **files = (const char **)argv;
1222 LOGD("try to pack %d files.", file_num);
1223 return pack_image(file_num, files);
1474 static bool write_index_tbl(const int file_num, const char **files)
1487 size_t file_size = get_file_size(files[i]);
1493 if (write_file(offset, files[i], hash, sizeof(hash)) < 0)
1499 LOGD("try to write index entry(%s)...", files[i]);
1504 const char *path = files[i];
1513 if (!strcmp(files[i] + strlen(files[i]) - strlen(DTD_SUBFIX), DTD_SUBFIX)) {
1516 LOGD("mod fdt path:%s -> %s...", files[i], FDT_PATH);
1532 static int pack_image(int file_num, const char **files)
1542 /* prepare files */
1547 if (!strcmp(files[i] + strlen(files[i]) - strlen(DTD_SUBFIX), DTD_SUBFIX)) {
1548 /* dtb files for kernel. */
1549 tmp = files[pos];
1550 files[pos] = files[i];
1551 files[i] = tmp;
1553 } else if (!strcmp(fix_path(image_path), fix_path(files[i]))) {
1555 tmp = files[file_num - 1];
1556 files[file_num - 1] = files[i];
1557 files[i] = tmp;
1566 if (!write_index_tbl(file_num, files)) {