X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=util%2Ffipsdist.pl;h=f660c20412ada9168d5a4b4c0649390b20733f6f;hp=fa1d4d8f9a7e1ba17996853200a97152d8daa3ba;hb=4582626544dd7a20099c3d0a33b13717dab2a24f;hpb=6d7f706d0897d64d3a47262e219f0d242267327f diff --git a/util/fipsdist.pl b/util/fipsdist.pl index fa1d4d8f9a..f660c20412 100644 --- a/util/fipsdist.pl +++ b/util/fipsdist.pl @@ -21,11 +21,36 @@ foreach (split / /, $ENV{LINKDIRS} ) { $cdirs{$_} = 1 }; $cdirs{perlasm} = 1; +if (exists $ENV{NOEC2M}) + { + delete $tarobjs{"bn_gf2m.c"}; + delete $tarobjs{"ec2_mult.c"}; + delete $tarobjs{"ec2_smpl.c"}; + } + +my %keep = + ( + "Makefile.fips" => 1, + "Makefile.shared" => 1, + "README.FIPS" => 1, + "e_os.h" => 1, + "e_os2.h" => 1, + "Configure" => 1, + "config" => 1, + ); + while () { chomp; - # Skip directories but leave top level files. - next unless (/^(fips\/|crypto|util|test|include)/ || (!/\// && -f $_)); + # Keep top level files in list + if (!/\// && -f $_) + { + next unless exists $keep{$_}; + } + else + { + next unless (/^(fips\/|crypto|util|test|include|ms)/); + } if (/^crypto\/([^\/]+)/) { # Skip unused directories under crypto/ @@ -37,6 +62,10 @@ while () next if !/(\w+\.c)$/ || !exists $tarobjs{$1}; } } + if (/^test\//) + { + next unless /Makefile/ || /dummytest.c/; + } print "$_\n"; } exit 1;