]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StandaloneMmPkg/Core/StandaloneMmCore.inf
StandaloneMmPkg: Support CLANGPDB builds
[mirror_edk2.git] / StandaloneMmPkg / Core / StandaloneMmCore.inf
index 56042b7b39f4268aff10f2bfc71b4815195d4287..c44b9ff33303c2a25b4413ed85795a0a46ae526a 100644 (file)
   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:*_*_*_CC_FLAGS = -fpie\r
-  GCC:*_*_*_DLINK_FLAGS = -Wl,-z,text,-Bsymbolic,-pie\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