Skip to content

Commit

Permalink
Fix: SurfaceDuoFamily: Fix linking issue while building with screen d…
Browse files Browse the repository at this point in the history
…ebug on.

Using openssl intrinsiclib while enabling screen log print to prevent memset redefine.
  • Loading branch information
sunflower2333 committed Aug 21, 2024
1 parent cee68dd commit 37f849c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Platforms/SurfaceDuoFamilyPkg/SurfaceDuoFamily.dsc.inc
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,11 @@
BaseCryptLib|OpensslPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
TlsLib|OpensslPkg/Library/TlsLib/TlsLib.inf
IntrinsicLib|OpensslPkg/Library/IntrinsicLib/IntrinsicLib.inf
## Patch: Fix memset redefine issue while linking, only implement while screen serial is enabled.
!if $(USE_SCREEN_FOR_SERIAL_OUTPUT) == 1
CompilerIntrinsicsLib|OpensslPkg/Library/IntrinsicLib/IntrinsicLib.inf
!endif
## End patch
OpensslLib|OpensslPkg/Library/OpensslLib/OpensslLib.inf # Contains openSSL library used by BaseCryptoLib
}

Expand Down

0 comments on commit 37f849c

Please sign in to comment.