4 # Check that the given file is smaller than the given size and if not, return
5 # an error code. Used to verify that the rombox.ucl file fits on the particular
10 my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
11 $atime,$mtime,$ctime,$blksize,$blocks)
16 my $romsize = 256*1024; # 256 KB
18 my $romstart = $ARGV[0];
20 if($romstart =~ /^0x(.*)/i) {
21 $romstart = hex($romstart);
25 my $max = $romsize - $romstart;
27 my $file = filesize
($ARGV[1]);
30 printf "Output is %d bytes larger than max ($max)\n", $file-$max;