]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StandaloneMmPkg/Core/StandaloneMmCore.inf
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / StandaloneMmPkg / Core / StandaloneMmCore.inf
index 83d31e2d92c5553534295fcab627b86cca88e7cc..c44b9ff33303c2a25b4413ed85795a0a46ae526a 100644 (file)
@@ -4,12 +4,7 @@
 # Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>\r
 # Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.<BR>\r
 #\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution. The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 ##\r
 \r
@@ -22,7 +17,7 @@
   PI_SPECIFICATION_VERSION       = 0x00010032\r
   ENTRY_POINT                    = StandaloneMmMain\r
 \r
-#  VALID_ARCHITECTURES           = IA32 X64 AARCH64\r
+#  VALID_ARCHITECTURES           = IA32 X64 AARCH64 ARM\r
 \r
 [Sources]\r
   StandaloneMmCore.c\r
   gEdkiiMemoryProfileGuid\r
   gZeroGuid                                     ## SOMETIMES_CONSUMES   ## GUID\r
   gEfiHobListGuid\r
+  gEfiHobMemoryAllocModuleGuid\r
   gMmCoreDataHobGuid\r
   gMmFvDispatchGuid\r
   gEfiEventLegacyBootGuid\r
   gEfiEventExitBootServicesGuid\r
   gEfiEventReadyToBootGuid\r
+\r
+#\r
+# This configuration fails for CLANGPDB, which does not support PIE in the GCC\r
+# sense. Such however is required for ARM family StandaloneMmCore\r
+# self-relocation, and thus the CLANGPDB toolchain is unsupported for ARM and\r
+# AARCH64 for this module.\r
+#\r
+[BuildOptions]\r
+  GCC:*_*_ARM_CC_FLAGS = -fpie\r
+  GCC:*_*_ARM_DLINK_FLAGS = -Wl,-z,text,-Bsymbolic,-pie\r
+  GCC:*_*_AARCH64_CC_FLAGS = -fpie\r
+  GCC:*_*_AARCH64_DLINK_FLAGS = -Wl,-z,text,-Bsymbolic,-pie\r