[poky] [PATCH 2/2] OMAP4: enable smc instruction in new assembler versions

Darren Hart dvhart at linux.intel.com
Fri Jan 28 16:56:40 PST 2011


On 01/28/2011 04:40 PM, poky-bounces at yoctoproject.org wrote:
> From: John Rigby<john.rigby at linaro.org>
>

Sorry bruce, forgot to include the source:

commit fe297dde5ae8f8bf67d3a87759289a99b48ecb2c angstrom-linux

--
Darren


> New assemblers need -march=armv7-a+sec on command line or
> .arch_extension sec inline to enable use of the smc instruction.
>
> This patch uses as-instr to check the latter to conditionally
> enable the former in AFLAGS for files that use smc.
>
> Checked on both old and new binutils to verify that it does
> not break old versions.
>
> Signed-off-by: John Rigby<john.rigby at linaro.org>
> Signed-off-by: Tony Lindgren<tony at atomide.com>
> ---
>   arch/arm/mach-omap2/Makefile |    5 +++--
>   1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
> index 60e51bc..ee9ef4f 100644
> --- a/arch/arm/mach-omap2/Makefile
> +++ b/arch/arm/mach-omap2/Makefile
> @@ -26,8 +26,9 @@ obj-$(CONFIG_LOCAL_TIMERS)		+= timer-mpu.o
>   obj-$(CONFIG_HOTPLUG_CPU)		+= omap-hotplug.o
>   obj-$(CONFIG_ARCH_OMAP4)		+= omap44xx-smc.o omap4-common.o
>
> -AFLAGS_omap-headsmp.o			:=-Wa,-march=armv7-a
> -AFLAGS_omap44xx-smc.o			:=-Wa,-march=armv7-a
> +plus_sec := $(call as-instr,.arch_extension sec,+sec)
> +AFLAGS_omap-headsmp.o			:=-Wa,-march=armv7-a$(plus_sec)
> +AFLAGS_omap44xx-smc.o			:=-Wa,-march=armv7-a$(plus_sec)
>
>   # Functions loaded to SRAM
>   obj-$(CONFIG_ARCH_OMAP2420)		+= sram242x.o


-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel



More information about the poky mailing list