CryptoPkg/OpensslLib: Exclude unnecessary files in
authorXiaoyu Lu <>
Wed, 29 May 2019 18:40:31 +0000 (18:40 +0000)
committerJian J Wang <>
Mon, 3 Jun 2019 00:28:00 +0000 (08:28 +0800)

When running to configure OpenSSL, we can exclude
some unnecessary files. This can reduce porting time, compiling
time and library size.

Upstream OpenSSL commit 71a5516dcc8a which was as part of
OpenSSL_1_1_1b, Add the STORE module(crypto/store/*).
But UEFI don't use them. So exclude these files.

Functions in crypto/rand/randfile.c OpenSSL and edk2 don't
call them. And it requires more crt runtime support.
So exclude it.

Cc: Jian J Wang <>
Cc: Ting Ye <>
Signed-off-by: Xiaoyu Lu <>
Reviewed-by: Laszlo Ersek <>
Tested-by: Gary Lin <>
Reviewed-by: Jian J Wang <>

index 6c136cc..e277108 100755 (executable)
@@ -127,6 +127,12 @@ foreach my $product ((@{$unified_info{libraries}},
         foreach my $s (@{$unified_info{sources}->{$o}}) {\r
             next if ($unified_info{generate}->{$s});\r
             next if $s =~ "crypto/bio/b_print.c";\r
+            # No need to add unused files in UEFI.\r
+            # So it can reduce porting time, compile time, library size.\r
+            next if $s =~ "crypto/rand/randfile.c";\r
+            next if $s =~ "crypto/store/";\r
             if ($product =~ "libssl") {\r
                 push @sslfilelist, '  $(OPENSSL_PATH)/' . $s . "\r\n";\r