Skip to content

Commit

Permalink
Fix Network stack not being loaded (#26)
Browse files Browse the repository at this point in the history
Due to the changes in the commit  
4c4ceb2, the Network Stack requires the use of a new Random Number Generator (RNG).
The UefiPayloadPkg has not been patched on default EDK2, since network implementation is not default in it. Therefore, the solution was to apply something that was done in another platforms in EDK2 adding the RngDxe and the Hash2DxeCrypto drivers (commits 3e72240 and e10d832).
  • Loading branch information
gustavo16a authored Oct 21, 2024
1 parent 78c2b10 commit 849bce0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
13 changes: 13 additions & 0 deletions UefiPayloadPkg/UefiPayloadPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,19 @@
}
!endif

!if $(NETWORK_DRIVER_ENABLE) == TRUE
#
# Rng Protocol producer
#
SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf

#
# Hash2 Protocol producer
#
SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.inf
!endif


!if $(SECURE_BOOT_ENABLE) == TRUE
SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
UefiPayloadPkg/SecureBootEnrollDefaultKeys/SecureBootSetup.inf
Expand Down
9 changes: 9 additions & 0 deletions UefiPayloadPkg/UefiPayloadPkg.fdf
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,15 @@ INF MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenuApp.inf
#
!if $(NETWORK_DRIVER_ENABLE) == TRUE
!include NetworkPkg/Network.fdf.inc
#
# Rng Protocol producer
#
INF SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf

#
# Hash2 Protocol producer
#
INF SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.inf
!endif
!endif

Expand Down

0 comments on commit 849bce0

Please sign in to comment.