From: Alexei Alexei.Fedorov@arm.com
This commit adds the GCC compiler "-march=armv8-a" flag for the Juno platform with ARMv8 CPU.
This compilation flag also fixes assembler errors like Error: attempt to use an ARM instruction on a Thumb-only processor -- `push {r4-r8}' which are reported by GCC compilers prior to Linaro GCC 4.9-2015.05 4.9.3 20150413 (i.e. 4.9.3 20141119).
Code is available at: https://github.com/EvanLloyd/OpenPlatformPkg/tree/JunoBuild_v1
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Alexei Fedorov alexei.fedorov@arm.com Signed-off-by: Evan Lloyd evan.lloyd@arm.com --- Platforms/ARM/Juno/ArmJuno.dsc | 1 + 1 file changed, 1 insertion(+)
diff --git a/Platforms/ARM/Juno/ArmJuno.dsc b/Platforms/ARM/Juno/ArmJuno.dsc index 4f41fb159f193b3593048ce118fd0e8e97843809..87b8d517f292e81297dcf6577e5376fd7a3c8569 100644 --- a/Platforms/ARM/Juno/ArmJuno.dsc +++ b/Platforms/ARM/Juno/ArmJuno.dsc @@ -75,6 +75,7 @@ [LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.UEFI_APPLICATION, Libr
[BuildOptions] *_*_*_PLATFORM_FLAGS == -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmJunoPkg/Include + *_*_*_PLATFORM_FLAGS = -march=armv8-a
################################################################################ #