From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: What is a "NULL" library class? To: devel@edk2.groups.io From: wonderfly@waymo.com X-Originating-Location: Sunnyvale, California, US (98.234.182.223) X-Originating-Platform: ChromeOS Chrome 86 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Thu, 28 Jan 2021 10:21:58 -0800 Message-ID: <9vLZ.1611858118289759978.CNuw@groups.io> Content-Type: multipart/alternative; boundary="d7cy9BCMuZ00mQ1HYF6F" --d7cy9BCMuZ00mQ1HYF6F Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, I am super new to EDK2 development so excuse my ignorance.=C2=A0 While bro= wsing the code base I find a lot places where the keyword "NULL" is used in= place of a LibraryClass, specifically in DSC files.=C2=A0 For example, in edk2/UefiPayloadPkg/UefiPayloadPkgIa32.dsc: MdeModulePkg/Core/Dxe/DxeMain.inf { NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.= inf } What does this mean?=C2=A0 Does it mean that the=C2=A0LzmaCustomDecompress= Lib.inf library instance is unconditionally linked for this package? --d7cy9BCMuZ00mQ1HYF6F Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi,

I am super new to EDK2 development so excuse my ignorance.&n= bsp; While browsing the code base I find a lot places where the keyword "NU= LL" is used in place of a LibraryClass, specifically in DSC files.  Fo= r example,

in edk2/UefiPayloadPkg/UefiPayloadPkgIa32.dsc:      &n= bsp;                     =                      = ;                     &nb= sp;
  MdeModulePkg/Core/Dxe/DxeMain.inf {
    <LibraryClasses>
      NULL|MdeModulePkg/Library/LzmaCustomDecompressLi= b/LzmaCustomDecompressLib.inf
  }

What does this mean?  Does it mean that the&= nbsp;LzmaCustomDecompressLib.inf library instance is unconditionally linked= for this package?
--d7cy9BCMuZ00mQ1HYF6F--