<div style="color: black !important; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: white !important;" data-ogsc="black" data-ogsb="white"><span style="color: black !important; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: white !important;" data-ogsc="black" data-ogsb="white">This patch tried to fix following build failure when linking the Brotli decompress lib.<br aria-hidden="true" /></span></div>
<div style="color: black !important; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: white !important;" data-ogsc="black" data-ogsb="white"><span style="color: black !important; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: white !important;" data-ogsc="black" data-ogsb="white"> </span></div>
<div style="color: black !important; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: white !important;" data-ogsc="black" data-ogsb="white"><span style="color: black !important; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: white !important;" data-ogsc="black" data-ogsb="white">Steps to replicate the issue:</span></div>
<div style="color: black !important; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: white !important;" data-ogsc="black" data-ogsb="white"><span style="color: black !important; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: white !important;" data-ogsc="black" data-ogsb="white">1 - Attach a NULL lib to DxeIpl.inf in any project's .DSC, say OvmfPkgX64.dsc<br aria-hidden="true" /></span></div>
<span style="color: black !important; font-size: 12pt; font-family: Courier New, monospace; background-color: white !important;" data-ogsc="black" data-ogsb="white">  MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {</span>
<div><span style="font-family: Courier New,monospace;">    <LibraryClasses></span></div>
<div><span style="font-family: Courier New,monospace;">      NULL|MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliCustomDecompressLib.inf</span></div>
<div><span style="font-family: Courier New,monospace;">  }</span></div>
<div>2 - Follow the EDKII'2 package build steps to build that project. Build.py would compliain with following errors.</div>
<div>...</div>
<div>
<p><span style="font-family: Courier New,monospace;">/home/edk2/edk2-stable202211/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/c/dec/decode.c:879: undefined reference to `_kBrotliPrefixCodeRanges'</span></p>
<p><span style="font-family: Courier New,monospace;">/usr/bin/ld: /home/edk2/edk2-stable202211/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/c/dec/decode.c:1193: undefined reference to `_kBrotliContextLookupTable'</span></p>
<p><span style="font-family: Courier New,monospace;">/usr/bin/ld: /tmp/ccKzzHN0.ltrans0.ltrans.o: in function `DecodeCommandBlockSwitch':</span></p>
<p><span style="font-family: Courier New,monospace;">...</span></p>
<p><span style="font-family: Courier New,monospace;">/usr/bin/ld: /tmp/ccKzzHN0.ltrans0.ltrans.o: in function `BrotliUefiDecompress':</span></p>
<p><span style="font-family: Courier New,monospace;">/home/edk2/edk2-stable202211/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/c/dec/decode.c:898: undefined reference to `_kBrotliPrefixCodeRanges'</span></p>
<p><span style="font-family: Courier New,monospace;">/usr/bin/ld: /home/edk2/edk2-stable202211/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/c/dec/decode.c:1193: undefined reference to `_kBrotliContextLookupTable'<br /><br /></span><span style="color: black !important; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: white !important;" data-ogsc="black" data-ogsb="white">--<br />Timothy</span></p>
</div>


<div width="1" style="color:white;clear:both">_._,_._,_</div>
<hr>


Groups.io Links:<p>


  
    You receive all messages sent to this group.
  
  


<p>
<a target="_blank" href="https://edk2.groups.io/g/devel/message/98961">View/Reply Online (#98961)</a> |


  

|

  <a target="_blank" href="https://groups.io/mt/96347163/1813853">Mute This Topic</a>

| <a href="https://edk2.groups.io/g/devel/post">New Topic</a><br>




<a href="https://edk2.groups.io/g/devel/editsub/1813853">Your Subscription</a> |
<a href="mailto:devel+owner@edk2.groups.io">Contact Group Owner</a> |

<a href="https://edk2.groups.io/g/devel/unsub">Unsubscribe</a>

 [edk2-devel-archive@redhat.com]<br>
<div width="1" style="color:white;clear:both">_._,_._,_</div>