Skip to content

Commit

Permalink
Revert "MdeModulePkg: Swap to MmuLib instead of Arm-specific lib and …
Browse files Browse the repository at this point in the history
…Drop all remaining references to ArmPkg"

This reverts commit 881c831.

This breaks bisectability in order to split this commit into
individual package level commits and pull in upstream commits
that revert the MdeModulePkg changes of the commit this is
reverting. To restore bisectability, go back one commit or
forward through the MdeModulePkg cherry-pick, the NetworkPkg,
and the StandaloneMmPkg commits.
  • Loading branch information
os-d committed Mar 14, 2024
1 parent 086463d commit 6018756
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 30 deletions.
3 changes: 1 addition & 2 deletions MdeModulePkg/MdeModulePkg.ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@
"MdePkg/MdePkg.dec",
"MdeModulePkg/MdeModulePkg.dec",
"StandaloneMmPkg/StandaloneMmPkg.dec",
# MU_CHANGE
# "ArmPkg/ArmPkg.dec" # this should be fixed by promoting an abstraction
"ArmPkg/ArmPkg.dec" # this should be fixed by promoting an abstraction
],
# For host based unit tests
"AcceptableDependencies-HOST_APPLICATION":[
Expand Down
8 changes: 2 additions & 6 deletions MdeModulePkg/MdeModulePkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@
ExceptionPersistenceLib|MdeModulePkg/Library/BaseExceptionPersistenceLibNull/BaseExceptionPersistenceLibNull.inf # MU_CHANGE
DeviceStateLib|MdeModulePkg/Library/DeviceStateLib/DeviceStateLib.inf # MU_CHANGE

MmuLib|MdePkg/Library/BaseMmuLibNull/BaseMmuLibNull.inf ## MU_CHANGE

PanicLib|MdePkg/Library/BasePanicLibNull/BasePanicLibNull.inf # MU_CHANGE

NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf # MU_CHANGE: /GS and -fstack-protector support
Expand Down Expand Up @@ -217,10 +215,8 @@
MemLib|StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.inf

[LibraryClasses.ARM, LibraryClasses.AARCH64]
# MU_CHANGE [BEGIN]
#ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
#ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
# MU_CHANGE [END]
ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf

#
Expand Down
2 changes: 1 addition & 1 deletion NetworkPkg/NetworkPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
!endif
# MU_CHANGE End
# NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf # MU_CHANGE: Use Project Mu StackCheckLib
#ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf # MU_CHANGE
ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf

[LibraryClasses.ARM]
RngLib|MdeModulePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
Expand Down
5 changes: 2 additions & 3 deletions NetworkPkg/SharedNetworking/SharedNetworkPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,11 @@
# [LibraryClasses.ARM] and NULL mean link this library into all ARM images.
#
!if $(TOOL_CHAIN_TAG) != VS2017 or $(TOOL_CHAIN_TAG) != VS2015 or $(TOOL_CHAIN_TAG) != VS2019 or $(TOOL_CHAIN_TAG) != VS2022 ## MS_CHANGE only applies to ARM compiler
# NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf # MU_CHANGE
NULL|MdePkg/Library/CompilerIntrinsicsLib/ArmCompilerIntrinsicsLib.inf # MU_CHANGE
NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf # while building with MSVC, we can't process the s files
!endif
# NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf # MU_CHANGE: Use Project Mu StackCheckLib
# ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf # MU_CHANGE
ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf


[PcdsFeatureFlag]
Expand Down
4 changes: 2 additions & 2 deletions StandaloneMmPkg/StandaloneMmPkg.ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
## options defined .pytool/Plugin/DependencyCheck
"DependencyCheck": {
"AcceptableDependencies": [
# "ArmPkg/ArmPkg.dec", # MU_CHANGE
#"EmbeddedPkg/EmbeddedPkg.dec", # MU_CHANGE
"ArmPkg/ArmPkg.dec",
"EmbeddedPkg/EmbeddedPkg.dec",
"StandaloneMmPkg/StandaloneMmPkg.dec",
"MdeModulePkg/MdeModulePkg.dec",
"MdePkg/MdePkg.dec"
Expand Down
22 changes: 6 additions & 16 deletions StandaloneMmPkg/StandaloneMmPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,7 @@
PLATFORM_VERSION = 1.0
DSC_SPECIFICATION = 0x00010011
OUTPUT_DIRECTORY = Build/StandaloneMm
# MU_CHANGE [BEGIN]
# ARM was recently enabled in EDK2.
# For now, building ARM causes:
# cspell:disable-next-line
# BaseTools/Bin/gcc_arm_linux_extdep/bin/../lib/gcc/arm-linux-gnueabihf/7.4.1/../../../../arm-linux-gnueabihf/bin/ld: read-only segment has dynamic relocations.
# Need to investigate further.
#SUPPORTED_ARCHITECTURES = AARCH64|X64|ARM
SUPPORTED_ARCHITECTURES = AARCH64|X64
# MU_CHANGE [END]
SUPPORTED_ARCHITECTURES = AARCH64|X64|ARM
BUILD_TARGETS = DEBUG|RELEASE
SKUID_IDENTIFIER = DEFAULT

Expand All @@ -52,7 +44,7 @@
CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf # MU_CHANGE - can't use EmbeddedPkg
ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
FvLib|StandaloneMmPkg/Library/FvLib/FvLib.inf
HobLib|StandaloneMmPkg/Library/StandaloneMmHobLib/StandaloneMmHobLib.inf
IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
Expand All @@ -75,12 +67,10 @@
StandaloneMmCoreEntryPoint|StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf # MU_CHANGE

[LibraryClasses.AARCH64, LibraryClasses.ARM]
# MU_CHANGE [BEGIN]
#ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
#StandaloneMmMmuLib|ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.inf
#ArmSvcLib|ArmPkg/Library/ArmSvcLib/ArmSvcLib.inf
#CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
# MU_CHANGE [END]
ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
StandaloneMmMmuLib|ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.inf
ArmSvcLib|ArmPkg/Library/ArmSvcLib/ArmSvcLib.inf
CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
PeCoffExtraActionLib|StandaloneMmPkg/Library/StandaloneMmPeCoffExtraActionLib/StandaloneMmPeCoffExtraActionLib.inf

# MU_CHANGE [BEGIN]
Expand Down

0 comments on commit 6018756

Please sign in to comment.