2.6.31 support (WiP)
[lede.git] / target / linux / coldfire / patches / 039-mcfv4e_kbuild_flags_update.patch
1 From ea71d637a9d8606624056fad67d050face9fc03c Mon Sep 17 00:00:00 2001
2 From: Kurt Mahan <kmahan@freescale.com>
3 Date: Fri, 15 Feb 2008 15:32:35 -0700
4 Subject: [PATCH] Update to use KBUILD_ for CFLAGS and AFLAGS.
5
6 LTIBName: mcfv4e-kbuild-flags-update
7 Signed-off-by: Kurt Mahan <kmahan@freescale.com>
8 ---
9  arch/m68k/Makefile |    5 +++--
10  1 files changed, 3 insertions(+), 2 deletions(-)
11
12 --- a/arch/m68k/Makefile
13 +++ b/arch/m68k/Makefile
14 @@ -33,6 +33,7 @@ LDFLAGS_vmlinux = -N
15  endif
16  
17  ifdef CONFIG_COLDFIRE
18 +# OBJCOPYFLAGS    := -R .note -R .note.gnu.build-id -R .comment -S
19  # LDFLAGS_vmlinux = --verbose
20  endif
21  
22 @@ -59,8 +60,8 @@ endif
23  endif
24  
25  ifdef CONFIG_M54455
26 -CFLAGS := $(CFLAGS) -march=isac -mcpu=54455 -msoft-float -g 
27 -AFLAGS := $(AFLAGS) -march=isac -mcpu=54455 -msoft-float  
28 +KBUILD_CFLAGS += -march=isac -mcpu=54455 -msoft-float -g
29 +KBUILD_AFLAGS += -march=isac -mcpu=54455 -msoft-float  
30  endif
31  
32  ifdef CONFIG_KGDB