e83a3e2501e56eec871ae99d270b065109a78426
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-omap4 / 0001-UBUNTU-Config-Fix-FTBS-caused-by-new-binutils.patch
1 From 7699704e011db864c56f333bce9936a36522fb79 Mon Sep 17 00:00:00 2001
2 From: Tim Gardner <tim.gardner@canonical.com>
3 Date: Thu, 9 Dec 2010 08:16:52 -0700
4 Subject: [PATCH 1/2] UBUNTU: [Config] Fix FTBS caused by new binutils
6 New assemblers need -march=armv7-a+sec on command line or
7 .arch_extension sec inline to enable use of the smc instruction.
9 This patch uses as-instr to check the latter to conditionally
10 enable the former in AFLAGS for files that use smc.
12 Checked on both old and new binutils to verify that it does
13 not break old versions.
15 Signed-off-by: John Rigby <john.rigby@linaro.org>
16 Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
17 ---
18 arch/arm/mach-omap2/Makefile | 4 +++-
19 1 files changed, 3 insertions(+), 1 deletions(-)
21 diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
22 index 75251b4..0241b4d 100644
23 --- a/arch/arm/mach-omap2/Makefile
24 +++ b/arch/arm/mach-omap2/Makefile
25 @@ -29,7 +29,9 @@ obj-$(CONFIG_HOTPLUG_CPU) += omap-hotplug.o
26 obj-$(CONFIG_ARCH_OMAP4) += omap44xx-smc.o omap4-common.o \
27 omap4-wakeupgen.o
29 -AFLAGS_omap44xx-smc.o :=-Wa,-march=armv7-a
30 +plus_sec := $(call as-instr,.arch_extension sec,+sec)
31 +AFLAGS_omap-headsmp.o :=-Wa,-march=armv7-a$(plus_sec)
32 +AFLAGS_omap44xx-smc.o :=-Wa,-march=armv7-a$(plus_sec)
34 # Functions loaded to SRAM
35 obj-$(CONFIG_ARCH_OMAP2420) += sram242x.o
36 --
37 1.7.0.2