]> git.proxmox.com Git - mirror_edk2.git/commitdiff
IntelFrameworkModulePkg: fix build for AARCH64/ARM
authorLeif Lindholm <leif.lindholm@linaro.org>
Thu, 1 Nov 2018 14:58:22 +0000 (14:58 +0000)
committerLeif Lindholm <leif.lindholm@linaro.org>
Mon, 4 Feb 2019 17:08:30 +0000 (17:08 +0000)
Contrary to what the name suggests, some modules in this package are used
on other architecture. ARM is already listed in SUPPORTED_ARCHITECTURES
in the .dsc, but AARCH64 was never added.

Add that, and force inclusion of CompilerIntrinsicsLib and
BaseStackCheckLib for AARCH64/ARM to make the build successful.

Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
IntelFrameworkModulePkg/IntelFrameworkModulePkg.dsc

index 894c5340a078fb502822d882008a0d4550d2f935..949a181a7b44d54724760fee9b2be22d34628413 100644 (file)
@@ -25,7 +25,7 @@
   PLATFORM_VERSION               = 0.96\r
   DSC_SPECIFICATION              = 0x00010005\r
   OUTPUT_DIRECTORY               = Build/IntelFrameworkModuleAll\r
-  SUPPORTED_ARCHITECTURES        = IA32|X64|EBC|ARM\r
+  SUPPORTED_ARCHITECTURES        = IA32|X64|EBC|ARM|AARCH64\r
   BUILD_TARGETS                  = DEBUG|RELEASE|NOOPT\r
   SKUID_IDENTIFIER               = DEFAULT\r
 \r
   UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf\r
   PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
 \r
+[LibraryClasses.ARM, LibraryClasses.AARCH64]\r
+  #\r
+  # It is not possible to prevent the ARM compiler for generic intrinsic functions.\r
+  # This library provides the instrinsic functions generate by a given compiler.\r
+  # And NULL mean link this library into all ARM images.\r
+  #\r
+  NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf\r
+\r
+  # Add support for GCC stack protector\r
+  NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf\r
+\r
 [LibraryClasses.common.PEIM]\r
   HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
   PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf\r