Displaying 1 result from an estimated 1 matches for "min_adv_size".
2013 Sep 30
2
[PATCH v2] core: Check size of ldlinux.sys at building time.
...while ( $line = <$data> ) {
+ my $id, $value;
+
+ chomp($line);
+ ($id, $value) = split('\t', $line);
+
+ if ( index($id, $target_id) != -1 ) {
+ $adv_size = $value;
+ break;
+ }
+ }
+ close $data or die "Cannot close $file\n";
+ return $adv_size;
+}
+
+$min_adv_size = 512;
+$adv_size = get_ADV_SIZE();
+if ( $adv_size == -1 ) {
+ print STDERR "$0: '$target_id' was not found at: '$file'\n",
+ "$0: Please check the file and try again!\n";
+ exit 1;
+} elsif ( $adv_size < $min_adv_size ) {
+ print STDERR "$0:...