public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH] MdeModulePkg: add ARM/AARCH64 requirements to .dsc
@ 2016-09-27  1:15 Leif Lindholm
  2016-09-27  2:24 ` Ard Biesheuvel
  0 siblings, 1 reply; 6+ messages in thread
From: Leif Lindholm @ 2016-09-27  1:15 UTC (permalink / raw)
  To: edk2-devel
  Cc: Feng Tian, Star Zeng, Andrew Fish, Michael D Kinney,
	Ard Biesheuvel

Some LibraryClasses entries are missing to enable standalone builds
of MdeModulePkg components for ARM/AARCH64. Add those.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
---

Tying back to the conversation in
https://lists.01.org/pipermail/edk2-devel/2016-August/000733.html

If we are not going to refactor the DxeIpl code, would this be an
acceptable fix to enable standalone HelloWorld builds on ARM/AARCH64?

BaseStackCheckLib is unrelated to the DxeIpl issue, but needed in
practice on ARM and in theory on AARCH64.

 MdeModulePkg/MdeModulePkg.dsc | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/MdeModulePkg/MdeModulePkg.dsc b/MdeModulePkg/MdeModulePkg.dsc
index 05120c7..3eb55db 100644
--- a/MdeModulePkg/MdeModulePkg.dsc
+++ b/MdeModulePkg/MdeModulePkg.dsc
@@ -160,6 +160,9 @@ [LibraryClasses.common.UEFI_APPLICATION]
   DebugLib|MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr.inf
 
 [LibraryClasses.ARM, LibraryClasses.AARCH64]
+  ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
+  ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
+
   #
   # It is not possible to prevent ARM compiler calls to generic intrinsic functions.
   # This library provides the instrinsic functions generated by a given compiler.
@@ -167,6 +170,12 @@ [LibraryClasses.ARM, LibraryClasses.AARCH64]
   #
   NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
 
+  #
+  # Since software stack checking may be heuristically enabled by the compiler
+  # include BaseStackCheckLib unconditionally.
+  #
+  NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
+
 [LibraryClasses.EBC]
   LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf
 
-- 
2.9.3



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-10-20  9:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-27  1:15 [PATCH] MdeModulePkg: add ARM/AARCH64 requirements to .dsc Leif Lindholm
2016-09-27  2:24 ` Ard Biesheuvel
2016-10-19 15:57   ` Leif Lindholm
2016-10-19 22:56     ` Kinney, Michael D
2016-10-20  8:17       ` Leif Lindholm
2016-10-20  9:11         ` Laszlo Ersek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox