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