3 # Copy of mkjulbin.pl made by Olof
4 # convert a binary stdin to a C-file containing a char array of the input
5 # first argument is the symbol name
9 print "#include <linux/init.h>\n\n";
10 #print "unsigned char $symbol", "[] __initdata = {\n";
11 print "unsigned char $symbol", "[] = {\n";
17 while(read STDIN, $char, 1) {
18 printf("0x%x, ", ord($char));
27 $lensymb = ("_" . ($symbol . "_length"));
29 print "__asm__(\"\\t.globl $lensymb\\n$lensymb = $bcount\\n\");\n";