Hi Ali,

 

There are no specific guidelines.

 

However, there are a few resources and examples you can consult:

 

  1. Full C lib at
    1. https://github.com/tianocore/edk2-libc
  2. Another C lib port with smaller footprint under development
    1. https://github.com/tianocore/edk2-staging/tree/CdePkg
  3. Some examples that use gaskets between EDK II and a small subset of required services:
    1. https://github.com/tianocore/edk2/tree/master/CryptoPkg/Library/OpensslLib
    2. https://github.com/tianocore/edk2/blob/master/UnitTestFrameworkPkg/Library/CmockaLib/CmockaLib.inf
    3. https://github.com/tianocore/edk2/tree/master/MdeModulePkg/Universal/RegularExpressionDxe
    4. https://github.com/tianocore/edk2/tree/master/MdeModulePkg/Library/BrotliCustomDecompressLib

 

Best regards,

 

Mike

 

From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Ali Shirvani
Sent: Monday, December 7, 2020 10:40 AM
To: devel@edk2.groups.io
Subject: [edk2-devel] Guideline for porting third-party library to EDK2

 

Hi all,

 

I want to port some third-party libraries, written in C/C++ to EDK2.

Is there any guideline or tutorial about the procedure?

 

Regards,

Ali