[openssl-dev] [openssl.org #4464] UEFI/EDK2 build broken by removal of 'make files'.

David Woodhouse dwmw2 at infradead.org
Mon Mar 21 11:56:55 UTC 2016


On Mon, 2016-03-21 at 11:55 +0100, Richard Levitte wrote:
> Something like this in the directory where you find configdata.pm:
> 
>     $ perl opensslinf.pl > OpensslLib.inf
> 
> opensslinf.pl:

 ...

That works; thank you. It appears to give me rand/rand_vms.c which I
didn't have before, that that's harmless. And it obviously gives me bio/b_print.c which I was manually filtering out before — I need to do something better than that!

It also means I need to try to remember some perl because my test is
currently just using your perl snippet and feeding it to the sed
command I had before... which is *stupid*. But that's my problem :)

function filelist ()
{
    echo '1,/# Autogenerated files list starts here/p'
    echo '/# Autogenerated files list ends here/,$p'
    echo '/# Autogenerated files list starts here/a\'

    perl <<EOF
use strict;
use lib "${OPENSSL_PATH}";
use configdata qw/%unified_info/;

foreach my \$product ((@{\$unified_info{libraries}},
                      @{\$unified_info{engines}})) {
    foreach my \$o (@{\$unified_info{sources}->{\$product}}) {
        foreach my \$s (@{\$unified_info{sources}->{\$o}}) {
            next if \$unified_info{generate}->{\$s};
            print "  \\\$(OPENSSL_PATH)/", \$s, "\r\\\\\n";
        }
    }
}
EOF
    echo -e \\r
}

filelist  |  sed -n -f - -i OpensslLib.inf

> Note that it skips over generated source, something that LIBSRC never
> contained anyway...

Yeah, we don't use any generated source. The only generated file we use
is opensslconf.h, and we stash our own copy of that away as part of the
same script I'm looking at here.

Once EDK2 starts using NASM instead of having *different* copies of
various asm files for the MSVC vs. GCC builds(!!), perhaps I'll look at
whether I can stop using no-asm. But that's a game for another day.

-- 
David Woodhouse                            Open Source Technology Centre
David.Woodhouse at intel.com                              Intel Corporation

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5691 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20160321/4a1dce97/attachment.bin>


More information about the openssl-dev mailing list