Lines Matching defs:output
579 static void do_cpe510(const char *output, const char *kernel_image, const char *rootfs_image, uint32_t rev, bool add_jffs2_eof, bool sysupgrade) {
595 FILE *file = fopen(output, "wb");
597 error(1, errno, "unable to open output file");
600 error(1, 0, "unable to write output file");
612 static void do_c2600(const char *output, const char *kernel_image, const char *rootfs_image, uint32_t rev, bool add_jffs2_eof, bool sysupgrade) {
628 FILE *file = fopen(output, "wb");
630 error(1, errno, "unable to open output file");
633 error(1, 0, "unable to write output file");
645 static void do_tl1043ndv4(const char *output, const char *kernel_image, const char *rootfs_image, uint32_t rev, bool add_jffs2_eof, bool sysupgrade) {
661 FILE *file = fopen(output, "wb");
663 error(1, errno, "unable to open output file");
666 error(1, 0, "unable to write output file");
678 /** Usage output */
687 " -o <file> write output to the file <file>\n"
698 const char *board = NULL, *kernel_image = NULL, *rootfs_image = NULL, *output = NULL;
723 output = optarg;
754 if (!output)
755 error(1, 0, "no output filename has been specified");
758 do_cpe510(output, kernel_image, rootfs_image, rev, add_jffs2_eof, sysupgrade);
760 do_c2600(output, kernel_image, rootfs_image, rev, add_jffs2_eof, sysupgrade);
762 do_tl1043ndv4(output, kernel_image, rootfs_image, rev, add_jffs2_eof, sysupgrade);