| 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"); | 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; |
| 11 my @REQUIRES; | 11 my @REQUIRES; |
| 12 | 12 |
| 13 my %opts = (); | 13 my %opts = (); |
| 14 my %disabled = (); | 14 my %disabled = (); |
| 15 my %required = (); | 15 my %required = (); |
| 16 | 16 |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 close CONFIG_FILE; | 378 close CONFIG_FILE; |
| 379 mips; | 379 mips; |
| 380 } elsif ($opts{arch} eq 'armv5te') { | 380 } elsif ($opts{arch} eq 'armv5te') { |
| 381 @ALL_ARCHS = filter(qw/edsp/); | 381 @ALL_ARCHS = filter(qw/edsp/); |
| 382 arm; | 382 arm; |
| 383 } elsif ($opts{arch} eq 'armv6') { | 383 } elsif ($opts{arch} eq 'armv6') { |
| 384 @ALL_ARCHS = filter(qw/edsp media/); | 384 @ALL_ARCHS = filter(qw/edsp media/); |
| 385 arm; | 385 arm; |
| 386 } elsif ($opts{arch} eq 'armv7') { | 386 } elsif ($opts{arch} eq 'armv7') { |
| 387 @ALL_ARCHS = filter(qw/edsp media neon_asm neon/); | 387 @ALL_ARCHS = filter(qw/edsp media neon_asm neon/); |
| 388 @REQUIRES = filter(keys %required ? keys %required : qw/media/); |
| 389 &require(@REQUIRES); |
| 388 arm; | 390 arm; |
| 389 } elsif ($opts{arch} eq 'armv8') { | 391 } elsif ($opts{arch} eq 'armv8') { |
| 390 @ALL_ARCHS = filter(qw/neon/); | 392 @ALL_ARCHS = filter(qw/neon/); |
| 391 arm; | 393 arm; |
| 392 } else { | 394 } else { |
| 393 unoptimized; | 395 unoptimized; |
| 394 } | 396 } |
| 395 | 397 |
| 396 __END__ | 398 __END__ |
| 397 | 399 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 411 C header file on stdout. | 413 C header file on stdout. |
| 412 | 414 |
| 413 =head1 OPTIONS | 415 =head1 OPTIONS |
| 414 | 416 |
| 415 Options: | 417 Options: |
| 416 --arch=ARCH Architecture to generate defs for (required) | 418 --arch=ARCH Architecture to generate defs for (required) |
| 417 --disable-EXT Disable support for EXT extensions | 419 --disable-EXT Disable support for EXT extensions |
| 418 --require-EXT Require support for EXT extensions | 420 --require-EXT Require support for EXT extensions |
| 419 --sym=SYMBOL Unique symbol to use for RTCD initialization function | 421 --sym=SYMBOL Unique symbol to use for RTCD initialization function |
| 420 --config=FILE File with CONFIG_FOO=yes lines to parse | 422 --config=FILE File with CONFIG_FOO=yes lines to parse |
| OLD | NEW |