Permalink
Browse files

Signed-off-by: Steve <ttz642t@gmail.com>

  • Loading branch information...
ttz642t committed Feb 19, 2012
1 parent 4efddfd commit 85690ad764fcf7ec19d68f328ac20fc7a29b893a
Showing with 5 additions and 2 deletions.
  1. +5 −2 rkcrc.pl
View
@@ -44,6 +44,7 @@ ()
-c : Copyright banner
-h : this (help) message
+ -b : create a BOOT type file
-k : create a KRNL type file
-p : create a PARM type file
-i infile : file to calculate length, crc & prefix with type
@@ -57,7 +58,7 @@ ()
sub options(){
use Getopt::Std;
- my $opt_string = 'hckpi:o:';
+ my $opt_string = 'hckpbi:o:';
getopts( "$opt_string", \%opt ) or usage();
if($opt{c}){copyright();}
if(! $opt{o}){print "No output file specified\n";}
@@ -118,7 +119,9 @@ ()
if($opt{p}){
syswrite OUT, "PARM";
}elsif($opt{k}){
- syswrite OUT, "KRNL";
+ syswrite OUT, "KRNL";
+}elsif($opt{b}){
+ syswrite OUT, "BOOT";
}else{
usage();
exit;

0 comments on commit 85690ad

Please sign in to comment.