diff --git a/Platform/ARM/JunoPkg/ArmJuno.dsc b/Platform/ARM/JunoPkg/ArmJuno.dsc index cf8de7e0a75..ea665fd2b48 100644 --- a/Platform/ARM/JunoPkg/ArmJuno.dsc +++ b/Platform/ARM/JunoPkg/ArmJuno.dsc @@ -25,9 +25,10 @@ SKUID_IDENTIFIER = DEFAULT FLASH_DEFINITION = Platform/ARM/JunoPkg/ArmJuno.fdf +!include MdePkg/MdeLibs.dsc.inc + # On RTSM, most peripherals are VExpress Motherboard peripherals !include Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc -!include MdePkg/MdeLibs.dsc.inc !ifdef DYNAMIC_TABLES_FRAMEWORK !include DynamicTablesPkg/DynamicTables.dsc.inc @@ -44,6 +45,8 @@ # Trng Supports. ArmMonitorLib|ArmPkg/Library/ArmMonitorLib/ArmMonitorLib.inf ArmTrngLib|ArmPkg/Library/ArmTrngLib/ArmTrngLib.inf + # Rng + RngLib|MdePkg/Library/DxeRngLib/DxeRngLib.inf NorFlashDeviceLib|Platform/ARM/Library/P30NorFlashDeviceLib/P30NorFlashDeviceLib.inf NorFlashPlatformLib|Platform/ARM/JunoPkg/Library/NorFlashJunoLib/NorFlashJunoLib.inf @@ -218,7 +221,7 @@ # # Juno Support Trng. Override PcdEnforceSecureRngAlgorithms. # - gEfiNetworkPkgTokenSpaceGuid.PcdEnforceSecureRngAlgorithms|TRUE + gEfiMdePkgTokenSpaceGuid.PcdEnforceSecureRngAlgorithms|TRUE [PcdsPatchableInModule] # Console Resolution (Full HD) @@ -406,6 +409,18 @@ # SCMI Driver ArmPkg/Drivers/ArmScmiDxe/ArmScmiDxe.inf + # + # Rng + # + SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf { + + !if $(ENABLE_UNSAFE_RNGLIB) == TRUE + RngLib|MdeModulePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf + !else + RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf + !endif + } + [Components.AARCH64] # # EBC diff --git a/Platform/ARM/Morello/MorelloPlatformFvp.dsc b/Platform/ARM/Morello/MorelloPlatformFvp.dsc index ee612296a80..9421755d1e3 100644 --- a/Platform/ARM/Morello/MorelloPlatformFvp.dsc +++ b/Platform/ARM/Morello/MorelloPlatformFvp.dsc @@ -30,14 +30,14 @@ # Network definition DEFINE NETWORK_ISCSI_ENABLE = FALSE +# include common/basic libraries from MdePkg. +!include MdePkg/MdeLibs.dsc.inc + !include Platform/ARM/Morello/MorelloPlatform.dsc.inc !include Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc !include DynamicTablesPkg/DynamicTables.dsc.inc !include Platform/ARM/Morello/ConfigurationManager/ConfigurationManagerFvp.dsc.inc -# include common/basic libraries from MdePkg. -!include MdePkg/MdeLibs.dsc.inc - [LibraryClasses.common] # Virtio Support VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf diff --git a/Platform/ARM/N1Sdp/N1SdpPlatform.dsc b/Platform/ARM/N1Sdp/N1SdpPlatform.dsc index ba8b624fde3..f44dae4afdd 100644 --- a/Platform/ARM/N1Sdp/N1SdpPlatform.dsc +++ b/Platform/ARM/N1Sdp/N1SdpPlatform.dsc @@ -27,8 +27,8 @@ FLASH_DEFINITION = Platform/ARM/N1Sdp/N1SdpPlatform.fdf BUILD_NUMBER = 1 -!include Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc !include MdePkg/MdeLibs.dsc.inc +!include Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc !include DynamicTablesPkg/DynamicTables.dsc.inc diff --git a/Platform/ARM/SgiPkg/RdE1Edge/RdE1Edge.dsc b/Platform/ARM/SgiPkg/RdE1Edge/RdE1Edge.dsc index c7463da5203..80432ac3eba 100644 --- a/Platform/ARM/SgiPkg/RdE1Edge/RdE1Edge.dsc +++ b/Platform/ARM/SgiPkg/RdE1Edge/RdE1Edge.dsc @@ -24,13 +24,13 @@ DEFINE PCIE_ENABLE = TRUE +# include common/basic libraries from MdePkg. +!include MdePkg/MdeLibs.dsc.inc + # include common definitions from SgiPlatform.dsc !include Platform/ARM/SgiPkg/SgiPlatform.dsc.inc !include Platform/ARM/SgiPkg/SgiMemoryMap.dsc.inc -# include common/basic libraries from MdePkg. -!include MdePkg/MdeLibs.dsc.inc - ################################################################################ # # Pcd Section - list of all EDK II PCD Entries defined by this Platform diff --git a/Platform/ARM/SgiPkg/RdN1Edge/RdN1Edge.dsc b/Platform/ARM/SgiPkg/RdN1Edge/RdN1Edge.dsc index 77efec9d953..a11e74cfb5d 100644 --- a/Platform/ARM/SgiPkg/RdN1Edge/RdN1Edge.dsc +++ b/Platform/ARM/SgiPkg/RdN1Edge/RdN1Edge.dsc @@ -24,13 +24,13 @@ DEFINE PCIE_ENABLE = TRUE +# include common/basic libraries from MdePkg. +!include MdePkg/MdeLibs.dsc.inc + # include common definitions from SgiPlatform.dsc !include Platform/ARM/SgiPkg/SgiPlatform.dsc.inc !include Platform/ARM/SgiPkg/SgiMemoryMap.dsc.inc -# include common/basic libraries from MdePkg. -!include MdePkg/MdeLibs.dsc.inc - ################################################################################ # # Pcd Section - list of all EDK II PCD Entries defined by this Platform diff --git a/Platform/ARM/SgiPkg/RdN1EdgeX2/RdN1EdgeX2.dsc b/Platform/ARM/SgiPkg/RdN1EdgeX2/RdN1EdgeX2.dsc index 521d8892505..705dedccbc4 100644 --- a/Platform/ARM/SgiPkg/RdN1EdgeX2/RdN1EdgeX2.dsc +++ b/Platform/ARM/SgiPkg/RdN1EdgeX2/RdN1EdgeX2.dsc @@ -24,13 +24,13 @@ DEFINE PCIE_ENABLE = TRUE +# include common/basic libraries from MdePkg. +!include MdePkg/MdeLibs.dsc.inc + # include common definitions from SgiPlatform.dsc !include Platform/ARM/SgiPkg/SgiPlatform.dsc.inc !include Platform/ARM/SgiPkg/SgiMemoryMap.dsc.inc -# include common/basic libraries from MdePkg. -!include MdePkg/MdeLibs.dsc.inc - ################################################################################ # # Pcd Section - list of all EDK II PCD Entries defined by this Platform diff --git a/Platform/ARM/SgiPkg/RdN2/RdN2.dsc b/Platform/ARM/SgiPkg/RdN2/RdN2.dsc index 49a317a930e..7bc9a8186b8 100644 --- a/Platform/ARM/SgiPkg/RdN2/RdN2.dsc +++ b/Platform/ARM/SgiPkg/RdN2/RdN2.dsc @@ -22,13 +22,13 @@ BOARD_DXE_FV_COMPONENTS = Platform/ARM/SgiPkg/RdN2/RdN2.fdf.inc BUILD_NUMBER = 1 +# include common/basic libraries from MdePkg. +!include MdePkg/MdeLibs.dsc.inc + # include common definitions from SgiPlatform.dsc !include Platform/ARM/SgiPkg/SgiPlatform.dsc.inc !include Platform/ARM/SgiPkg/SgiMemoryMap2.dsc.inc -# include common/basic libraries from MdePkg. -!include MdePkg/MdeLibs.dsc.inc - ################################################################################ # # Pcd Section - list of all EDK II PCD Entries defined by this Platform diff --git a/Platform/ARM/SgiPkg/RdN2Cfg1/RdN2Cfg1.dsc b/Platform/ARM/SgiPkg/RdN2Cfg1/RdN2Cfg1.dsc index c26f652cb9e..5e5a776606c 100644 --- a/Platform/ARM/SgiPkg/RdN2Cfg1/RdN2Cfg1.dsc +++ b/Platform/ARM/SgiPkg/RdN2Cfg1/RdN2Cfg1.dsc @@ -24,13 +24,13 @@ BOARD_DXE_FV_COMPONENTS = Platform/ARM/SgiPkg/RdN2Cfg1/RdN2Cfg1.fdf.inc BUILD_NUMBER = 1 +# include common/basic libraries from MdePkg. +!include MdePkg/MdeLibs.dsc.inc + # include common definitions from SgiPlatform.dsc !include Platform/ARM/SgiPkg/SgiPlatform.dsc.inc !include Platform/ARM/SgiPkg/SgiMemoryMap2.dsc.inc -# include common/basic libraries from MdePkg. -!include MdePkg/MdeLibs.dsc.inc - ################################################################################ # # Pcd Section - list of all EDK II PCD Entries defined by this Platform diff --git a/Platform/ARM/SgiPkg/RdN2Cfg2/RdN2Cfg2.dsc b/Platform/ARM/SgiPkg/RdN2Cfg2/RdN2Cfg2.dsc index 0a7991e77b7..a52966b30cc 100644 --- a/Platform/ARM/SgiPkg/RdN2Cfg2/RdN2Cfg2.dsc +++ b/Platform/ARM/SgiPkg/RdN2Cfg2/RdN2Cfg2.dsc @@ -22,13 +22,13 @@ BOARD_DXE_FV_COMPONENTS = Platform/ARM/SgiPkg/RdN2Cfg2/RdN2Cfg2.fdf.inc BUILD_NUMBER = 1 +# include common/basic libraries from MdePkg. +!include MdePkg/MdeLibs.dsc.inc + # include common definitions from SgiPlatform.dsc !include Platform/ARM/SgiPkg/SgiPlatform.dsc.inc !include Platform/ARM/SgiPkg/SgiMemoryMap2.dsc.inc -# include common/basic libraries from MdePkg. -!include MdePkg/MdeLibs.dsc.inc - ################################################################################ # # Pcd Section - list of all EDK II PCD Entries defined by this Platform diff --git a/Platform/ARM/SgiPkg/RdN2Cfg3/RdN2Cfg3.dsc b/Platform/ARM/SgiPkg/RdN2Cfg3/RdN2Cfg3.dsc index 88293b236a3..94fe46b8d47 100644 --- a/Platform/ARM/SgiPkg/RdN2Cfg3/RdN2Cfg3.dsc +++ b/Platform/ARM/SgiPkg/RdN2Cfg3/RdN2Cfg3.dsc @@ -22,13 +22,13 @@ BOARD_DXE_FV_COMPONENTS = Platform/ARM/SgiPkg/RdN2Cfg3/RdN2Cfg3.fdf.inc BUILD_NUMBER = 1 +# include common/basic libraries from MdePkg. +!include MdePkg/MdeLibs.dsc.inc + # include common definitions from SgiPlatform.dsc !include Platform/ARM/SgiPkg/SgiPlatform.dsc.inc !include Platform/ARM/SgiPkg/SgiMemoryMap2.dsc.inc -# include common/basic libraries from MdePkg. -!include MdePkg/MdeLibs.dsc.inc - ################################################################################ # # Pcd Section - list of all EDK II PCD Entries defined by this Platform diff --git a/Platform/ARM/SgiPkg/RdV1/RdV1.dsc b/Platform/ARM/SgiPkg/RdV1/RdV1.dsc index 2a4bb019fe7..50726cb0cee 100644 --- a/Platform/ARM/SgiPkg/RdV1/RdV1.dsc +++ b/Platform/ARM/SgiPkg/RdV1/RdV1.dsc @@ -24,13 +24,13 @@ DEFINE PCIE_ENABLE = TRUE +# include common/basic libraries from MdePkg. +!include MdePkg/MdeLibs.dsc.inc + # include common definitions from SgiPlatform.dsc !include Platform/ARM/SgiPkg/SgiPlatform.dsc.inc !include Platform/ARM/SgiPkg/SgiMemoryMap.dsc.inc -# include common/basic libraries from MdePkg. -!include MdePkg/MdeLibs.dsc.inc - ################################################################################ # # Pcd Section - list of all EDK II PCD Entries defined by this Platform diff --git a/Platform/ARM/SgiPkg/RdV1Mc/RdV1Mc.dsc b/Platform/ARM/SgiPkg/RdV1Mc/RdV1Mc.dsc index 971e2ccca36..6ed99cf080b 100644 --- a/Platform/ARM/SgiPkg/RdV1Mc/RdV1Mc.dsc +++ b/Platform/ARM/SgiPkg/RdV1Mc/RdV1Mc.dsc @@ -24,13 +24,13 @@ DEFINE PCIE_ENABLE = TRUE +# include common/basic libraries from MdePkg. +!include MdePkg/MdeLibs.dsc.inc + # include common definitions from SgiPlatform.dsc !include Platform/ARM/SgiPkg/SgiPlatform.dsc.inc !include Platform/ARM/SgiPkg/SgiMemoryMap.dsc.inc -# include common/basic libraries from MdePkg. -!include MdePkg/MdeLibs.dsc.inc - ################################################################################ # # Pcd Section - list of all EDK II PCD Entries defined by this Platform diff --git a/Platform/ARM/SgiPkg/RdV3/RdV3.dsc b/Platform/ARM/SgiPkg/RdV3/RdV3.dsc index cf7606a5d14..3b62edb13f2 100644 --- a/Platform/ARM/SgiPkg/RdV3/RdV3.dsc +++ b/Platform/ARM/SgiPkg/RdV3/RdV3.dsc @@ -22,13 +22,13 @@ BOARD_DXE_FV_COMPONENTS = Platform/ARM/SgiPkg/RdV3/RdV3.fdf.inc BUILD_NUMBER = 1 +# include common/basic libraries from MdePkg. +!include MdePkg/MdeLibs.dsc.inc + # include common definitions from SgiPlatform.dsc !include Platform/ARM/SgiPkg/SgiPlatform.dsc.inc !include Platform/ARM/SgiPkg/SgiMemoryMap3.dsc.inc -# include common/basic libraries from MdePkg. -!include MdePkg/MdeLibs.dsc.inc - ################################################################################ # # Pcd Section - list of all EDK II PCD Entries defined by this Platform diff --git a/Platform/ARM/SgiPkg/Sgi575/Sgi575.dsc b/Platform/ARM/SgiPkg/Sgi575/Sgi575.dsc index 4ed64abecd3..f29272778d7 100644 --- a/Platform/ARM/SgiPkg/Sgi575/Sgi575.dsc +++ b/Platform/ARM/SgiPkg/Sgi575/Sgi575.dsc @@ -24,13 +24,13 @@ DEFINE PCIE_ENABLE = TRUE +# include common/basic libraries from MdePkg. +!include MdePkg/MdeLibs.dsc.inc + # include common definitions from SgiPlatform.dsc !include Platform/ARM/SgiPkg/SgiPlatform.dsc.inc !include Platform/ARM/SgiPkg/SgiMemoryMap.dsc.inc -# include common/basic libraries from MdePkg. -!include MdePkg/MdeLibs.dsc.inc - ################################################################################ # # Pcd Section - list of all EDK II PCD Entries defined by this Platform diff --git a/Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc b/Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc index 3db99e3ba50..58d1530d84c 100644 --- a/Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc +++ b/Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc @@ -40,8 +40,8 @@ DT_SUPPORT = FALSE -!include Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc !include MdePkg/MdeLibs.dsc.inc +!include Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc !include DynamicTablesPkg/DynamicTables.dsc.inc [LibraryClasses.common] diff --git a/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc b/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc index 931eff2355d..6d7d955b9b8 100644 --- a/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc +++ b/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc @@ -452,7 +452,7 @@ # !if $(ENABLE_UNSAFE_RNGLIB) == TRUE - gEfiNetworkPkgTokenSpaceGuid.PcdEnforceSecureRngAlgorithms|FALSE + gEfiMdePkgTokenSpaceGuid.PcdEnforceSecureRngAlgorithms|FALSE !endif [PcdsDynamicHii.common.DEFAULT]