OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [arch/] [m68knommu/] [platform/] [68EZ328/] [tools/] [bintoc.c] - Blame information for rev 1781

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
#include <stdio.h>
2
 
3
int
4
main(int argc, char *argv[])
5
{
6
        unsigned char buf[8];
7
        int cnt;
8
        int i;
9
 
10
        printf ("/* romfs.h: ROMfs image converted to a C char array
11
   Machine generated DO NOT EDIT */
12
char
13
_flashstart[] = {");
14
 
15
        while (cnt = read(0,buf,sizeof(buf))) {
16
 
17
                printf("\n");
18
                for (i=0; i<cnt; i++) {
19
                        printf(" 0x%.2x,",buf[i]);
20
                }
21
        }
22
        printf("\n0};\n");
23
}
24
 

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.