ARM: OMAP2: Fix the OMAP2 only build break seen with 2011+ ARM tool-chains
authorSantosh Shilimkar <santosh.shilimkar@ti.com>
Mon, 6 Feb 2012 10:19:47 +0000 (15:49 +0530)
committerTony Lindgren <tony@atomide.com>
Wed, 8 Feb 2012 05:33:16 +0000 (21:33 -0800)
commitfef67c518349a4cd0eba6b38bde4afdc76538147
tree2d94c645c8f73a8089167b903d2aa66e81a79c52
parent2416dc85107bf862acde82ffb8b0c86193487fd5
ARM: OMAP2: Fix the OMAP2 only build break seen with 2011+ ARM tool-chains

With the latest Sourcery G++ Lite 2011.03-41 and latest linaro
tool-chains OMAP2 only build breaks with below error.

arch/arm/mach-omap2/omap-smc.S: Assembler messages:
arch/arm/mach-omap2/omap-smc.S:30: Error: selected processor does not support ARM mode `smc #0'
arch/arm/mach-omap2/omap-smc.S:53: Error: selected processor does not support ARM mode `smc #0'
arch/arm/mach-omap2/omap-smc.S:61: Error: selected processor does not support ARM mode `smc #0'
arch/arm/mach-omap2/omap-smc.S:69: Error: selected processor does not support ARM mode `smc #0'
arch/arm/mach-omap2/omap-smc.S:77: Error: selected processor does not support ARM mode `smc #0'
make[1]: *** [arch/arm/mach-omap2/omap-smc.o] Error 1

OMAP2 devices doesn't have the security support but the security support
was getting built because of OMAP2PLUS. Don't build security code for
OMAP2 devices.

While at it, fix the secure-common line in the Makefile to use tabs
instead of spaces.

Reported-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/Makefile
arch/arm/plat-omap/include/plat/omap-secure.h