OMAP4: enable smc instruction in new assembler versions
authorJohn Rigby <john.rigby@linaro.org>
Wed, 1 Dec 2010 05:57:51 +0000 (05:57 +0000)
committerTony Lindgren <tony@atomide.com>
Sat, 18 Dec 2010 01:28:07 +0000 (17:28 -0800)
commitfe297dde5ae8f8bf67d3a87759289a99b48ecb2c
tree5287cf84431594675d712cb1ed1052db84d7e867
parent1a6b59232bbaf612265e364c9e06ba1d15bbe7e0
OMAP4: enable smc instruction in new assembler versions

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@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/Makefile