/openwrt/scripts/ |
H A D | sysupgrade-nand.sh | 6 outfile="" 30 if [ ! "$outfile" ]; then 31 outfile=$1 39 if [ ! -n "$board" -o ! -r "$kernel" -a ! -r "$rootfs" -o ! "$outfile" ]; then 67 cp "$tmpdir/sysupgrade.tar" "$outfile"
|
H A D | ubinize-image.sh | 7 outfile="" 81 if [ ! "$outfile" ]; then 82 outfile=$1 90 if [ ! -r "$rootfs" -o ! -r "$kernel" -a ! "$outfile" ]; then 109 ubinize -o "$outfile" $ubinize_param "$ubinizecfg" 111 [ ! -e "$outfile" ] && err=2
|
/openwrt/tools/firmware-utils/src/ |
H A D | imagetag_cmdline.c | 379 write_into_file(FILE *outfile, const char *opt, const char *arg, const char *values[]) argument 387 fprintf(outfile, "%s=\"%s\" # %s\n", opt, arg, values[found]); 389 fprintf(outfile, "%s=\"%s\"\n", opt, arg); 391 fprintf(outfile, "%s\n", opt); 397 imagetag_cmdline_dump(FILE *outfile, struct gengetopt_args_info *args_info) argument 401 if (!outfile) 408 write_into_file(outfile, "help", 0, 0 ); 410 write_into_file(outfile, "version", 0, 0 ); 412 write_into_file(outfile, "kernel", args_info->kernel_orig, 0); 414 write_into_file(outfile, "rootf 472 FILE *outfile; local [all...] |
H A D | imagetag_cmdline.h | 205 * @param outfile the stream where to dump options 209 int imagetag_cmdline_dump(FILE *outfile,
|
H A D | lzma2eva.c | 49 const char *infile, *outfile; local 80 outfile = argv[4]; 85 out = fopen(outfile, "w+b");
|
H A D | makeamitbin.c | 266 char *outfile = NULL; local 279 outfile = argv[n+1]; 283 if (ascii1 == NULL || ascii2 == NULL || outfile == NULL) 285 of = fopen(outfile, "w");
|
H A D | mkcasfw.c | 567 write_out_data(FILE *outfile, uint8_t *data, size_t len, argument 572 fwrite(data, len, 1, outfile); 587 write_out_padding(FILE *outfile, size_t len, uint8_t padc, argument 599 err = write_out_data(outfile, buf, buflen, css); 640 image_writeout_file(FILE *outfile, struct image_desc *desc, argument 676 res = write_out_data(outfile, buf, buflen, css); 689 image_writeout(FILE *outfile, struct image_desc *desc) argument 705 res = image_writeout_file(outfile, desc, &css); 712 res = write_out_padding(outfile, padlen, desc->padc, &css); 721 write_out_header(FILE *outfile) argument 764 write_out_images(FILE *outfile) argument 920 FILE *outfile; local [all...] |
H A D | mkcsysimg.c | 506 write_out_data(FILE *outfile, uint8_t *data, size_t len, argument 511 fwrite(data, len, 1, outfile); 526 write_out_padding(FILE *outfile, size_t len, uint8_t padc, argument 538 err = write_out_data(outfile, buf, buflen, css); 570 block_writeout_hdr(FILE *outfile, struct csys_block *block) argument 584 res = write_out_data(outfile, (uint8_t *)&hdr, sizeof(hdr),NULL); 591 block_writeout_file(FILE *outfile, struct csys_block *block) argument 626 res = write_out_data(outfile, buf, buflen, block->css); 639 block_writeout_data(FILE *outfile, struct csys_block *block) argument 644 res = block_writeout_file(outfile, bloc 658 block_writeout_csum(FILE *outfile, struct csys_block *block) argument 675 block_writeout(FILE *outfile, struct csys_block *block) argument 711 write_out_blocks(FILE *outfile) argument 1047 FILE *outfile; local [all...] |
H A D | mkdniimg.c | 81 FILE *outfile, *infile; local 176 outfile = fopen(ofname, "w"); 177 if (outfile == NULL) { 183 fwrite(buf, buflen, 1, outfile); 192 fflush(outfile); 195 fclose(outfile);
|
H A D | mkmylofw.c | 481 write_out_data(FILE *outfile, uint8_t *data, size_t len, uint32_t *crc) argument 485 fwrite(data, len, 1, outfile); 500 write_out_desc(FILE *outfile, struct mylo_fw_blockdesc *desc, uint32_t *crc) argument 502 return write_out_data(outfile, (uint8_t *)desc, 508 write_out_padding(FILE *outfile, size_t len, uint8_t padc, uint32_t *crc) argument 519 if (write_out_data(outfile, buff, buflen, crc)) 530 write_out_file(FILE *outfile, struct fw_block *block, uint32_t *crc) argument 552 if (write_out_data(outfile, (uint8_t *)&ph, sizeof(ph), crc) != 0) 575 if (write_out_data(outfile, buff, buflen, crc) != 0) 585 if (write_out_padding(outfile, le 594 write_out_header(FILE *outfile, uint32_t *crc) argument 621 write_out_partitions(FILE *outfile, uint32_t *crc) argument 661 write_out_blocks(FILE *outfile, uint32_t *crc) argument 1179 FILE *outfile; local [all...] |
H A D | mkplanexfw.c | 135 FILE *outfile, *infile; local 236 outfile = fopen(ofname, "w"); 237 if (outfile == NULL) { 243 fwrite(buf, buflen, 1, outfile); 252 fflush(outfile); 255 fclose(outfile);
|
H A D | mktplinkfw2.c | 902 FILE *outfile; local
|
H A D | mkwrgimg.c | 115 FILE *outfile, *infile; local 213 outfile = fopen(ofname, "w"); 214 if (outfile == NULL) { 220 fwrite(buf, buflen, 1, outfile); 226 fflush(outfile); 231 fclose(outfile);
|
H A D | mkzcfw.c | 366 FILE *outfile; local
|
H A D | mkzynfw.c | 502 write_out_data(FILE *outfile, uint8_t *data, size_t len, argument 507 fwrite(data, len, 1, outfile); 522 write_out_padding(FILE *outfile, size_t len, uint8_t padc, argument 533 if (write_out_data(outfile, buf, buflen, css)) 544 write_out_data_align(FILE *outfile, uint8_t *data, size_t len, size_t align, argument 550 res = write_out_data(outfile, data, len, css); 555 res = write_out_padding(outfile, padlen, 0xFF, css); 562 write_out_header(FILE *outfile, struct zyn_rombin_hdr *hdr) argument 567 if (fseek(outfile, 0, SEEK_SET) != 0) { 593 return write_out_data(outfile, (uint8_ 598 write_out_mmap(FILE *outfile, struct fw_mmap *mmap, struct csum_state *css) argument 684 write_out_file(FILE *outfile, char *name, size_t len, struct csum_state *css) argument 727 write_out_block(FILE *outfile, struct fw_block *block, struct csum_state *css) argument 747 write_out_image(FILE *outfile) argument 1052 FILE *outfile; local [all...] |
H A D | osbridge-crc.c | 85 FILE *outfile, *infile; local 152 outfile = fopen(ofname, "w"); 153 if (outfile == NULL) { 159 fwrite(buf, buflen, 1, outfile); 168 fflush(outfile); 171 fclose(outfile);
|
H A D | pc1crypt.c | 244 FILE *outfile, *infile; local 303 outfile = fopen(ofname, "w"); 304 if (outfile == NULL) { 331 fwrite(buf, datalen, 1, outfile); 344 fflush(outfile); 347 fclose(outfile);
|