| OLD | NEW |
| 1 #!/usr/bin/env perl | 1 #!/usr/bin/env perl |
| 2 | 2 |
| 3 no strict 'refs'; | 3 no strict 'refs'; |
| 4 use warnings; | 4 use warnings; |
| 5 use Getopt::Long; | 5 use Getopt::Long; |
| 6 Getopt::Long::Configure("auto_help") if $Getopt::Long::VERSION > 2.32; | 6 Getopt::Long::Configure("auto_help") if $Getopt::Long::VERSION > 2.32; |
| 7 | 7 |
| 8 my %ALL_FUNCS = (); | 8 my %ALL_FUNCS = (); |
| 9 my @ALL_ARCHS; | 9 my @ALL_ARCHS; |
| 10 my @ALL_FORWARD_DECLS; | 10 my @ALL_FORWARD_DECLS; |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 x86; | 369 x86; |
| 370 } elsif ($opts{arch} eq 'mips32' || $opts{arch} eq 'mips64') { | 370 } elsif ($opts{arch} eq 'mips32' || $opts{arch} eq 'mips64') { |
| 371 @ALL_ARCHS = filter("$opts{arch}"); | 371 @ALL_ARCHS = filter("$opts{arch}"); |
| 372 open CONFIG_FILE, $opts{config} or | 372 open CONFIG_FILE, $opts{config} or |
| 373 die "Error opening config file '$opts{config}': $!\n"; | 373 die "Error opening config file '$opts{config}': $!\n"; |
| 374 while (<CONFIG_FILE>) { | 374 while (<CONFIG_FILE>) { |
| 375 if (/HAVE_DSPR2=yes/) { | 375 if (/HAVE_DSPR2=yes/) { |
| 376 @ALL_ARCHS = filter("$opts{arch}", qw/dspr2/); | 376 @ALL_ARCHS = filter("$opts{arch}", qw/dspr2/); |
| 377 last; | 377 last; |
| 378 } | 378 } |
| 379 if (/HAVE_MSA=yes/) { |
| 380 @ALL_ARCHS = filter("$opts{arch}", qw/msa/); |
| 381 last; |
| 382 } |
| 379 } | 383 } |
| 380 close CONFIG_FILE; | 384 close CONFIG_FILE; |
| 381 mips; | 385 mips; |
| 382 } elsif ($opts{arch} eq 'armv6') { | 386 } elsif ($opts{arch} eq 'armv6') { |
| 383 @ALL_ARCHS = filter(qw/media/); | 387 @ALL_ARCHS = filter(qw/media/); |
| 384 arm; | 388 arm; |
| 385 } elsif ($opts{arch} =~ /armv7\w?/) { | 389 } elsif ($opts{arch} =~ /armv7\w?/) { |
| 386 @ALL_ARCHS = filter(qw/media neon_asm neon/); | 390 @ALL_ARCHS = filter(qw/media neon_asm neon/); |
| 387 @REQUIRES = filter(keys %required ? keys %required : qw/media/); | 391 @REQUIRES = filter(keys %required ? keys %required : qw/media/); |
| 388 &require(@REQUIRES); | 392 &require(@REQUIRES); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 412 C header file on stdout. | 416 C header file on stdout. |
| 413 | 417 |
| 414 =head1 OPTIONS | 418 =head1 OPTIONS |
| 415 | 419 |
| 416 Options: | 420 Options: |
| 417 --arch=ARCH Architecture to generate defs for (required) | 421 --arch=ARCH Architecture to generate defs for (required) |
| 418 --disable-EXT Disable support for EXT extensions | 422 --disable-EXT Disable support for EXT extensions |
| 419 --require-EXT Require support for EXT extensions | 423 --require-EXT Require support for EXT extensions |
| 420 --sym=SYMBOL Unique symbol to use for RTCD initialization function | 424 --sym=SYMBOL Unique symbol to use for RTCD initialization function |
| 421 --config=FILE File with CONFIG_FOO=yes lines to parse | 425 --config=FILE File with CONFIG_FOO=yes lines to parse |
| OLD | NEW |