[Linaro-uefi,3/3] Platforms/ARM/Juno: set -march=armv8-a for 32-bit GCC build

Message ID 1477652599-26330-3-git-send-email-ard.biesheuvel@linaro.org
State New
Headers show

Commit Message

Ard Biesheuvel Oct. 28, 2016, 11:03 a.m.
Set the architecture to ARMv8-A for the 32-bit build. Note that this
is GCC only, RVCT currently has no way of setting this option.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
---
 Platforms/ARM/Juno/ArmJuno.dsc | 1 +
 1 file changed, 1 insertion(+)

Comments

Leif Lindholm Oct. 28, 2016, 3:19 p.m. | #1
On Fri, Oct 28, 2016 at 12:03:19PM +0100, Ard Biesheuvel wrote:
> Set the architecture to ARMv8-A for the 32-bit build. Note that this
> is GCC only, RVCT currently has no way of setting this option.
> 
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>

> ---
>  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 154de2cd8797..4080c0bc7bd6 100644
> --- a/Platforms/ARM/Juno/ArmJuno.dsc
> +++ b/Platforms/ARM/Juno/ArmJuno.dsc
> @@ -68,6 +68,7 @@
>  
>  [BuildOptions]
>    *_*_*_PLATFORM_FLAGS = -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmJunoPkg/Include
> +  GCC:*_*_ARM_PLATFORM_FLAGS = -march=armv8-a
>  
>  ################################################################################
>  #
> -- 
> 2.7.4
>

Patch

diff --git a/Platforms/ARM/Juno/ArmJuno.dsc b/Platforms/ARM/Juno/ArmJuno.dsc
index 154de2cd8797..4080c0bc7bd6 100644
--- a/Platforms/ARM/Juno/ArmJuno.dsc
+++ b/Platforms/ARM/Juno/ArmJuno.dsc
@@ -68,6 +68,7 @@ 
 
 [BuildOptions]
   *_*_*_PLATFORM_FLAGS = -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmJunoPkg/Include
+  GCC:*_*_ARM_PLATFORM_FLAGS = -march=armv8-a
 
 ################################################################################
 #