Lines Matching refs:files
1128 printf("\t" OPT_PACK "\t\t\tPack image from given files.\n");
1140 static int pack_image(int file_num, const char **files);
1197 const char **files = (const char **)argv;
1202 LOGD("try to pack %d files.", file_num);
1203 return pack_image(file_num, files);
1457 static bool write_index_tbl(const int file_num, const char **files)
1469 size_t file_size = get_file_size(files[i]);
1476 if (write_file(offset, files[i], hash, sizeof(hash)) < 0) {
1483 LOGE("try to write index entry(%s)...", files[i]);
1488 const char *path = files[i];
1498 if (!strcmp(files[i] + strlen(files[i]) - strlen(DTD_SUBFIX), DTD_SUBFIX)) {
1501 LOGE("mod fdt path:%s -> %s...", files[i], FDT_PATH);
1517 static int pack_image(int file_num, const char **files)
1527 /* prepare files */
1532 if (!strcmp(files[i] + strlen(files[i]) - strlen(DTD_SUBFIX), DTD_SUBFIX)) {
1533 /* dtb files for kernel. */
1534 tmp = files[pos];
1535 files[pos] = files[i];
1536 files[i] = tmp;
1538 } else if (!strcmp(fix_path(image_path), fix_path(files[i]))) {
1540 tmp = files[file_num - 1];
1541 files[file_num - 1] = files[i];
1542 files[i] = tmp;
1551 if (!write_index_tbl(file_num, files)) {